Struct AttributeChangeInfo
- Namespace
- ElectricDrill.AstraRpgFramework.Attributes
- Assembly
- com.electricdrill.astra-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 AttributeChangeInfo
Constructors
AttributeChangeInfo(EntityAttributes, Attribute, long, long)
Initializes a new instance of the AttributeChangeInfo structure.
public AttributeChangeInfo(EntityAttributes entityAttributes, Attribute attribute, long oldValue, long newValue)
Parameters
entityAttributesEntityAttributesThe EntityAttributes instance that owns the changed attribute
attributeAttributeThe attribute that was changed
oldValuelongThe previous value before the change
newValuelongThe 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