Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
AttributeInstance Class Reference

Public Types

using ModifierVector = ::std::vector<::AttributeModifier>

Public Member Functions

virtual void tick (::AttributeModificationContext context)
MCAPI AttributeInstance (::AttributeInstance const &)
MCAPI float _calculateValue ()
MCAPI float _sanitizeValue (float value)
MCAPI ::std::optional< float > addBuff (::AttributeBuff const &buff, ::AttributeModificationContext context)
MCAPI void addModifier (::std::shared_ptr<::AttributeModifier > modifier, ::AttributeModificationContext context)
MCAPI ::std::vector<::AttributeModifier > getModifiers () const
MCAPI bool hasModifier (::AttributeModifier const &modifier) const
MCAPI::AttributeInstance & operator= (::AttributeInstance const &)
MCAPI void removeBuff (::AttributeBuff const &buff)
MCAPI bool removeModifier (::mce::UUID const &id, ::AttributeModificationContext context)
MCAPI void removeModifier (::AttributeModifier const &modifier, ::AttributeModificationContext context)
MCAPI void removeModifiers (::AttributeModificationContext context)
MCAPI void updateModifier (::AttributeModifier const &takeOver, ::AttributeModificationContext context)
MCAPI void * $ctor (::AttributeInstance const &)
MCAPI void $dtor ()
MCAPI void $tick (::AttributeModificationContext context)

Static Public Member Functions

static MCAPI void ** $vftable ()

Public Attributes

::ll::TypedStorage< 8, 8, ::Attribute const * > mAttribute
::ll::TypedStorage< 8, 24, ::std::vector<::AttributeModifier > > mModifierList
::ll::TypedStorage< 8, 24, ::std::vector<::TemporalAttributeBuff > > mTemporalBuffs
::ll::TypedStorage< 8, 24, ::std::vector<::AttributeInstanceHandle > > mListeners
::ll::TypedStorage< 8, 16, ::std::shared_ptr<::AttributeInstanceDelegate > > mDelegate
union { 
   ::ll::TypedStorage< 4, 12, float[3]>   mDefaultValues 
   struct { 
      ::ll::TypedStorage< 4, 4, float >   mDefaultMinValue 
      ::ll::TypedStorage< 4, 4, float >   mDefaultMaxValue 
      ::ll::TypedStorage< 4, 4, float >   mDefaultValue 
   } 
}; 
union { 
   ::ll::TypedStorage< 4, 12, float[3]>   mCurrentValues 
   struct { 
      ::ll::TypedStorage< 4, 4, float >   mCurrentMinValue 
      ::ll::TypedStorage< 4, 4, float >   mCurrentMaxValue 
      ::ll::TypedStorage< 4, 4, float >   mCurrentValue 
   } 
}; 
::ll::TypedStorage< 1, 1, bool > mValueChangedDuringTick

Constructor & Destructor Documentation

◆ AttributeInstance()

MCAPI AttributeInstance::AttributeInstance ( ::AttributeInstance const & )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

Member Function Documentation

◆ _calculateValue()

MCAPI float AttributeInstance::_calculateValue ( )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _sanitizeValue()

MCAPI float AttributeInstance::_sanitizeValue ( float value)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ addBuff()

MCAPI ::std::optional< float > AttributeInstance::addBuff ( ::AttributeBuff const & buff,
::AttributeModificationContext context )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ operator=()

MCAPI::AttributeInstance & AttributeInstance::operator= ( ::AttributeInstance const & )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ removeBuff()

MCAPI void AttributeInstance::removeBuff ( ::AttributeBuff const & buff)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ removeModifier()

MCAPI void AttributeInstance::removeModifier ( ::AttributeModifier const & modifier,
::AttributeModificationContext context )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $ctor()

MCAPI void * AttributeInstance::$ctor ( ::AttributeInstance const & )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $dtor()

MCAPI void AttributeInstance::$dtor ( )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $tick()

MCAPI void AttributeInstance::$tick ( ::AttributeModificationContext context)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $vftable()

MCAPI void ** AttributeInstance::$vftable ( )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

The documentation for this class was generated from the following file: