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('

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
NameTypeDescription
oldVersionundefined | stringThe version of the save being loaded in
playerPartial<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
NameType
playerPartial<Player>
Returns

GenericLayer[]

Defined in

profectus/src/data/projEntry.tsx:80

',27),d=[n];function l(i,s,h,c,p,f){return t(),a("div",null,d)}const b=e(o,[["render",l]]);export{y as __pageData,b as default};