Namespace: GGG.Equipment
Immutable runtime state for an equipped item.
public sealed class EquipmentEntry
Inheritance
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
EquipmentEntry(ItemInstance, EquippableItemDefinition)
Creates a new EquipmentEntry instance.
public EquipmentEntry(ItemInstance item, EquippableItemDefinition definition)
Parameters
item ItemInstance
The runtime item instance to inspect or modify.
definition EquippableItemDefinition
The item or inventory definition to inspect or use.
Properties
Definition
Gets the definition associated with this runtime instance.
public EquippableItemDefinition Definition { get; }
Property Value
Item
Gets the item.
public ItemInstance Item { get; }
Property Value
Methods
ToString()
Returns a readable representation of this instance.
public override string ToString()
Returns
A readable representation of this instance.