Interface: BaseLayer

game/layers.BaseLayer

Properties

emitter

emitter: Emitter<LayerEvents>

Defined in

profectus/src/game/layers.tsx:63


minimized

minimized: PersistentRef<boolean>

Defined in

profectus/src/game/layers.tsx:62


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:64

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:65