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