profectus-docs/assets/api_data_projEntry_functions_getInitialLayers.md.DkQBgaD5.lean.js

1 line
2.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 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 &quot;Function: getInitialLayers()&quot;"></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 &quot;Parameters&quot;"></a></h2><h3 id="player" tabindex="-1">player <a class="header-anchor" href="#player" aria-label="Permalink to &quot;player&quot;"></a></h3><p><a href="https://www.typescriptlang.org/docs/handbook/utility-types.html#partialtype" target="_blank" rel="noreferrer"><code>Partial</code></a>&lt;<a href="./../../../game/player/interfaces/Player"><code>Player</code></a>&gt;</p><h2 id="returns" tabindex="-1">Returns <a class="header-anchor" href="#returns" aria-label="Permalink to &quot;Returns&quot;"></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 &quot;Defined in&quot;"></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};