Battle Talent  V11
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Properties | Events | List of all members
CrossLink.CharacterStat Class Reference

Public Member Functions

delegate void OnStatChanged (CharacterStat cs)
 
 CharacterStat (float baseValue)
 
void ChangeBaseValue (float delta, bool notify=true)
 
void SetBaseValue (float b, bool notify=true)
 
virtual void AddModifier (StatModifier mod, bool notify=true)
 
virtual bool RemoveModifier (StatModifier mod, bool notify=true)
 
virtual bool RemoveAllModifiersFromSource (object source)
 

Public Attributes

float BaseValue
 
readonly ReadOnlyCollection< StatModifierStatModifiers
 

Protected Member Functions

virtual int CompareModifierOrder (StatModifier a, StatModifier b)
 
virtual float CalculateFinalValue ()
 

Protected Attributes

bool isDirty = true
 
float lastBaseValue
 
float _value
 
readonly List< StatModifierstatModifiers
 

Properties

float OldValue [get]
 
virtual float Value [get]
 

Events

OnStatChanged StatChangedEvent