import{_ as e,c as a,o as r,N as t}from"./chunks/framework.0799945b.js";const m=JSON.parse('{"title":"Interface: Player","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/interfaces/game/player.Player.md","lastUpdated":null}'),o={name:"api/interfaces/game/player.Player.md"},n=t('
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 hasWon is true.
profectus/src/game/player.ts:25
• layers: Record
<string
, LayerData
<unknown
>>
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.