1 line
2.6 KiB
JavaScript
1 line
2.6 KiB
JavaScript
import{_ as e,c as a,o as t,a as r}from"./app.ab34650d.js";const g=JSON.parse('{"title":"Module: game/events","description":"","frontmatter":{"editLink":false},"headers":[{"level":2,"title":"Interfaces","slug":"interfaces"},{"level":2,"title":"Variables","slug":"variables"},{"level":3,"title":"globalBus","slug":"globalbus"},{"level":2,"title":"Functions","slug":"functions"},{"level":3,"title":"startGameLoop","slug":"startgameloop"}],"relativePath":"api/modules/game/events.md","lastUpdated":null}'),s={name:"api/modules/game/events.md"},o=r('<h1 id="module-game-events" tabindex="-1">Module: game/events <a class="header-anchor" href="#module-game-events" aria-hidden="true">#</a></h1><h2 id="interfaces" tabindex="-1">Interfaces <a class="header-anchor" href="#interfaces" aria-hidden="true">#</a></h2><ul><li><a href="../../interfaces/game/events.GlobalEvents">GlobalEvents</a></li></ul><h2 id="variables" tabindex="-1">Variables <a class="header-anchor" href="#variables" aria-hidden="true">#</a></h2><h3 id="globalbus" tabindex="-1">globalBus <a class="header-anchor" href="#globalbus" aria-hidden="true">#</a></h3><p>\u2022 <code>Const</code> <strong>globalBus</strong>: <code>Emitter</code><<a href="../../interfaces/game/events.GlobalEvents"><code>GlobalEvents</code></a>></p><p>A global event bus for hooking into <a href="../../interfaces/game/events.GlobalEvents">GlobalEvents</a>.</p><h4 id="defined-in" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in" aria-hidden="true">#</a></h4><p><a href="https://github.com/profectus-engine/Profectus/blob/013092f/src/game/events.ts#L51" target="_blank" rel="noopener noreferrer">profectus/src/game/events.ts:51</a></p><h2 id="functions" tabindex="-1">Functions <a class="header-anchor" href="#functions" aria-hidden="true">#</a></h2><h3 id="startgameloop" tabindex="-1">startGameLoop <a class="header-anchor" href="#startgameloop" aria-hidden="true">#</a></h3><p>\u25B8 <strong>startGameLoop</strong>(): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise" target="_blank" rel="noopener noreferrer"><code>Promise</code></a><<code>void</code>></p><p>Starts the game loop for the project, which updates the game in ticks.</p><h4 id="returns" tabindex="-1">Returns <a class="header-anchor" href="#returns" aria-hidden="true">#</a></h4><p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise" target="_blank" rel="noopener noreferrer"><code>Promise</code></a><<code>void</code>></p>',15),n=[o];function l(i,d,c,h,f,p){return t(),a("div",null,n)}var b=e(s,[["render",l]]);export{g as __pageData,b as default};
|