IInventorySlotView

Interface

Namespace: GGG.Inventory.UI

Defines the information and binding operation exposed by a slot view.

public interface IInventorySlotView

Properties

IsOccupied

Gets whether this slot currently contains an item.

bool IsOccupied { get; }

Property Value

bool

Quantity

Gets the number of runtime items in this stack or slot.

int Quantity { get; }

Property Value

int

Slot

Gets the runtime slot bound to this view.

InventorySlot Slot { get; }

Property Value

InventorySlot

SlotIndex

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

int SlotIndex { get; }

Property Value

int

Methods

Bind(InventorySlot)

Connects the view to the specified runtime model.

void Bind(InventorySlot slot)

Parameters

slot InventorySlot

Receives the matching runtime slot when found.