Namespace: GGG.Equipment
Describes one successful equipment-state transition. Previous or Current may be null depending on the change type.
public readonly struct EquipmentChange
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
EquipmentChange(EquipmentChangeType, EquipmentSlot, EquipmentEntry, EquipmentEntry)
Creates a new EquipmentChange instance.
public EquipmentChange(EquipmentChangeType changeType, EquipmentSlot slot, EquipmentEntry previous, EquipmentEntry current)
Parameters
changeType EquipmentChangeType
The category of the state change.
slot EquipmentSlot
Receives the matching runtime slot when found.
previous EquipmentEntry
The previous equipment state.
current EquipmentEntry
The current equipment state.
Properties
ChangeType
Gets the change type.
public EquipmentChangeType ChangeType { get; }
Property Value
Current
Gets the item entry currently held by this equipment slot.
public EquipmentEntry Current { get; }
Property Value
Previous
Gets the previous.
public EquipmentEntry Previous { get; }
Property Value
Slot
Gets the runtime slot bound to this view.
public EquipmentSlot Slot { get; }