import{_ as e,c as t,o as a,N as r}from"./chunks/framework.0799945b.js";const m=JSON.parse('{"title":"Interface: LayerEvents","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/interfaces/game/layers.LayerEvents.md","lastUpdated":null}'),d={name:"api/interfaces/game/layers.LayerEvents.md"},o=r('
game/layers.LayerEvents
All types of events able to be sent or emitted from a layer's emitter.
• postUpdate: (diff
: number
) => void
▸ (diff
): void
Sent every game tick, after the update event. Intended for checking state.
Name | Type | Description |
---|---|---|
diff | number | The delta time since last tick, in ms. |
void
profectus/src/game/layers.tsx:70
• preUpdate: (diff
: number
) => void
▸ (diff
): void
Sent every game tick, before the update event. Intended for "generation" type actions.
Name | Type | Description |
---|---|---|
diff | number | The delta time since last tick, in ms. |
void
profectus/src/game/layers.tsx:60
• update: (diff
: number
) => void
▸ (diff
): void
Sent every game tick. Intended for "automation" type actions.
Name | Type | Description |
---|---|---|
diff | number | The delta time since last tick, in ms. |
void