1 line
5.8 KiB
JavaScript
1 line
5.8 KiB
JavaScript
import{_ as e,c as a,o as t,a as r}from"./app.ab34650d.js";const g=JSON.parse('{"title":"Module: util/save","description":"","frontmatter":{"editLink":false},"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","lastUpdated":null}'),d={name:"api/modules/util/save.md"},o=r('<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><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><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><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><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><hr><h3 id="save" tabindex="-1">save <a class="header-anchor" href="#save" aria-hidden="true">#</a></h3><p>\u25B8 <strong>save</strong>(<code>playerData?</code>): <code>string</code></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>playerData?</code></td><td style="text-align:left;"><a href="../../interfaces/game/player.PlayerData"><code>PlayerData</code></a></td></tr></tbody></table><h4 id="returns-5" tabindex="-1">Returns <a class="header-anchor" href="#returns-5" aria-hidden="true">#</a></h4><p><code>string</code></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-2" tabindex="-1">Parameters <a class="header-anchor" href="#parameters-2" 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>',42),l=[o];function s(n,i,h,c,p,u){return t(),a("div",null,l)}var b=e(d,[["render",s]]);export{g as __pageData,b as default};
|