Skip to content
On this page

Interface: PlayerData

game/player.PlayerData

The player save data object.

Properties

autosave

autosave: boolean

Whether or not to automatically save every couple of seconds and on tab close.

Defined in

profectus/src/game/player.ts:22


devSpeed

devSpeed: null | number

A multiplier for time passing. Set to 0 when the game is paused.

Defined in

profectus/src/game/player.ts:14


id

id: string

The ID of this save.

Defined in

profectus/src/game/player.ts:12


keepGoing

keepGoing: boolean

Whether or not to continue playing after hasWon is true.

Defined in

profectus/src/game/player.ts:30


layers

layers: Record<string, LayerData<unknown>>

A dictionary of layer save data.

Defined in

profectus/src/game/player.ts:36


modID

modID: string

The ID of this project, to make sure saves aren't imported into the wrong project.

Defined in

profectus/src/game/player.ts:32


modVersion

modVersion: string

The version of the project this save was created by. Used for upgrading saves for new versions.

Defined in

profectus/src/game/player.ts:34


name

name: string

The display name of this save.

Defined in

profectus/src/game/player.ts:16


offlineProd

offlineProd: boolean

Whether or not to apply offline time when loading this save.

Defined in

profectus/src/game/player.ts:24


offlineTime

offlineTime: null | number

How much offline time has been accumulated and not yet processed.

Defined in

profectus/src/game/player.ts:26


tabs

tabs: string[]

The open tabs.

Defined in

profectus/src/game/player.ts:18


time

time: number

The current time this save was last opened at, in ms since the unix epoch.

Defined in

profectus/src/game/player.ts:20


timePlayed

timePlayed: number

How long, in ms, this game has been played.

Defined in

profectus/src/game/player.ts:28