five-on-it / apps/client/src/renderer/scene / PieceView
Interface: PieceView
Defined in: apps/client/src/renderer/scene.ts:221
A light piece as drawn: its node, and the calls that take it out of its placement and put it back.
Properties
node
node:
TransformNode
Defined in: apps/client/src/renderer/scene.ts:223
The piece's own instance in the level.
Methods
loosen()
loosen():
void
Defined in: apps/client/src/renderer/scene.ts:225
It came loose: its own node draws it from now on, wherever the snapshots put it.
Returns
void
plant()
plant():
void
Defined in: apps/client/src/renderer/scene.ts:227
Puts the node back where the placement stands (and the batch draws it again).
Returns
void