five-on-it / packages/world/src/level / ContainerDef
Interface: ContainerDef
Defined in: packages/world/src/level.ts:357
A container of the level (GAME_DESIGN §5.5, §7.4): a crate or a locker holding items, which the interaction key opens into a panel, or items lying on the ground as pickups (pickup). Not a placement: the server spawns them, and the snapshots carry them.
Properties
items
items:
ItemCount[]
Defined in: packages/world/src/level.ts:371
What it holds, in order.
kind
kind:
LevelContainerKind
Defined in: packages/world/src/level.ts:361
A crate, a locker or a pickup.
lock?
optionallock?:string
Defined in: packages/world/src/level.ts:373
The tag that unlocks it; absent for one that is not locked.
name
name:
string
Defined in: packages/world/src/level.ts:359
The node's name in the editor.
x
x:
number
Defined in: packages/world/src/level.ts:363
Where it stands on the ground (m).
y
y:
number
Defined in: packages/world/src/level.ts:365
The ground under it (m).
yaw
yaw:
number
Defined in: packages/world/src/level.ts:369
Which way it faces (rad, 0 faces +z): a locker opens from that side.
z
z:
number
Defined in: packages/world/src/level.ts:367
Where it stands on the ground (m).