Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

declareInventory

declareInventory(entity, slots): void

Gives the entity a bag of slots slots, keeping the stacks in the slots that remain. The Inventory component’s verb, for a system that spawns an entity without one.

Parameter Type
entity Entity
slots number

void