Module: data/projEntry
Variables
hasWon
• Const
hasWon: ComputedRef
<boolean
>
A computed ref whose value is true whenever the game is over.
Defined in
profectus/src/data/projEntry.tsx:88
Functions
fixOldSave
▸ fixOldSave(oldVersion
, player
): void
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.
Parameters
Name | Type | Description |
---|---|---|
oldVersion | undefined | string | The version of the save being loaded in |
player | Partial <Player > | The save data being loaded in |
Returns
void
Defined in
profectus/src/data/projEntry.tsx:98
getInitialLayers
▸ getInitialLayers(player
): GenericLayer
[]
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
Name | Type |
---|---|
player | Partial <Player > |