1 line
2.3 KiB
JavaScript
1 line
2.3 KiB
JavaScript
import{_ as a,c as t,a0 as r,o}from"./chunks/framework.P9qPzDnn.js";const h=JSON.parse('{"title":"Function: fixOldSave()","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/data/projEntry/functions/fixOldSave.md","filePath":"api/data/projEntry/functions/fixOldSave.md","lastUpdated":null}'),n={name:"api/data/projEntry/functions/fixOldSave.md"};function i(d,e,l,s,c,p){return o(),t("div",null,e[0]||(e[0]=[r('<p><a href="./../../../">Profectus</a> / <a href="./../">data/projEntry</a> / fixOldSave</p><h1 id="function-fixoldsave" tabindex="-1">Function: fixOldSave() <a class="header-anchor" href="#function-fixoldsave" aria-label="Permalink to "Function: fixOldSave()""></a></h1><blockquote><p><strong>fixOldSave</strong>(<code>oldVersion</code>, <code>player</code>): <code>void</code></p></blockquote><p>Given a player save data object being loaded with a different version, update the save data object to match the structure of the current version.</p><h2 id="parameters" tabindex="-1">Parameters <a class="header-anchor" href="#parameters" aria-label="Permalink to "Parameters""></a></h2><h3 id="oldversion" tabindex="-1">oldVersion <a class="header-anchor" href="#oldversion" aria-label="Permalink to "oldVersion""></a></h3><p>The version of the save being loaded in</p><p><code>undefined</code> | <code>string</code></p><h3 id="player" tabindex="-1">player <a class="header-anchor" href="#player" aria-label="Permalink to "player""></a></h3><p><a href="https://www.typescriptlang.org/docs/handbook/utility-types.html#partialtype" target="_blank" rel="noreferrer"><code>Partial</code></a><<a href="./../../../game/player/interfaces/Player"><code>Player</code></a>></p><p>The save data being loaded in</p><h2 id="returns" tabindex="-1">Returns <a class="header-anchor" href="#returns" aria-label="Permalink to "Returns""></a></h2><p><code>void</code></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/data/projEntry.tsx#L116" target="_blank" rel="noreferrer">profectus/src/data/projEntry.tsx:116</a></p>',15)]))}const u=a(n,[["render",i]]);export{h as __pageData,u as default};
|