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

Interface: LayerEvents

game/layers.LayerEvents

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

Properties

postUpdate

postUpdate: (diff: number) => void

Type declaration

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

preUpdate: (diff: number) => void

Type declaration

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

update: (diff: number) => void

Type declaration

▸ (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),n=[o];function i(l,s,c,h,p,f){return a(),t("div",null,n)}const b=e(d,[["render",i]]);export{m as __pageData,b as default};