addInventory
addInventory(
writer,entity,slots):void
Gives the entity a bag of slots slots, and resizes a bag it has,
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 |
|---|---|
writer |
EntityAuthority |
entity |
Entity |
slots |
number |
Returns
Section titled “Returns”void