import{_ase,casa,oast,Nasr}from"./chunks/framework.0799945b.js";consty=JSON.parse('{"title":"Module: data/projEntry","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/modules/data/projEntry.md","lastUpdated":null}'),o={name:"api/modules/data/projEntry.md"},n=r('<h1id="module-data-projentry"tabindex="-1">Module:data/projEntry<aclass="header-anchor"href="#module-data-projentry"aria-label="Permalink to "Module: data/projEntry""></a></h1><h2id="variables"tabindex="-1">Variables<aclass="header-anchor"href="#variables"aria-label="Permalinkto"Variables""></a></h2><h3id="haswon"tabindex="-1">hasWon<aclass="header-anchor"href="#haswon"aria-label="Permalinkto"hasWon""></a></h3><p>•<code>Const</code><strong>hasWon</strong>:<code>ComputedRef</code><<code>boolean</code>></p><p>Acomputedrefwhosevalueistruewheneverthegameisover.</p><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/425e85a/src/data/projEntry.tsx#L88"target="_blank"rel="noreferrer">profectus/src/data/projEntry.tsx:88</a></p><h2id="functions"tabindex="-1">Functions<aclass="header-anchor"href="#functions"aria-label="Permalinkto"Functions""></a></h2><h3id="fixoldsave"tabindex="-1">fixOldSave<aclass="header-anchor"href="#fixoldsave"aria-label="Permalinkto"fixOldSave""></a></h3><p>▸<strong>fixOldSave</strong>(<code>oldVersion</code>,<code>player</code>):<code>void</code></p><p>Givenaplayersavedataobjectbeingloadedwithadifferentversion,updatethesavedataobjecttomatchthestructureofthecurrentversion.</p><h5id="parameters"tabindex="-1">Parameters<aclass="header-anchor"href="#parameters"aria-label="Permalinkto"Parameters""></a></h5><table><thead><tr><thstyle="text-align:left;">Name</th><thstyle="text-align:left;">Type</th><thstyle="text-align:left;">Description</th></tr></thead><tbody><tr><tdstyle="text-align:left;"><code>oldVersion</code></td><tdstyle="text-align:left;"><code>undefined</code>|<code>string</code></td><tdstyle="text-align:left;">Theversionofthesavebeingloadedin</td></tr><tr><tdstyle="text-align:left;"><code>player</code></td><tdstyle="text-align:left;"><ahref="https://www.typescriptlang.org/docs/handbook/utility-types.html#partialtype"target="_blank"rel="noreferrer"><code>Partial</code></a><<ahref="./../game/player#player"><code>Player</code></a>></td><tdstyle="text-align:left;">Thesavedatabeingloadedin</td></tr></tbody></table><h5id="returns"tabindex="-1">Returns<aclass="header-anchor"href="#returns"aria-label="Permalinkto"Returns""></a></h5><p><code>void</code></p><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/425e85a/src/data/projEntry.tsx#L98"target="_blank"rel="noreferrer">profectus/src/data/projEntry.tsx:98</a></p><hr><h3id="getinitiallayers"tabindex="-1">getInitialLayers<aclass="header-anchor"href="#getinitiallayers"aria-label="Permalinkto"getInitialLayers""></a></h3><p>▸<strong>getInitialLayers</strong>(<code>player</code>):<ahref="./../game/layers#genericlayer"><code>GenericLayer</code></a>[]</p><p>Givenaplayersavedataobjectbeingloaded,returnalistoflayersthatshouldcurrentlybeenabled.Ifyourprojectdoesnotusedynamiclayers,thisshouldjustreturnalllayers.</p><h5id="parameters-1"tabindex="-1">Parameters<aclass="header-anchor"href="#parameters-1"aria-label="Permalinkto"Parameters""></a></h5><table><thead><tr><thstyle="text-align:left;">Name</th><thstyle="text-align:left;">Type</th></tr></thead><tbody><tr><tdstyle="text-align:left;"><code>player</code></td><tdstyle="text-align:left;"><a