five-on-it / apps/level-editor/src/scripts/blocks/district / default
Class: default
Defined in: apps/level-editor/src/scripts/blocks/district.ts:17
The block's script: its presence on a node is what marks the node; its fields say which district and what it is.
Implements
IScript
Constructors
Constructor
new default(
mesh):DistrictBlock
Defined in: apps/level-editor/src/scripts/blocks/district.ts:39
Parameters
mesh
Mesh
Returns
DistrictBlock
Properties
district
district:
string=''
Defined in: apps/level-editor/src/scripts/blocks/district.ts:20
The district's name: lower-case letters, digits and underscores, from a letter.
mesh
readonlymesh:Mesh
Defined in: apps/level-editor/src/scripts/blocks/district.ts:37
pedestrians
pedestrians:
string=''
Defined in: apps/level-editor/src/scripts/blocks/district.ts:32
The pedestrians' roles it suggests, with their weights.
theme
theme:
string=''
Defined in: apps/level-editor/src/scripts/blocks/district.ts:28
Its satire theme; empty for none.
title
title:
string=''
Defined in: apps/level-editor/src/scripts/blocks/district.ts:24
What the minimap writes over the district; empty for its name with capitals.
Methods
onStart()
onStart():
void
Defined in: apps/level-editor/src/scripts/blocks/district.ts:35
Nothing to do at play time: the block is read by npm run level:export.
Returns
void
Implementation of
IScript.onStart