Skip to content

Profectus / data/projEntry / getInitialLayers

Function: getInitialLayers() ​

getInitialLayers(player): Layer[]

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.

Parameters ​

player ​

Partial<Player>

Returns ​

Layer[]

Defined in ​

profectus/src/data/projEntry.tsx:98