Skip to content
On this page

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<PlayerData>The save data being loaded in

Returns

void


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<PlayerData>

Returns

GenericLayer[]