Skip to content

inventorySlots beta ​

Variable of @v12-engine/engine

ts
inventorySlots: import("./components").Component<(ItemInstance | null)[], InventoryInfo>

The slots of what a unit carries (UnitTypeDef.inventory), null for an empty one: set as it is spawned (and as its type changes), for a type with slots. Sent to everyone who sees it as InventoryInfo: the items it carries, and to its owner and their allies the slots, for commands