five-on-it / apps/level-editor/src/scripts/blocks/lift / default
Class: default
Defined in: apps/level-editor/src/scripts/blocks/lift.ts:14
The block's script: its presence on a node is what marks the node; its field is the lift's stops.
Implements
IScript
Constructors
Constructor
new default(
mesh):LiftBlock
Defined in: apps/level-editor/src/scripts/blocks/lift.ts:24
Parameters
mesh
Mesh
Returns
LiftBlock
Properties
mesh
readonlymesh:Mesh
Defined in: apps/level-editor/src/scripts/blocks/lift.ts:22
stops
stops:
string=''
Defined in: apps/level-editor/src/scripts/blocks/lift.ts:17
The heights of its stops over its lowest (m), ascending, separated by spaces.
Methods
onStart()
onStart():
void
Defined in: apps/level-editor/src/scripts/blocks/lift.ts:20
Nothing to do at play time: the block is read by npm run level:export.
Returns
void
Implementation of
IScript.onStart