profectus-docs/assets/api_game_player_variables_default.md.Vj5EsnQ1.js

1 line
5.2 KiB
JavaScript
Raw Permalink 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 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 &quot;Variable: default&quot;"></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 &quot;Type declaration&quot;"></a></h2><h3 id="autosave" tabindex="-1">autosave <a class="header-anchor" href="#autosave" aria-label="Permalink to &quot;autosave&quot;"></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 &quot;devSpeed&quot;"></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 &quot;id&quot;"></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 &quot;keepGoing&quot;"></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 &quot;layers&quot;"></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>&lt;<code>string</code>, <a href="./../type-aliases/LayerData"><code>LayerData</code></a>&lt;<code>unknown</code>&gt;&gt;</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 &quot;modID&quot;"></a></h3><blockquote><p><strong>modID</strong>: <code>string</code></p></blockquote><p>The ID of this project, to make sure saves aren&#39;t imported into the wrong project.</p><h3 id="modversion" tabindex="-1">modVersion <a class="header-anchor" href="#modversion" aria-label="Permalink to &quot;modVersion&quot;"></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 &quot;name&quot;"></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 &quot;offlineProd&quot;"></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 &quot;offlineTime&quot;"></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 &quot;tabs&quot;"></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 &quot;time&quot;"></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 &quot;timePlayed&quot;"></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 &quot;Defined in&quot;"></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};