Struct AttributeChangeInfo
- Namespace
- ElectricDrill.SoapRpgFramework.Attributes
- Assembly
- com.electricdrill.soap-rpg-framework.Runtime.dll
Immutable structure that contains information about an attribute value change. Used to track and communicate attribute modifications across the system.
public readonly struct AttributeChangeInfoConstructors
AttributeChangeInfo(EntityAttributes, Attribute, long, long)
Initializes a new instance of the AttributeChangeInfo structure.
public AttributeChangeInfo(EntityAttributes entityAttributes, Attribute attribute, long oldValue, long newValue)Parameters
- entityAttributesEntityAttributes
- The EntityAttributes instance that owns the changed attribute 
- attributeAttribute
- The attribute that was changed 
- oldValuelong
- The previous value before the change 
- newValuelong
- The new value after the change 
Properties
Attribute
Gets the attribute that was changed.
public Attribute Attribute { get; }Property Value
EntityAttributes
Gets the EntityAttributes instance that owns the changed attribute.
public EntityAttributes EntityAttributes { get; }Property Value
NewValue
Gets the new value of the attribute after the change.
public long NewValue { get; }Property Value
- long
OldValue
Gets the previous value of the attribute before the change.
public long OldValue { get; }Property Value
- long