Skip to content

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

Class: default ​

Defined in: apps/level-editor/src/scripts/blocks/structure.ts:11

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

Implements ​

  • IScript

Constructors ​

Constructor ​

new default(mesh): StructureBlock

Defined in: apps/level-editor/src/scripts/blocks/structure.ts:17

Parameters ​

mesh ​

Mesh

Returns ​

StructureBlock

Properties ​

mesh ​

readonly mesh: Mesh

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

Methods ​

onStart() ​

onStart(): void

Defined in: apps/level-editor/src/scripts/blocks/structure.ts:13

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

Returns ​

void

Implementation of ​

IScript.onStart