import{_ase,cast,oasa,Nasl}from"./chunks/framework.0799945b.js";constp=JSON.parse('{"title":"Module: game/player","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/modules/game/player.md","lastUpdated":null}'),d={name:"api/modules/game/player.md"},o=l('<h1id="module-game-player"tabindex="-1">Module:game/player<aclass="header-anchor"href="#module-game-player"aria-label="Permalink to "Module: game/player""></a></h1><h2id="interfaces"tabindex="-1">Interfaces<aclass="header-anchor"href="#interfaces"aria-label="Permalinkto"Interfaces""></a></h2><h3id="player"tabindex="-1">Player<aclass="header-anchor"href="#player"aria-label="Permalinkto"Player""></a></h3><p>•<strong>Player</strong>:<code>Object</code></p><p>Theplayersavedataobject.</p><table><thead><tr><thstyle="text-align:left;">Name</th><thstyle="text-align:left;">Type</th><thstyle="text-align:left;">Description</th></tr></thead><tbody><tr><tdstyle="text-align:left;"><code>autosave</code></td><tdstyle="text-align:left;"><code>boolean</code></td><tdstyle="text-align:left;">Whetherornottoautomaticallysaveeverycoupleofsecondsandontabclose.</td></tr><tr><tdstyle="text-align:left;"><code>devSpeed</code></td><tdstyle="text-align:left;"><code>null</code>|<code>number</code></td><tdstyle="text-align:left;">Amultiplierfortimepassing.Setto0whenthegameispaused.</td></tr><tr><tdstyle="text-align:left;"><code>id</code></td><tdstyle="text-align:left;"><code>string</code></td><tdstyle="text-align:left;">TheIDofthissave.</td></tr><tr><tdstyle="text-align:left;"><code>keepGoing</code></td><tdstyle="text-align:left;"><code>boolean</code></td><tdstyle="text-align:left;">Whetherornottocontinueplayingafter<ahref="./../data/projEntry#haswon">hasWon</a>istrue.</td></tr><tr><tdstyle="text-align:left;"><code>layers</code></td><tdstyle="text-align:left;"><ahref="https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"target="_blank"rel="noreferrer"><code>Record</code></a><<code>string</code>,<ahref="./player#layerdata"><code>LayerData</code></a><<code>unknown</code>>></td><tdstyle="text-align:left;">Adictionaryoflayersavedata.</td></tr><tr><tdstyle="text-align:left;"><code>modID</code></td><tdstyle="text-align:left;"><code>string</code></td><tdstyle="text-align:left;">TheIDofthisproject,tomakesuresavesaren'timportedintothewrongproject.</td></tr><tr><tdstyle="text-align:left;"><code>modVersion</code></td><tdstyle="text-align:left;"><code>string</code></td><tdstyle="text-align:left;">Theversionoftheprojectthissavewascreatedby.Usedforupgradingsavesfornewversions.</td></tr><tr><tdstyle="text-align:left;"><code>name</code></td><tdstyle="text-align:left;"><code>string</code></td><tdstyle="text-align:left;">Thedisplaynameofthissave.</td></tr><tr><tdstyle="text-align:left;"><code>offlineProd</code></td><tdstyle="text-align:left;"><code>boolean</code></td><tdstyle="text-align:left;">Whetherornottoapplyofflinetimewhenloadingthissave.</td></tr><tr><tdstyle="text-align:left;"><code>offlineTime</code></td><tdstyle="text-align:left;"><code>null</code>|<code>number</code></td><tdstyle="text-align:left;">Howmuchofflinetimehasbeenaccumulatedandnotyetprocessed.</td></tr><tr><tdstyle="text-align:left;"><code>tabs</code></td><tdstyle="text-align:left;"><code>string</code>[]</td><tdstyle="text-align:left;">Theopentabs.</td></tr><tr><tdstyle="text-align:left;"><code>time</code></td><tdstyle="text-align:left;"><code>number</code></td><tdstyle="text-align:left;">Thecurrenttimethissavewaslastopenedat,inmssincetheunixepoch.</td></tr><tr><tdstyle="text-align:left;"><code>timePlayed</code></td><tdstyle="text-align:left;"><code>number</code></td><tdstyle="text-align:left;">Howlong,inms,thisgamehasbeenplayed.</td></tr></tbody></table><h4id="defined-in"tabindex="-1">Definedin<aclass="header-anchor"href