Skip to content

Profectus / game/player / Player

Interface: Player ​

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:17


devSpeed ​

devSpeed: null | number

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

Defined in ​

profectus/src/game/player.ts:9


id ​

id: string

The ID of this save.

Defined in ​

profectus/src/game/player.ts:7


keepGoing ​

keepGoing: boolean

Whether or not to continue playing after data/projEntry.hasWon is true.

Defined in ​

profectus/src/game/player.ts:25


layers ​

layers: Record<string, LayerData<unknown>>

A dictionary of layer save data.

Defined in ​

profectus/src/game/player.ts:31


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:27


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:29


name ​

name: string

The display name of this save.

Defined in ​

profectus/src/game/player.ts:11


offlineProd ​

offlineProd: boolean

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

Defined in ​

profectus/src/game/player.ts:19


offlineTime ​

offlineTime: null | number

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

Defined in ​

profectus/src/game/player.ts:21


tabs ​

tabs: string[]

The open tabs.

Defined in ​

profectus/src/game/player.ts:13


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:15


timePlayed ​

timePlayed: number

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

Defined in ​

profectus/src/game/player.ts:23