Namespace: GGG.Items.UI
Common contract for UI components that display an item. The view does not own the item or decide what interacting with it means.
public interface IItemSlotView
Properties
Definition
Gets the definition associated with this runtime instance.
ItemDefinition Definition { get; }
Property Value
HasItem
Gets whether the view currently has an item to display.
bool HasItem { get; }
Property Value
Instance
Gets the item instance currently displayed in the view.
ItemInstance Instance { get; }
Property Value
Methods
Clear()
Clears the contents displayed or stored by this component.
void Clear()
SetItem(ItemInstance)
Sets the item instance displayed by this view.
void SetItem(ItemInstance instance)
Parameters
instance ItemInstance
The runtime item instance to display or inspect.