1 line
2.2 KiB
JavaScript
1 line
2.2 KiB
JavaScript
import{_ as e,c as t,a0 as r,o as n}from"./chunks/framework.P9qPzDnn.js";const u=JSON.parse('{"title":"Function: getInitialLayers()","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/data/projEntry/functions/getInitialLayers.md","filePath":"api/data/projEntry/functions/getInitialLayers.md","lastUpdated":null}'),i={name:"api/data/projEntry/functions/getInitialLayers.md"};function o(s,a,l,c,d,p){return n(),t("div",null,a[0]||(a[0]=[r('<p><a href="./../../../">Profectus</a> / <a href="./../">data/projEntry</a> / getInitialLayers</p><h1 id="function-getinitiallayers" tabindex="-1">Function: getInitialLayers() <a class="header-anchor" href="#function-getinitiallayers" aria-label="Permalink to "Function: getInitialLayers()""></a></h1><blockquote><p><strong>getInitialLayers</strong>(<code>player</code>): <a href="./../../../game/layers/interfaces/Layer"><code>Layer</code></a>[]</p></blockquote><p>Given a player save data object being loaded, return a list of layers that should currently be enabled. If your project does not use dynamic layers, this should just return all layers.</p><h2 id="parameters" tabindex="-1">Parameters <a class="header-anchor" href="#parameters" aria-label="Permalink to "Parameters""></a></h2><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><h2 id="returns" tabindex="-1">Returns <a class="header-anchor" href="#returns" aria-label="Permalink to "Returns""></a></h2><p><a href="./../../../game/layers/interfaces/Layer"><code>Layer</code></a>[]</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#L98" target="_blank" rel="noreferrer">profectus/src/data/projEntry.tsx:98</a></p>',11)]))}const y=e(i,[["render",o]]);export{u as __pageData,y as default};
|