1 line
4.5 KiB
JavaScript
1 line
4.5 KiB
JavaScript
import{_ as a,c as t,a0 as r,o}from"./chunks/framework.P9qPzDnn.js";const f=JSON.parse('{"title":"Interface: LayerEvents","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/game/layers/interfaces/LayerEvents.md","filePath":"api/game/layers/interfaces/LayerEvents.md","lastUpdated":null}'),n={name:"api/game/layers/interfaces/LayerEvents.md"};function i(s,e,d,c,l,h){return o(),t("div",null,e[0]||(e[0]=[r('<p><a href="./../../../">Profectus</a> / <a href="./../">game/layers</a> / LayerEvents</p><h1 id="interface-layerevents" tabindex="-1">Interface: LayerEvents <a class="header-anchor" href="#interface-layerevents" aria-label="Permalink to "Interface: LayerEvents""></a></h1><p>All types of events able to be sent or emitted from a layer's emitter.</p><h2 id="properties" tabindex="-1">Properties <a class="header-anchor" href="#properties" aria-label="Permalink to "Properties""></a></h2><h3 id="postupdate" tabindex="-1">postUpdate() <a class="header-anchor" href="#postupdate" aria-label="Permalink to "postUpdate()""></a></h3><blockquote><p><strong>postUpdate</strong>: (<code>diff</code>) => <code>void</code></p></blockquote><p>Sent every game tick, after the update event. Intended for checking state.</p><h4 id="parameters" tabindex="-1">Parameters <a class="header-anchor" href="#parameters" aria-label="Permalink to "Parameters""></a></h4><h5 id="diff" tabindex="-1">diff <a class="header-anchor" href="#diff" aria-label="Permalink to "diff""></a></h5><p><code>number</code></p><p>The delta time since last tick, in ms.</p><h4 id="returns" tabindex="-1">Returns <a class="header-anchor" href="#returns" aria-label="Permalink to "Returns""></a></h4><p><code>void</code></p><h4 id="defined-in" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in" aria-label="Permalink to "Defined in""></a></h4><p><a href="https://code.incremental.social/profectus/Profectus/src/branch/main/src/game/layers.tsx#L67" target="_blank" rel="noreferrer">profectus/src/game/layers.tsx:67</a></p><hr><h3 id="preupdate" tabindex="-1">preUpdate() <a class="header-anchor" href="#preupdate" aria-label="Permalink to "preUpdate()""></a></h3><blockquote><p><strong>preUpdate</strong>: (<code>diff</code>) => <code>void</code></p></blockquote><p>Sent every game tick, before the update event. Intended for "generation" type actions.</p><h4 id="parameters-1" tabindex="-1">Parameters <a class="header-anchor" href="#parameters-1" aria-label="Permalink to "Parameters""></a></h4><h5 id="diff-1" tabindex="-1">diff <a class="header-anchor" href="#diff-1" aria-label="Permalink to "diff""></a></h5><p><code>number</code></p><p>The delta time since last tick, in ms.</p><h4 id="returns-1" tabindex="-1">Returns <a class="header-anchor" href="#returns-1" aria-label="Permalink to "Returns""></a></h4><p><code>void</code></p><h4 id="defined-in-1" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in-1" aria-label="Permalink to "Defined in""></a></h4><p><a href="https://code.incremental.social/profectus/Profectus/src/branch/main/src/game/layers.tsx#L57" target="_blank" rel="noreferrer">profectus/src/game/layers.tsx:57</a></p><hr><h3 id="update" tabindex="-1">update() <a class="header-anchor" href="#update" aria-label="Permalink to "update()""></a></h3><blockquote><p><strong>update</strong>: (<code>diff</code>) => <code>void</code></p></blockquote><p>Sent every game tick. Intended for "automation" type actions.</p><h4 id="parameters-2" tabindex="-1">Parameters <a class="header-anchor" href="#parameters-2" aria-label="Permalink to "Parameters""></a></h4><h5 id="diff-2" tabindex="-1">diff <a class="header-anchor" href="#diff-2" aria-label="Permalink to "diff""></a></h5><p><code>number</code></p><p>The delta time since last tick, in ms.</p><h4 id="returns-2" tabindex="-1">Returns <a class="header-anchor" href="#returns-2" aria-label="Permalink to "Returns""></a></h4><p><code>void</code></p><h4 id="defined-in-2" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in-2" aria-label="Permalink to "Defined in""></a></h4><p><a href="https://code.incremental.social/profectus/Profectus/src/branch/main/src/game/layers.tsx#L62" target="_blank" rel="noreferrer">profectus/src/game/layers.tsx:62</a></p>',39)]))}const u=a(n,[["render",i]]);export{f as __pageData,u as default};
|