1 line
7.3 KiB
JavaScript
1 line
7.3 KiB
JavaScript
import{_ as e,c as a,o as r,a as t}from"./app.54d5a277.js";const g='{"title":"Module: util/save","description":"","frontmatter":{},"headers":[{"level":2,"title":"Functions","slug":"functions"},{"level":3,"title":"getUniqueID","slug":"getuniqueid"},{"level":3,"title":"hardReset","slug":"hardreset"},{"level":3,"title":"load","slug":"load"},{"level":3,"title":"loadSave","slug":"loadsave"},{"level":3,"title":"newSave","slug":"newsave"},{"level":3,"title":"save","slug":"save"},{"level":3,"title":"setupInitialStore","slug":"setupinitialstore"}],"relativePath":"api/modules/util/save.md"}',n={},d=t('<h1 id="module-util-save" tabindex="-1">Module: util/save <a class="header-anchor" href="#module-util-save" aria-hidden="true">#</a></h1><h2 id="functions" tabindex="-1">Functions <a class="header-anchor" href="#functions" aria-hidden="true">#</a></h2><h3 id="getuniqueid" tabindex="-1">getUniqueID <a class="header-anchor" href="#getuniqueid" aria-hidden="true">#</a></h3><p>\u25B8 <strong>getUniqueID</strong>(): <code>string</code></p><h4 id="returns" tabindex="-1">Returns <a class="header-anchor" href="#returns" aria-hidden="true">#</a></h4><p><code>string</code></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/305946e/src/util/save.ts#L65" target="_blank" rel="noopener noreferrer">profectus/src/util/save.ts:65</a></p><hr><h3 id="hardreset" tabindex="-1">hardReset <a class="header-anchor" href="#hardreset" aria-hidden="true">#</a></h3><p>\u25B8 <strong>hardReset</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><h4 id="returns-1" tabindex="-1">Returns <a class="header-anchor" href="#returns-1" 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><h4 id="defined-in-1" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in-1" aria-hidden="true">#</a></h4><p><a href="https://github.com/profectus-engine/Profectus/blob/305946e/src/util/save.ts#L110" target="_blank" rel="noopener noreferrer">profectus/src/util/save.ts:110</a></p><hr><h3 id="load" tabindex="-1">load <a class="header-anchor" href="#load" aria-hidden="true">#</a></h3><p>\u25B8 <strong>load</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><h4 id="returns-2" tabindex="-1">Returns <a class="header-anchor" href="#returns-2" 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><h4 id="defined-in-2" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in-2" aria-hidden="true">#</a></h4><p><a href="https://github.com/profectus-engine/Profectus/blob/305946e/src/util/save.ts#L32" target="_blank" rel="noopener noreferrer">profectus/src/util/save.ts:32</a></p><hr><h3 id="loadsave" tabindex="-1">loadSave <a class="header-anchor" href="#loadsave" aria-hidden="true">#</a></h3><p>\u25B8 <strong>loadSave</strong>(<code>playerObj</code>): <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><h4 id="parameters" tabindex="-1">Parameters <a class="header-anchor" href="#parameters" aria-hidden="true">#</a></h4><table><thead><tr><th style="text-align:left;">Name</th><th style="text-align:left;">Type</th></tr></thead><tbody><tr><td style="text-align:left;"><code>playerObj</code></td><td style="text-align:left;"><code>Partial</code><<a href="../../interfaces/game/player.PlayerData"><code>PlayerData</code></a>></td></tr></tbody></table><h4 id="returns-3" tabindex="-1">Returns <a class="header-anchor" href="#returns-3" 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><h4 id="defined-in-3" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in-3" aria-hidden="true">#</a></h4><p><a href="https://github.com/profectus-engine/Profectus/blob/305946e/src/util/save.ts#L74" target="_blank" rel="noopener noreferrer">profectus/src/util/save.ts:74</a></p><hr><h3 id="newsave" tabindex="-1">newSave <a class="header-anchor" href="#newsave" aria-hidden="true">#</a></h3><p>\u25B8 <strong>newSave</strong>(): <a href="../../interfaces/game/player.PlayerData"><code>PlayerData</code></a></p><h4 id="returns-4" tabindex="-1">Returns <a class="header-anchor" href="#returns-4" aria-hidden="true">#</a></h4><p><a href="../../interfaces/game/player.PlayerData"><code>PlayerData</code></a></p><h4 id="defined-in-4" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in-4" aria-hidden="true">#</a></h4><p><a href="https://github.com/profectus-engine/Profectus/blob/305946e/src/util/save.ts#L55" target="_blank" rel="noopener noreferrer">profectus/src/util/save.ts:55</a></p><hr><h3 id="save" tabindex="-1">save <a class="header-anchor" href="#save" aria-hidden="true">#</a></h3><p>\u25B8 <strong>save</strong>(): <code>string</code></p><h4 id="returns-5" tabindex="-1">Returns <a class="header-anchor" href="#returns-5" aria-hidden="true">#</a></h4><p><code>string</code></p><h4 id="defined-in-5" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in-5" aria-hidden="true">#</a></h4><p><a href="https://github.com/profectus-engine/Profectus/blob/305946e/src/util/save.ts#L26" target="_blank" rel="noopener noreferrer">profectus/src/util/save.ts:26</a></p><hr><h3 id="setupinitialstore" tabindex="-1">setupInitialStore <a class="header-anchor" href="#setupinitialstore" aria-hidden="true">#</a></h3><p>\u25B8 <strong>setupInitialStore</strong>(<code>player?</code>): <a href="./../game/player.html#player"><code>Player</code></a></p><h4 id="parameters-1" tabindex="-1">Parameters <a class="header-anchor" href="#parameters-1" aria-hidden="true">#</a></h4><table><thead><tr><th style="text-align:left;">Name</th><th style="text-align:left;">Type</th></tr></thead><tbody><tr><td style="text-align:left;"><code>player</code></td><td style="text-align:left;"><code>Partial</code><<a href="../../interfaces/game/player.PlayerData"><code>PlayerData</code></a>></td></tr></tbody></table><h4 id="returns-6" tabindex="-1">Returns <a class="header-anchor" href="#returns-6" aria-hidden="true">#</a></h4><p><a href="./../game/player.html#player"><code>Player</code></a></p><h4 id="defined-in-6" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in-6" aria-hidden="true">#</a></h4><p><a href="https://github.com/profectus-engine/Profectus/blob/305946e/src/util/save.ts#L6" target="_blank" rel="noopener noreferrer">profectus/src/util/save.ts:6</a></p>',54),i=[d];function s(o,l,h,c,u,p){return r(),a("div",null,i)}var b=e(n,[["render",s]]);export{g as __pageData,b as default};
|