Skip to content

InventoryInfo beta ​

Interface of @v12-engine/engine

ts
export interface InventoryInfo

What everyone who sees a unit is told of its items (inventorySlots' snapshot): what it carries; its owner and their allies the slots too, for commands

Members ​

items ​

ts
items: string[];

The items it carries, by id: anyone who sees the unit sees that

slots ​

ts
slots?: (CarriedItem | null)[];

One entry per slot, null for the empty ones: for its owner and their allies