Skip to main content

Type Alias: InventoryLoadout

InventoryLoadout = object

Player inventory, equipment, and selected-slot values applied as one loadout.

Properties

equipment?

optional equipment?: Readonly<Record<EquipmentSlot, ItemStack | null>>

Equipment values keyed by public equipment slot.


selectedSlotIndex?

optional selectedSlotIndex?: number

Selected hotbar slot to apply.


slots?

optional slots?: Readonly<Record<number, ItemStack | null>>

Inventory slots keyed by zero-based slot index.