five-on-it / apps/level-editor/src/scripts/blocks/spawn / default
Class: default
Defined in: apps/level-editor/src/scripts/blocks/spawn.ts:14
The block's script: its presence on a node is what marks the node; its field is the point's role.
Implements
IScript
Constructors
Constructor
new default(
mesh):SpawnBlock
Defined in: apps/level-editor/src/scripts/blocks/spawn.ts:24
Parameters
mesh
Mesh
Returns
SpawnBlock
Properties
mesh
readonlymesh:Mesh
Defined in: apps/level-editor/src/scripts/blocks/spawn.ts:22
role
role:
string=''
Defined in: apps/level-editor/src/scripts/blocks/spawn.ts:17
Who comes out there: empty for the players, or police, traffic, guards, hospital.
Methods
onStart()
onStart():
void
Defined in: apps/level-editor/src/scripts/blocks/spawn.ts:20
Nothing to do at play time: the block is read by npm run level:export.
Returns
void
Implementation of
IScript.onStart