Profectus / game/layers / LayerEvents
Interface: LayerEvents ​
All types of events able to be sent or emitted from a layer's emitter.
Properties ​
postUpdate() ​
postUpdate: (
diff
) =>void
Sent every game tick, after the update event. Intended for checking state.
Parameters ​
diff ​
number
The delta time since last tick, in ms.
Returns ​
void
Defined in ​
profectus/src/game/layers.tsx:67
preUpdate() ​
preUpdate: (
diff
) =>void
Sent every game tick, before the update event. Intended for "generation" type actions.
Parameters ​
diff ​
number
The delta time since last tick, in ms.
Returns ​
void
Defined in ​
profectus/src/game/layers.tsx:57
update() ​
update: (
diff
) =>void
Sent every game tick. Intended for "automation" type actions.
Parameters ​
diff ​
number
The delta time since last tick, in ms.
Returns ​
void