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
Quantity
Gets the number of runtime items in this stack or slot.
int Quantity { get; }
Property Value
Slot
Gets the runtime slot bound to this view.
InventorySlot Slot { get; }
Property Value
SlotIndex
Gets the zero-based index of the bound inventory slot.
int SlotIndex { get; }
Property Value
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.