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('

Interface: LayerEvents

game/layers.LayerEvents

All types of events able to be sent or emitted from a layer's emitter.

Properties

postUpdate

\u2022 postUpdate: (diff: number) => void

Type declaration

\u25B8 (diff): void

Sent every game tick, after the update event. Intended for checking state.

Parameters
NameTypeDescription
diffnumberThe delta time since last tick, in ms.
Returns

void

Defined in

profectus/src/game/layers.tsx:70


preUpdate

\u2022 preUpdate: (diff: number) => void

Type declaration

\u25B8 (diff): void

Sent every game tick, before the update event. Intended for "generation" type actions.

Parameters
NameTypeDescription
diffnumberThe delta time since last tick, in ms.
Returns

void

Defined in

profectus/src/game/layers.tsx:60


update

\u2022 update: (diff: number) => void

Type declaration

\u25B8 (diff): void

Sent every game tick. Intended for "automation" type actions.

Parameters
NameTypeDescription
diffnumberThe delta time since last tick, in ms.
Returns

void

Defined in

profectus/src/game/layers.tsx:65

',39),i=[n];function s(o,h,c,l,p,f){return a(),t("div",null,i)}var g=e(d,[["render",s]]);export{y as __pageData,g as default};