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('

Interface: Player

game/player.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 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

',81),i=[n];function s(d,l,h,c,p,f){return r(),a("div",null,i)}const b=e(o,[["render",s]]);export{m as __pageData,b as default};