import{_ as a,c as r,a0 as t,o}from"./chunks/framework.P9qPzDnn.js";const f=JSON.parse('{"title":"Interface: Player","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/game/player/interfaces/Player.md","filePath":"api/game/player/interfaces/Player.md","lastUpdated":null}'),n={name:"api/game/player/interfaces/Player.md"};function i(s,e,l,c,d,h){return o(),r("div",null,e[0]||(e[0]=[t('
Profectus / game/player / Player
The player save data object.
autosave:
boolean
Whether or not to automatically save every couple of seconds and on tab close.
profectus/src/game/player.ts:17
devSpeed:
null
|number
A multiplier for time passing. Set to 0 when the game is paused.
profectus/src/game/player.ts:9
id:
string
The ID of this save.
profectus/src/game/player.ts:7
keepGoing:
boolean
Whether or not to continue playing after data/projEntry.hasWon is true.
profectus/src/game/player.ts:25
A dictionary of layer save data.
profectus/src/game/player.ts:31
modID:
string
The ID of this project, to make sure saves aren't imported into the wrong project.
profectus/src/game/player.ts:27
modVersion:
string
The version of the project this save was created by. Used for upgrading saves for new versions.
profectus/src/game/player.ts:29
name:
string
The display name of this save.
profectus/src/game/player.ts:11
offlineProd:
boolean
Whether or not to apply offline time when loading this save.
profectus/src/game/player.ts:19
offlineTime:
null
|number
How much offline time has been accumulated and not yet processed.
profectus/src/game/player.ts:21
tabs:
string
[]
The open tabs.
profectus/src/game/player.ts:13
time:
number
The current time this save was last opened at, in ms since the unix epoch.
profectus/src/game/player.ts:15
timePlayed:
number
How long, in ms, this game has been played.