five-on-it / apps/level-editor/src/scripts/blocks/stairs / default
Class: default
Defined in: apps/level-editor/src/scripts/blocks/stairs.ts:15
The block's script: its presence on a node is what marks the node; its field is the flight's parameter.
Implements
IScript
Constructors
Constructor
new default(
mesh):StairsBlock
Defined in: apps/level-editor/src/scripts/blocks/stairs.ts:29
Parameters
mesh
Mesh
Returns
StairsBlock
Properties
escalator
escalator:
string=''
Defined in: apps/level-editor/src/scripts/blocks/stairs.ts:22
Empty for plain stairs; up or down for an escalator carrying that way along its length.
mesh
readonlymesh:Mesh
Defined in: apps/level-editor/src/scripts/blocks/stairs.ts:27
steps
steps:
number=20
Defined in: apps/level-editor/src/scripts/blocks/stairs.ts:18
How many treads the flight climbs with; the rise and the run of one step follow from the scaling.
Methods
onStart()
onStart():
void
Defined in: apps/level-editor/src/scripts/blocks/stairs.ts:25
Nothing to do at play time: the block is read by npm run level:export.
Returns
void
Implementation of
IScript.onStart