import{_ as e,c as t,o as a,a as r}from"./app.ab34650d.js";const y=JSON.parse('{"title":"Interface: LayerEvents","description":"","frontmatter":{"editLink":false},"headers":[{"level":2,"title":"Properties","slug":"properties"},{"level":3,"title":"postUpdate","slug":"postupdate"},{"level":3,"title":"preUpdate","slug":"preupdate"},{"level":3,"title":"update","slug":"update"}],"relativePath":"api/interfaces/game/layers.LayerEvents.md","lastUpdated":null}'),d={name:"api/interfaces/game/layers.LayerEvents.md"},n=r('
game/layers.LayerEvents
All types of events able to be sent or emitted from a layer's emitter.
\u2022 postUpdate: (diff
: number
) => void
\u25B8 (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
\u2022 preUpdate: (diff
: number
) => void
\u25B8 (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
\u2022 update: (diff
: number
) => void
\u25B8 (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