Interface: BaseLayer

game/layers.BaseLayer

Properties

emitter

emitter: Emitter<LayerEvents>

Defined in

profectus/src/game/layers.tsx:75


id

id: string

Defined in

profectus/src/game/layers.tsx:73


minimized

minimized: Persistent<boolean>

Defined in

profectus/src/game/layers.tsx:74


nodes

nodes: Ref<Record<string, undefined | FeatureNode>>

Defined in

profectus/src/game/layers.tsx:78


on

on: (...args: [event: keyof LayerEvents, cb: Function | Function | Function]) => Unsubscribe

Type declaration

▸ (...args): Unsubscribe

Parameters
NameType
...args[event: keyof LayerEvents, cb: Function | Function | Function]
Returns

Unsubscribe

Defined in

profectus/src/game/layers.tsx:76

Methods

emit

emit<K>(event, ...args): void

Type parameters

NameType
Kextends keyof LayerEvents

Parameters

NameType
eventK
...argsParameters<LayerEvents[K]>

Returns

void

Defined in

profectus/src/game/layers.tsx:77