EquipmentSlotDragInteraction

Struct

Namespace: GGG.Equipment.UI

Semantic UI intent emitted by an equipment-slot interaction component. It deliberately contains no equip or unequip command.

public readonly struct EquipmentSlotDragInteraction

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

EquipmentSlotDragInteraction(SlotDragInteractionType, EquipmentSlotDefinition, EquipmentSlotView, PointerEventData)

Creates a new EquipmentSlotDragInteraction instance.

public EquipmentSlotDragInteraction(SlotDragInteractionType type, EquipmentSlotDefinition slotDefinition, EquipmentSlotView view, PointerEventData eventData)

Parameters

type SlotDragInteractionType

The interaction or operation category.

slotDefinition EquipmentSlotDefinition

The equipment slot definition to inspect or use.

view EquipmentSlotView

The slot view associated with the operation.

eventData PointerEventData

The Unity UI event payload.

Properties

EventData

Gets the Unity pointer event information.

public PointerEventData EventData { get; }

Property Value

PointerEventData

SlotDefinition

Gets the equipment slot definition bound to this view.

public EquipmentSlotDefinition SlotDefinition { get; }

Property Value

EquipmentSlotDefinition

Type

Gets the interaction category.

public SlotDragInteractionType Type { get; }

Property Value

SlotDragInteractionType

View

Gets the originating slot view.

public EquipmentSlotView View { get; }

Property Value

EquipmentSlotView