InventoryState
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
equipment |
Readonly<WornItems> |
What the player’s character wears, the EquipmentTrait as it stands, by slot; a slot left out is empty. |
slots |
readonly (ItemStack | null)[] |
The player’s bag, the InventoryTrait on the player’s character as it stands: one entry a slot, null where the slot is empty. Read it; the verbs write the trait. |