import{_ase,cast,oasa,Nasr}from"./chunks/framework.0799945b.js";constb=JSON.parse('{"title":"Module: game/persistence","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/modules/game/persistence.md","lastUpdated":null}'),s={name:"api/modules/game/persistence.md"},n=r('<h1id="module-game-persistence"tabindex="-1">Module:game/persistence<aclass="header-anchor"href="#module-game-persistence"aria-label="Permalink to "Module: game/persistence""></a></h1><h2id="type-aliases"tabindex="-1">TypeAliases<aclass="header-anchor"href="#type-aliases"aria-label="Permalinkto"TypeAliases""></a></h2><h3id="nonpersistent"tabindex="-1">NonPersistent<aclass="header-anchor"href="#nonpersistent"aria-label="Permalinkto"NonPersistent""></a></h3><p>Ƭ<strong>NonPersistent</strong><<code>T</code>>:<code>WritableComputedRef</code><<code>T</code>>&{<code>[DefaultValue]</code>:<code>T</code>}</p><h4id="type-parameters"tabindex="-1">Typeparameters<aclass="header-anchor"href="#type-parameters"aria-label="Permalinkto"Typeparameters""></a></h4><table><thead><tr><thstyle="text-align:left;">Name</th><thstyle="text-align:left;">Type</th></tr></thead><tbody><tr><tdstyle="text-align:left;"><code>T</code></td><tdstyle="text-align:left;">extends<ahref="./persistence#state"><code>State</code></a>=<ahref="./persistence#state"><code>State</code></a></td></tr></tbody></table><h4id="defined-in"tabindex="-1">Definedin<aclass="header-anchor"href="#defined-in"aria-label="Permalinkto"Definedin""></a></h4><p><ahref="https://github.com/profectus-engine/Profectus/blob/ba67ff4/src/game/persistence.ts#L37"target="_blank"rel="noreferrer">profectus/src/game/persistence.ts:37</a></p><p><ahref="https://github.com/profectus-engine/Profectus/blob/ba67ff4/src/game/persistence.ts#L97"target="_blank"rel="noreferrer">profectus/src/game/persistence.ts:97</a></p><hr><h3id="persistent"tabindex="-1">Persistent<aclass="header-anchor"href="#persistent"aria-label="Permalinkto"Persistent""></a></h3><p>Ƭ<strong>Persistent</strong><<code>T</code>>:<code>Ref</code><<code>T</code>>&{<code>[CheckNaN]</code>:<code>boolean</code>;<code>[DefaultValue]</code>:<code>T</code>;<code>[Deleted]</code>:<code>boolean</code>;<code>[NonPersistent]</code>:<ahref="./persistence#nonpersistent-1"><code>NonPersistent</code></a><<code>T</code>>;<code>[PersistentState]</code>:<code>Ref</code><<code>T</code>>;<code>[SaveDataPath]</code>:<code>string</code>[]|<code>undefined</code>;<code>[StackTrace]</code>:<code>string</code>;<code>value</code>:<code>T</code>}</p><p>ARefthathasbeenaugmentedwithpropertiestoallowittobesavedandloadedwithintheplayersavedataobject.</p><h4id="type-parameters-1"tabindex="-1">Typeparameters<aclass="header-anchor"href="#type-parameters-1"aria-label="Permalinkto"Typeparameters""></a></h4><table><thead><tr><thstyle="text-align:left;">Name</th><thstyle="text-align:left;">Type</th></tr></thead><tbody><tr><tdstyle="text-align:left;"><code>T</code></td><tdstyle="text-align:left;">extends<ahref="./persistence#state"><code>State</code></a>=<ahref="./persistence#state"><code>State</code></a></td></tr></tbody></table><h4id="defined-in-1"tabindex="-1">Definedin<aclass="header-anchor"href="#defined-in-1"aria-label="Permalinkto"Definedin""></a></h4><p><ahref="https://github.com/profectus-engine/Profectus/blob/ba67ff4/src/game/persistence.ts#L70"target="_blank"rel="noreferrer">profectus/src/game/persistence.ts:70</a></p><hr><h3id="state"tabindex="-1">State<aclass="header-anchor"href="#state"aria-label="Permalinkto"State""></a></h3><p>Ƭ<strong>State</strong>:<code>string</code>|<code>number</code>|<code>boolean</code>|<ahref="./../util/bignum#decimalsource"><code>DecimalSource</code></a>|{<code>[key:string]</code>:<ahref="./persi