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
Name | Type |
---|---|
...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
Name | Type |
---|---|
K | extends keyof LayerEvents |
Parameters
Name | Type |
---|---|
event | K |
...args | Parameters <LayerEvents [K ]> |
Returns
void