Interface: BaseLayer
game/layers.BaseLayer
Properties
emitter
• emitter: Emitter
<LayerEvents
>
Defined in
profectus/src/game/layers.tsx:85
id
• id: string
Defined in
profectus/src/game/layers.tsx:83
minimized
• minimized: Persistent
<boolean
>
Defined in
profectus/src/game/layers.tsx:84
nodes
• nodes: Ref
<Record
<string
, undefined
| FeatureNode
>>
Defined in
profectus/src/game/layers.tsx:88
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:86
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