Namespace: GGG.Equipment.UI
Describes the outcome of an equipment drag-and-drop operation.
public readonly struct EquipmentDragDropResult
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
EquipmentDragDropResult(EquipmentDragDropOperation, bool, ItemInstance, ItemInstance, EquipmentSlotDefinition, EquipmentSlotDefinition)
Creates a new EquipmentDragDropResult instance.
public EquipmentDragDropResult(EquipmentDragDropOperation operation, bool succeeded, ItemInstance item = null, ItemInstance displacedItem = null, EquipmentSlotDefinition sourceSlot = null, EquipmentSlotDefinition destinationSlot = null)
Parameters
operation EquipmentDragDropOperation
The drag-and-drop operation category.
succeeded bool
Whether the operation succeeded.
item ItemInstance
The runtime item instance to inspect or modify.
displacedItem ItemInstance
The item displaced by the operation, if any.
sourceSlot EquipmentSlotDefinition
The source equipment slot.
destinationSlot EquipmentSlotDefinition
The destination equipment slot.
Properties
DestinationSlot
Gets the target equipment slot for this operation.
public EquipmentSlotDefinition DestinationSlot { get; }
Property Value
DisplacedItem
Gets the item displaced by this operation, when applicable.
public ItemInstance DisplacedItem { get; }
Property Value
Item
Gets the item.
public ItemInstance Item { get; }
Property Value
Operation
Gets the drag-and-drop operation category.
public EquipmentDragDropOperation Operation { get; }
Property Value
SourceSlot
Gets the source equipment slot for this operation.
public EquipmentSlotDefinition SourceSlot { get; }
Property Value
Succeeded
Gets whether the attempted operation succeeded.
public bool Succeeded { get; }