import{_ as e,c as a,o as t,N as r}from"./chunks/framework.0799945b.js";const y=JSON.parse('{"title":"Module: data/projEntry","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/modules/data/projEntry.md","lastUpdated":null}'),o={name:"api/modules/data/projEntry.md"},n=r('
• Const
hasWon: ComputedRef
<boolean
>
A computed ref whose value is true whenever the game is over.
profectus/src/data/projEntry.tsx:88
▸ 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.
Name | Type | Description |
---|---|---|
oldVersion | undefined | string | The version of the save being loaded in |
player | Partial <Player > | The save data being loaded in |
void
profectus/src/data/projEntry.tsx:98
▸ 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.
Name | Type |
---|---|
player | Partial <Player > |