ActionAdventureKit 1.9.3
|
placeholder that redirects to an actual component when a character with a specified id is available
can be used to bind things like UI to components of characters that will spawn during gameplay
Public Member Functions | |
override void | Add (AttributeType type, int quantity) |
adds to the value of an attribute | |
override void | Remove (AttributeType type, int quantity) |
removes from the value of an attribute | |
override bool | HasValue (AttributeValue attributeValue) |
checks if the current value of an attribute is at least as large as the one passed | |
override bool | HasValues (IEnumerable< AttributeValue > attributeValues) |
override bool | HasValue (AttributeStatValue attributeStatValue) |
override bool | HasValues (IEnumerable< AttributeStatValue > attributeStatValues) |
override IEnumerable< AttributeValue > | GetValues () |
override int | GetValue (AttributeType attribute) |
applies all modifiers and returns the attribute value | |
override int | GetRawValue (AttributeType attribute) |
returns the attribute value without modifiers | |
override int | GetValue (AttributeStat stat) |
applies all modifiers and returns the stat value | |
override void | AddObserver (AttributeType attribute, Action< int > callback) |
add a callback that will be called whenever an attribute changes changes can occur when the value changes or modifiers are added or removed | |
override void | RemoveObserver (AttributeType attribute, Action< int > callback) |
removes an observing action that was added in AddObserver(AttributeType, Action<int>) | |
override void | AddObserver (AttributeStat stat, Action< int > callback) |
add a callback that will be called whenever a stat changes changes can occur when the attribute changes or modifiers are added or removed | |
override void | RemoveObserver (AttributeStat stat, Action< int > callback) |
removes an observing action that was added in AddObserver(AttributeStat, Action<int>) | |
override void | AddModifier (IAttributeModifier attributeModifier) |
adds a modifier for attributes, observers will be notified | |
override void | RemoveModifier (IAttributeModifier attributeModifier) |
removes a modifier for attributes, observers will be notified | |
override void | AddModifier (IStatModifier statModifier) |
adds a modifier for stats, observers will be notified | |
override void | RemoveModifier (IStatModifier statModifier) |
removes a modifier for stats, observers will be notified | |
override AttributeData | GetData () |
collects all the state from attributes and puts it into a AttributeData that can be serialized may be used from outside when attributedata is put into a larger structure that is persisted and no persister is set up here | |
override void | Persist () |
![]() | |
void | Initialize () |
virtual void | Set (AttributeType type, int quantity) |
sets value of an attribute | |
void | Retrieve () |
Public Attributes | |
string | CharacterId |
![]() | |
PersisterBase | Persister |
AttributeValue[] | Attributes |
AttributeStatValue[] | BaseStats |
ResourceMaximum[] | ResourceMaximums |
UnityEvent< AttributeType, int > | AttributeChanged |
Additional Inherited Members | |
![]() | |
const string | PERSISTENCE_SUB_KEY = "ATT" |
![]() | |
bool | IsInitialized [get] |
|
virtual |
adds to the value of an attribute
type | |
quantity |
Reimplemented from AdventureCore.AttributePool.
|
virtual |
adds a modifier for attributes, observers will be notified
attributeModifier |
Reimplemented from AdventureCore.AttributePool.
|
virtual |
adds a modifier for stats, observers will be notified
statModifier |
Reimplemented from AdventureCore.AttributePool.
|
inlinevirtual |
add a callback that will be called whenever a stat changes
changes can occur when the attribute changes or modifiers are added or removed
attribute | |
callback |
Reimplemented from AdventureCore.AttributePool.
|
inlinevirtual |
add a callback that will be called whenever an attribute changes
changes can occur when the value changes or modifiers are added or removed
attribute | |
callback |
Reimplemented from AdventureCore.AttributePool.
|
virtual |
collects all the state from attributes and puts it into a AttributeData that can be serialized
may be used from outside when attributedata is put into a larger structure that is persisted and no persister is set up here
Reimplemented from AdventureCore.AttributePool.
|
virtual |
returns the attribute value without modifiers
attribute |
Reimplemented from AdventureCore.AttributePool.
|
virtual |
applies all modifiers and returns the stat value
attribute |
Reimplemented from AdventureCore.AttributePool.
|
virtual |
applies all modifiers and returns the attribute value
attribute |
Reimplemented from AdventureCore.AttributePool.
|
virtual |
Reimplemented from AdventureCore.AttributePool.
|
virtual |
Reimplemented from AdventureCore.AttributePool.
|
virtual |
checks if the current value of an attribute is at least as large as the one passed
attributeValue |
Reimplemented from AdventureCore.AttributePool.
|
virtual |
Reimplemented from AdventureCore.AttributePool.
|
virtual |
Reimplemented from AdventureCore.AttributePool.
|
virtual |
Reimplemented from AdventureCore.AttributePool.
|
virtual |
removes from the value of an attribute
type | |
quantity |
Reimplemented from AdventureCore.AttributePool.
|
virtual |
removes a modifier for attributes, observers will be notified
attributeModifier |
Reimplemented from AdventureCore.AttributePool.
|
virtual |
removes a modifier for stats, observers will be notified
statModifier |
Reimplemented from AdventureCore.AttributePool.
|
inlinevirtual |
removes an observing action that was added in AddObserver(AttributeStat, Action<int>)
attribute | |
callback |
Reimplemented from AdventureCore.AttributePool.
|
inlinevirtual |
removes an observing action that was added in AddObserver(AttributeType, Action<int>)
attribute | |
callback |
Reimplemented from AdventureCore.AttributePool.