addToPile
addToPile(
world,pile,item,index?):void
Defined in: src/modules/pile/pile.ts:137
Put item into pile at index (default: on top). The item first leaves
the pile it was in — the same pile included — so index counts positions
after that removal. An out-of-range index is clamped.
Parameters
Section titled “Parameters”index?
Section titled “index?”number
Returns
Section titled “Returns”void