Class StatChangeData
Represents data for a stat change event.
public class StatChangeData : IData
- Inheritance
-
StatChangeData
- Implements
- Inherited Members
- Extension Methods
Constructors
StatChangeData(StatChangeEvent)
public StatChangeData(StatChangeEvent statChangeEvent)
Parameters
statChangeEventStatChangeEvent
StatChangeData(Entity, Entity, float, StatType, StatChangeReason, int)
Represents data for a stat change event.
public StatChangeData(Entity source, Entity target, float change, StatType type, StatChangeReason reason, int statChangeFlags = 0)
Parameters
sourceEntitySource entity of the stat change.
targetEntityTarget entity of the stat change.
changefloatChange amount for the stat.
typeStatTypeStat type being changed.
reasonStatChangeReasonReason for the stat change.
statChangeFlagsintFlags associated with the stat change.
Properties
Change
public float Change { get; }
Property Value
Entity
public Entity Entity { get; }
Property Value
- Entity
OriginalChange
public float OriginalChange { get; }
Property Value
Reason
public StatChangeReason Reason { get; }
Property Value
- StatChangeReason
Source
public Entity Source { get; }
Property Value
- Entity
StatChangeFlags
public int StatChangeFlags { get; }
Property Value
Target
public Entity Target { get; }
Property Value
- Entity
Type
public StatType Type { get; }
Property Value
- StatType
Methods
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.