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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
entity |
Entity |
slots |
number |
Returns
Section titled “Returns”void