profectus-docs/assets/api_game_layers_interfaces_LayerEvents.md.Cghs4n7G.lean.js

1 line
4.5 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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 &quot;Interface: LayerEvents&quot;"></a></h1><p>All types of events able to be sent or emitted from a layer&#39;s emitter.</p><h2 id="properties" tabindex="-1">Properties <a class="header-anchor" href="#properties" aria-label="Permalink to &quot;Properties&quot;"></a></h2><h3 id="postupdate" tabindex="-1">postUpdate() <a class="header-anchor" href="#postupdate" aria-label="Permalink to &quot;postUpdate()&quot;"></a></h3><blockquote><p><strong>postUpdate</strong>: (<code>diff</code>) =&gt; <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 &quot;Parameters&quot;"></a></h4><h5 id="diff" tabindex="-1">diff <a class="header-anchor" href="#diff" aria-label="Permalink to &quot;diff&quot;"></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 &quot;Returns&quot;"></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 &quot;Defined in&quot;"></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 &quot;preUpdate()&quot;"></a></h3><blockquote><p><strong>preUpdate</strong>: (<code>diff</code>) =&gt; <code>void</code></p></blockquote><p>Sent every game tick, before the update event. Intended for &quot;generation&quot; type actions.</p><h4 id="parameters-1" tabindex="-1">Parameters <a class="header-anchor" href="#parameters-1" aria-label="Permalink to &quot;Parameters&quot;"></a></h4><h5 id="diff-1" tabindex="-1">diff <a class="header-anchor" href="#diff-1" aria-label="Permalink to &quot;diff&quot;"></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 &quot;Returns&quot;"></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 &quot;Defined in&quot;"></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 &quot;update()&quot;"></a></h3><blockquote><p><strong>update</strong>: (<code>diff</code>) =&gt; <code>void</code></p></blockquote><p>Sent every game tick. Intended for &quot;automation&quot; type actions.</p><h4 id="parameters-2" tabindex="-1">Parameters <a class="header-anchor" href="#parameters-2" aria-label="Permalink to &quot;Parameters&quot;"></a></h4><h5 id="diff-2" tabindex="-1">diff <a class="header-anchor" href="#diff-2" aria-label="Permalink to &quot;diff&quot;"></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 &quot;Returns&quot;"></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 &quot;Defined in&quot;"></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};