Struct StatChangeInfo
- Namespace
- ElectricDrill.SoapRpgFramework.Stats
- Assembly
- com.electricdrill.soap-rpg-framework.Runtime.dll
Contains information about a stat change event, including the entity, stat, and old/new values. Used for tracking and responding to stat modifications.
public struct StatChangeInfo
Constructors
StatChangeInfo(EntityStats, Stat, long, long)
Initializes a new instance of the StatChangeInfo structure.
public StatChangeInfo(EntityStats entity, Stat stat, long oldValue, long newValue)
Parameters
entityEntityStatsThe EntityStats component that owns the stat.
statStatThe stat that was changed.
oldValuelongThe previous value of the stat.
newValuelongThe new value of the stat.
Fields
EntityStats
The EntityStats component that owns the changed stat.
public EntityStats EntityStats
Field Value
NewValue
The value of the stat after the change.
public long NewValue
Field Value
- long
OldValue
The value of the stat before the change.
public long OldValue
Field Value
- long
Stat
The stat that was changed.
public Stat Stat