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
statChangeEvent
StatChangeEvent
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
source
EntitySource entity of the stat change.
target
EntityTarget entity of the stat change.
change
floatChange amount for the stat.
type
StatTypeStat type being changed.
reason
StatChangeReasonReason for the stat change.
statChangeFlags
intFlags 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.