1 line
5.2 KiB
JavaScript
1 line
5.2 KiB
JavaScript
import{_ as a,c as o,a0 as t,o as r}from"./chunks/framework.P9qPzDnn.js";const u=JSON.parse('{"title":"Variable: default","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/game/player/variables/default.md","filePath":"api/game/player/variables/default.md","lastUpdated":null}'),n={name:"api/game/player/variables/default.md"};function l(i,e,d,s,c,p){return r(),o("div",null,e[0]||(e[0]=[t('<p><a href="./../../../">Profectus</a> / <a href="./../">game/player</a> / default</p><h1 id="variable-default" tabindex="-1">Variable: default <a class="header-anchor" href="#variable-default" aria-label="Permalink to "Variable: default""></a></h1><blockquote><p><strong>default</strong>: <code>object</code></p></blockquote><h2 id="type-declaration" tabindex="-1">Type declaration <a class="header-anchor" href="#type-declaration" aria-label="Permalink to "Type declaration""></a></h2><h3 id="autosave" tabindex="-1">autosave <a class="header-anchor" href="#autosave" aria-label="Permalink to "autosave""></a></h3><blockquote><p><strong>autosave</strong>: <code>boolean</code></p></blockquote><p>Whether or not to automatically save every couple of seconds and on tab close.</p><h3 id="devspeed" tabindex="-1">devSpeed <a class="header-anchor" href="#devspeed" aria-label="Permalink to "devSpeed""></a></h3><blockquote><p><strong>devSpeed</strong>: <code>null</code> | <code>number</code></p></blockquote><p>A multiplier for time passing. Set to 0 when the game is paused.</p><h3 id="id" tabindex="-1">id <a class="header-anchor" href="#id" aria-label="Permalink to "id""></a></h3><blockquote><p><strong>id</strong>: <code>string</code></p></blockquote><p>The ID of this save.</p><h3 id="keepgoing" tabindex="-1">keepGoing <a class="header-anchor" href="#keepgoing" aria-label="Permalink to "keepGoing""></a></h3><blockquote><p><strong>keepGoing</strong>: <code>boolean</code></p></blockquote><p>Whether or not to continue playing after <a href="./../../../data/projEntry/variables/hasWon">data/projEntry.hasWon</a> is true.</p><h3 id="layers" tabindex="-1">layers <a class="header-anchor" href="#layers" aria-label="Permalink to "layers""></a></h3><blockquote><p><strong>layers</strong>: <a href="https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type" target="_blank" rel="noreferrer"><code>Record</code></a><<code>string</code>, <a href="./../type-aliases/LayerData"><code>LayerData</code></a><<code>unknown</code>>></p></blockquote><p>A dictionary of layer save data.</p><h3 id="modid" tabindex="-1">modID <a class="header-anchor" href="#modid" aria-label="Permalink to "modID""></a></h3><blockquote><p><strong>modID</strong>: <code>string</code></p></blockquote><p>The ID of this project, to make sure saves aren't imported into the wrong project.</p><h3 id="modversion" tabindex="-1">modVersion <a class="header-anchor" href="#modversion" aria-label="Permalink to "modVersion""></a></h3><blockquote><p><strong>modVersion</strong>: <code>string</code></p></blockquote><p>The version of the project this save was created by. Used for upgrading saves for new versions.</p><h3 id="name" tabindex="-1">name <a class="header-anchor" href="#name" aria-label="Permalink to "name""></a></h3><blockquote><p><strong>name</strong>: <code>string</code></p></blockquote><p>The display name of this save.</p><h3 id="offlineprod" tabindex="-1">offlineProd <a class="header-anchor" href="#offlineprod" aria-label="Permalink to "offlineProd""></a></h3><blockquote><p><strong>offlineProd</strong>: <code>boolean</code></p></blockquote><p>Whether or not to apply offline time when loading this save.</p><h3 id="offlinetime" tabindex="-1">offlineTime <a class="header-anchor" href="#offlinetime" aria-label="Permalink to "offlineTime""></a></h3><blockquote><p><strong>offlineTime</strong>: <code>null</code> | <code>number</code></p></blockquote><p>How much offline time has been accumulated and not yet processed.</p><h3 id="tabs" tabindex="-1">tabs <a class="header-anchor" href="#tabs" aria-label="Permalink to "tabs""></a></h3><blockquote><p><strong>tabs</strong>: <code>string</code>[]</p></blockquote><p>The open tabs.</p><h3 id="time" tabindex="-1">time <a class="header-anchor" href="#time" aria-label="Permalink to "time""></a></h3><blockquote><p><strong>time</strong>: <code>number</code></p></blockquote><p>The current time this save was last opened at, in ms since the unix epoch.</p><h3 id="timeplayed" tabindex="-1">timePlayed <a class="header-anchor" href="#timeplayed" aria-label="Permalink to "timePlayed""></a></h3><blockquote><p><strong>timePlayed</strong>: <code>number</code></p></blockquote><p>How long, in ms, this game has been played.</p><h2 id="defined-in" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in" aria-label="Permalink to "Defined in""></a></h2><p><a href="https://code.incremental.social/profectus/Profectus/src/branch/main/src/game/player.ts#L63" target="_blank" rel="noreferrer">profectus/src/game/player.ts:63</a></p>',45)]))}const b=a(n,[["render",l]]);export{u as __pageData,b as default};
|