five-on-it / apps/level-editor/src/scripts/blocks/shop / default
Class: default
Defined in: apps/level-editor/src/scripts/blocks/shop.ts:14
The block's script: its presence on a node is what marks the node; its field is what it sells.
Implements
IScript
Constructors
Constructor
new default(
mesh):ShopBlock
Defined in: apps/level-editor/src/scripts/blocks/shop.ts:24
Parameters
mesh
Mesh
Returns
ShopBlock
Properties
items
items:
string=''
Defined in: apps/level-editor/src/scripts/blocks/shop.ts:17
What it sells: item ids separated by spaces (first_aid dart ticket).
mesh
readonlymesh:Mesh
Defined in: apps/level-editor/src/scripts/blocks/shop.ts:22
Methods
onStart()
onStart():
void
Defined in: apps/level-editor/src/scripts/blocks/shop.ts:20
Nothing to do at play time: the block is read by npm run level:export.
Returns
void
Implementation of
IScript.onStart