Skip to content

five-on-it / apps/level-editor/src/scripts/blocks/manhole / default

Class: default ​

Defined in: apps/level-editor/src/scripts/blocks/manhole.ts:15

The block's script: its presence on a node is what marks the node; its field is the manhole's network.

Implements ​

  • IScript

Constructors ​

Constructor ​

new default(mesh): ManholeBlock

Defined in: apps/level-editor/src/scripts/blocks/manhole.ts:25

Parameters ​

mesh ​

Mesh

Returns ​

ManholeBlock

Properties ​

mesh ​

readonly mesh: Mesh

Defined in: apps/level-editor/src/scripts/blocks/manhole.ts:23


network ​

network: string = 'sewer'

Defined in: apps/level-editor/src/scripts/blocks/manhole.ts:18

The network it opens into: the manholes of one network are linked under the street.

Methods ​

onStart() ​

onStart(): void

Defined in: apps/level-editor/src/scripts/blocks/manhole.ts:21

Nothing to do at play time: the block is read by npm run level:export.

Returns ​

void

Implementation of ​

IScript.onStart