InventorySlotInteraction

Struct

Namespace: GGG.Inventory.UI

Describes a selection or click action on an inventory slot.

public readonly struct InventorySlotInteraction

Inherited Members

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

Constructors

InventorySlotInteraction(SlotInteractionType, int, InventorySlotView)

Creates a new InventorySlotInteraction instance.

public InventorySlotInteraction(SlotInteractionType type, int slotIndex, InventorySlotView view)

Parameters

type SlotInteractionType

The interaction or operation category.

slotIndex int

The zero-based inventory slot index.

view InventorySlotView

The slot view associated with the operation.

Properties

SlotIndex

Gets the zero-based index of the bound inventory slot.

public int SlotIndex { get; }

Property Value

int

Type

Gets the interaction category.

public SlotInteractionType Type { get; }

Property Value

SlotInteractionType

View

Gets the originating slot view.

public InventorySlotView View { get; }

Property Value

InventorySlotView