Skip to content

five-on-it / packages/sim/src/items / slotsOf

Function: slotsOf() ​

slotsOf(sim, eid): ItemStack[]

Defined in: packages/sim/src/items.ts:268

What an entity holds, slot by slot; created empty the first time it is asked for.

Parameters ​

sim ​

SimWorld

eid ​

number

Returns ​

ItemStack[]