29 lines
No EOL
39 KiB
HTML
29 lines
No EOL
39 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en-US">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
<title>Module: util/save | Profectus</title>
|
|
<meta name="description" content="A game engine that grows with you.">
|
|
<link rel="stylesheet" href="/assets/style.148fff69.css">
|
|
<link rel="modulepreload" href="/assets/app.858e000e.js">
|
|
<link rel="modulepreload" href="/assets/api_modules_util_save.md.392be06d.lean.js">
|
|
|
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,400;0,600;1,400">
|
|
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
|
|
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
|
|
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
|
|
<link rel="manifest" href="/site.webmanifest">
|
|
<script defer="true" data-domain="moddingtree.com" src="https://plausible.io/js/plausible.js"></script>
|
|
<meta name="og:description" content="A game engine that grows with you">
|
|
<meta name="og:image" content="/Logo.png">
|
|
<meta name="twitter:title" content="Module: util/save | Profectus">
|
|
<meta property="og:title" content="Module: util/save | Profectus">
|
|
</head>
|
|
<body>
|
|
<div id="app"><!--[--><div class="theme"><header class="nav-bar" data-v-675d8756><div class="sidebar-button" data-v-675d8756><svg class="icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z" class></path></svg></div><a class="nav-bar-title" href="/" aria-label="Profectus, back to home" data-v-675d8756 data-v-cc01ef16><!----> Profectus</a><div class="flex-grow" data-v-675d8756></div><div class="nav" data-v-675d8756><nav class="nav-links" data-v-675d8756 data-v-eab3edfe><!--[--><div class="item" data-v-eab3edfe><div class="nav-link" data-v-eab3edfe data-v-b8818f8c><a class="item" href="/guide/" data-v-b8818f8c>Guide <!----></a></div></div><div class="item" data-v-eab3edfe><div class="nav-link" data-v-eab3edfe data-v-b8818f8c><a class="item active" href="/api/" data-v-b8818f8c>API <!----></a></div></div><div class="item" data-v-eab3edfe><div class="nav-link" data-v-eab3edfe data-v-b8818f8c><a class="item isExternal" href="https://forums.moddingtree.com" target="_blank" rel="noopener noreferrer" data-v-b8818f8c>Forums <svg class="icon outbound" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15" data-v-b8818f8c><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div></div><div class="item" data-v-eab3edfe><div class="nav-link" data-v-eab3edfe data-v-b8818f8c><a class="item isExternal" href="https://discord.gg/F3xveHV" target="_blank" rel="noopener noreferrer" data-v-b8818f8c>Discord <svg class="icon outbound" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15" data-v-b8818f8c><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div></div><div class="item" data-v-eab3edfe><div class="nav-link" data-v-eab3edfe data-v-b8818f8c><a class="item isExternal" href="https://github.com/profectus-engine/Profectus" target="_blank" rel="noopener noreferrer" data-v-b8818f8c>Github <svg class="icon outbound" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15" data-v-b8818f8c><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div></div><!--]--><!----><div class="item" data-v-eab3edfe><div class="nav-link" data-v-eab3edfe data-v-b8818f8c><a class="item isExternal" href="https://github.com/profectus-engine/profectus-docs" target="_blank" rel="noopener noreferrer" data-v-b8818f8c>GitHub <svg class="icon outbound" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15" data-v-b8818f8c><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div></div></nav></div><!--[--><!--]--></header><aside class="sidebar" data-v-83e92a68><nav class="nav-links nav" data-v-83e92a68 data-v-eab3edfe><!--[--><div class="item" data-v-eab3edfe><div class="nav-link" data-v-eab3edfe data-v-b8818f8c><a class="item" href="/guide/" data-v-b8818f8c>Guide <!----></a></div></div><div class="item" data-v-eab3edfe><div class="nav-link" data-v-eab3edfe data-v-b8818f8c><a class="item active" href="/api/" data-v-b8818f8c>API <!----></a></div></div><div class="item" data-v-eab3edfe><div class="nav-link" data-v-eab3edfe data-v-b8818f8c><a class="item isExternal" href="https://forums.moddingtree.com" target="_blank" rel="noopener noreferrer" data-v-b8818f8c>Forums <svg class="icon outbound" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15" data-v-b8818f8c><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div></div><div class="item" data-v-eab3edfe><div class="nav-link" data-v-eab3edfe data-v-b8818f8c><a class="item isExternal" href="https://discord.gg/F3xveHV" target="_blank" rel="noopener noreferrer" data-v-b8818f8c>Discord <svg class="icon outbound" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15" data-v-b8818f8c><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div></div><div class="item" data-v-eab3edfe><div class="nav-link" data-v-eab3edfe data-v-b8818f8c><a class="item isExternal" href="https://github.com/profectus-engine/Profectus" target="_blank" rel="noopener noreferrer" data-v-b8818f8c>Github <svg class="icon outbound" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15" data-v-b8818f8c><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div></div><!--]--><!----><div class="item" data-v-eab3edfe><div class="nav-link" data-v-eab3edfe data-v-b8818f8c><a class="item isExternal" href="https://github.com/profectus-engine/profectus-docs" target="_blank" rel="noopener noreferrer" data-v-b8818f8c>GitHub <svg class="icon outbound" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15" data-v-b8818f8c><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div></div></nav><!--[--><!--]--><ul class="sidebar-links" data-v-83e92a68><!--[--><li class="sidebar-link"><p class="sidebar-link-item">Components</p><ul class="sidebar-links"><li class="sidebar-link"><p class="sidebar-link-item">Fields</p><ul class="sidebar-links"><li class="sidebar-link"><a class="sidebar-link-item" href="/api/components/fields/DangerButtonComponent.html"> Danger Button Component</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="/api/components/fields/FeedbackButtonComponent.html"> Feedback Button Component</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="/api/components/fields/SelectComponent.html"> Select Component</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="/api/components/fields/SliderComponent.html"> Slider Component</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="/api/components/fields/TextComponent.html"> Text Component</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="/api/components/fields/ToggleComponent.html"> Toggle Component</a><!----></li></ul></li><li class="sidebar-link"><p class="sidebar-link-item">Layout</p><ul class="sidebar-links"><li class="sidebar-link"><a class="sidebar-link-item" href="/api/components/layout/ColumnComponent.html"> Column Component</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="/api/components/layout/RowComponent.html"> Row Component</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="/api/components/layout/SpacerComponent.html"> Spacer Component</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="/api/components/layout/StickyComponent.html"> Sticky Component</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="/api/components/layout/VerticalRuleComponent.html"> Vertical Rule Component</a><!----></li></ul></li><li class="sidebar-link"><p class="sidebar-link-item">Links</p><ul class="sidebar-links"><li class="sidebar-link"><a class="sidebar-link-item" href="/api/components/links/LinkComponent.html"> Link Component</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="/api/components/links/LinkNodeComponent.html"> Link Node Component</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="/api/components/links/LinksComponent.html"> Links Component</a><!----></li></ul></li><li class="sidebar-link"><a class="sidebar-link-item" href="/api/components/InfoComponent.html"> Info Component</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="/api/components/LayerComponent.html"> Layer Component</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="/api/components/MarkNodeComponent.html"> Mark Node Component</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="/api/components/ModalComponent.html"> Modal Component</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="/api/components/SaveComponent.html"> Save Component</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="/api/components/TooltipComponent.html"> Tooltip Component</a><!----></li></ul></li><li class="sidebar-link"><p class="sidebar-link-item">Data</p><ul class="sidebar-links"><li class="sidebar-link"><a class="sidebar-link-item" href="/api/modules/data/common.html">Common</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="/api/modules/data/projEntry.html">Proj Entry</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="/api/modules/data/themes.html">Themes</a><!----></li></ul></li><li class="sidebar-link"><p class="sidebar-link-item">Features</p><ul class="sidebar-links"><li class="sidebar-link"><p class="sidebar-link-item">Achievements</p><ul class="sidebar-links"><li class="sidebar-link"><a class="sidebar-link-item" href="/api/features/achievements/AchievementComponent.html"> Achievement Component</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="/api/modules/features/achievements/achievement.html">Achievement</a><!----></li></ul></li><li class="sidebar-link"><p class="sidebar-link-item">Bars</p><ul class="sidebar-links"><li class="sidebar-link"><a class="sidebar-link-item" href="/api/features/bars/BarComponent.html"> Bar Component</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="/api/modules/features/bars/bar.html">Bar</a><!----></li></ul></li><li class="sidebar-link"><p class="sidebar-link-item">Boards</p><ul class="sidebar-links"><li class="sidebar-link"><a class="sidebar-link-item" href="/api/features/boards/BoardLinkComponent.html"> Board Link Component</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="/api/features/boards/BoardNodeComponent.html"> Board Node Component</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="/api/modules/features/boards/board.html">Board</a><!----></li></ul></li><li class="sidebar-link"><p class="sidebar-link-item">Challenges</p><ul class="sidebar-links"><li class="sidebar-link"><a class="sidebar-link-item" href="/api/features/challenges/ChallengeComponent.html"> Challenge Component</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="/api/modules/features/challenges/challenge.html">Challenge</a><!----></li></ul></li><li class="sidebar-link"><p class="sidebar-link-item">Clickables</p><ul class="sidebar-links"><li class="sidebar-link"><a class="sidebar-link-item" href="/api/features/clickables/ClickableComponent.html"> Clickable Component</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="/api/modules/features/clickables/clickable.html">Clickable</a><!----></li></ul></li><li class="sidebar-link"><p class="sidebar-link-item">Grids</p><ul class="sidebar-links"><li class="sidebar-link"><a class="sidebar-link-item" href="/api/features/grids/GridCellComponent.html"> Grid Cell Component</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="/api/features/grids/GridComponent.html"> Grid Component</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="/api/modules/features/grids/grid.html">Grid</a><!----></li></ul></li><li class="sidebar-link"><p class="sidebar-link-item">Infoboxes</p><ul class="sidebar-links"><li class="sidebar-link"><a class="sidebar-link-item" href="/api/features/infoboxes/InfoboxComponent.html"> Infobox Component</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="/api/modules/features/infoboxes/infobox.html">Infobox</a><!----></li></ul></li><li class="sidebar-link"><p class="sidebar-link-item">Milestones</p><ul class="sidebar-links"><li class="sidebar-link"><a class="sidebar-link-item" href="/api/features/milestones/MilestoneComponent.html"> Milestone Component</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="/api/modules/features/milestones/milestone.html">Milestone</a><!----></li></ul></li><li class="sidebar-link"><p class="sidebar-link-item">Resources</p><ul class="sidebar-links"><li class="sidebar-link"><a class="sidebar-link-item" href="/api/features/resources/MainDisplayComponent.html"> Main Display Component</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="/api/features/resources/ResourceComponent.html"> Resource Component</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="/api/modules/features/resources/resource.html">Resource</a><!----></li></ul></li><li class="sidebar-link"><p class="sidebar-link-item">Tabs</p><ul class="sidebar-links"><li class="sidebar-link"><a class="sidebar-link-item" href="/api/features/tabs/TabButtonComponent.html"> Tab Button Component</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="/api/features/tabs/TabComponent.html"> Tab Component</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="/api/features/tabs/TabFamilyComponent.html"> Tab Family Component</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="/api/modules/features/tabs/tab.html">Tab</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="/api/modules/features/tabs/tabFamily.html">Tab Family</a><!----></li></ul></li><li class="sidebar-link"><p class="sidebar-link-item">Trees</p><ul class="sidebar-links"><li class="sidebar-link"><a class="sidebar-link-item" href="/api/features/trees/TreeComponent.html"> Tree Component</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="/api/features/trees/TreeNodeComponent.html"> Tree Node Component</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="/api/modules/features/trees/tree.html">Tree</a><!----></li></ul></li><li class="sidebar-link"><p class="sidebar-link-item">Upgrades</p><ul class="sidebar-links"><li class="sidebar-link"><a class="sidebar-link-item" href="/api/features/upgrades/UpgradeComponent.html"> Upgrade Component</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="/api/modules/features/upgrades/upgrade.html">Upgrade</a><!----></li></ul></li><li class="sidebar-link"><a class="sidebar-link-item" href="/api/modules/features/buyable.html">Buyable</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="/api/modules/features/conversion.html">Conversion</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="/api/modules/features/feature.html">Feature</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="/api/modules/features/hotkey.html">Hotkey</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="/api/modules/features/links.html">Links</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="/api/modules/features/reset.html">Reset</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="/api/modules/features/tooltip.html">Tooltip</a><!----></li></ul></li><li class="sidebar-link"><p class="sidebar-link-item">Game</p><ul class="sidebar-links"><li class="sidebar-link"><a class="sidebar-link-item" href="/api/modules/game/events.html">Events</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="/api/modules/game/layers.html">Layers</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="/api/modules/game/notifications.html">Notifications</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="/api/modules/game/persistence.html">Persistence</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="/api/modules/game/player.html">Player</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="/api/modules/game/settings.html">Settings</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="/api/modules/game/state.html">State</a><!----></li></ul></li><li class="sidebar-link"><p class="sidebar-link-item">Lib</p><ul class="sidebar-links"><li class="sidebar-link"><a class="sidebar-link-item" href="/api/modules/lib/break_eternity.html">Break Eternity</a><!----></li></ul></li><li class="sidebar-link"><p class="sidebar-link-item">Util</p><ul class="sidebar-links"><li class="sidebar-link"><a class="sidebar-link-item" href="/api/modules/util/bignum.html">Bignum</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="/api/modules/util/break_eternity.html">Break Eternity</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="/api/modules/util/common.html">Common</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="/api/modules/util/computed.html">Computed</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="/api/modules/util/proxies.html">Proxies</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item active" href="/api/modules/util/save.html">Save</a><ul class="sidebar-links"><li class="sidebar-link"><a class="sidebar-link-item" href="#functions">Functions</a><ul class="sidebar-links"><li class="sidebar-link"><a class="sidebar-link-item" href="#getuniqueid">getUniqueID</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="#hardreset">hardReset</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="#load">load</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="#loadsave">loadSave</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="#newsave">newSave</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="#save">save</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="#setupinitialstore">setupInitialStore</a><!----></li></ul></li></ul></li><li class="sidebar-link"><a class="sidebar-link-item" href="/api/modules/util/vue.html">Vue</a><!----></li></ul></li><!--]--></ul><!--[--><!--]--></aside><div class="sidebar-mask"></div><main class="page" data-v-7eddb2c4><div class="container" data-v-7eddb2c4><!--[--><!--]--><div style="position:relative;" class="content" data-v-7eddb2c4><div><h1 id="module-util-save" tabindex="-1">Module: util/save <a class="header-anchor" href="#module-util-save" aria-hidden="true">#</a></h1><h2 id="functions" tabindex="-1">Functions <a class="header-anchor" href="#functions" aria-hidden="true">#</a></h2><h3 id="getuniqueid" tabindex="-1">getUniqueID <a class="header-anchor" href="#getuniqueid" aria-hidden="true">#</a></h3><p>▸ <strong>getUniqueID</strong>(): <code>string</code></p><h4 id="returns" tabindex="-1">Returns <a class="header-anchor" href="#returns" aria-hidden="true">#</a></h4><p><code>string</code></p><h4 id="defined-in" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in" aria-hidden="true">#</a></h4><p><a href="https://github.com/profectus-engine/Profectus/blob/d680e46/src/util/save.ts#L66" target="_blank" rel="noopener noreferrer">profectus/src/util/save.ts:66</a></p><hr><h3 id="hardreset" tabindex="-1">hardReset <a class="header-anchor" href="#hardreset" aria-hidden="true">#</a></h3><p>▸ <strong>hardReset</strong>(): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise" target="_blank" rel="noopener noreferrer"><code>Promise</code></a><<code>void</code>></p><h4 id="returns-1" tabindex="-1">Returns <a class="header-anchor" href="#returns-1" aria-hidden="true">#</a></h4><p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise" target="_blank" rel="noopener noreferrer"><code>Promise</code></a><<code>void</code>></p><h4 id="defined-in-1" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in-1" aria-hidden="true">#</a></h4><p><a href="https://github.com/profectus-engine/Profectus/blob/d680e46/src/util/save.ts#L114" target="_blank" rel="noopener noreferrer">profectus/src/util/save.ts:114</a></p><hr><h3 id="load" tabindex="-1">load <a class="header-anchor" href="#load" aria-hidden="true">#</a></h3><p>▸ <strong>load</strong>(): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise" target="_blank" rel="noopener noreferrer"><code>Promise</code></a><<code>void</code>></p><h4 id="returns-2" tabindex="-1">Returns <a class="header-anchor" href="#returns-2" aria-hidden="true">#</a></h4><p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise" target="_blank" rel="noopener noreferrer"><code>Promise</code></a><<code>void</code>></p><h4 id="defined-in-2" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in-2" aria-hidden="true">#</a></h4><p><a href="https://github.com/profectus-engine/Profectus/blob/d680e46/src/util/save.ts#L33" target="_blank" rel="noopener noreferrer">profectus/src/util/save.ts:33</a></p><hr><h3 id="loadsave" tabindex="-1">loadSave <a class="header-anchor" href="#loadsave" aria-hidden="true">#</a></h3><p>▸ <strong>loadSave</strong>(<code>playerObj</code>): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise" target="_blank" rel="noopener noreferrer"><code>Promise</code></a><<code>void</code>></p><h4 id="parameters" tabindex="-1">Parameters <a class="header-anchor" href="#parameters" aria-hidden="true">#</a></h4><table><thead><tr><th style="text-align:left;">Name</th><th style="text-align:left;">Type</th></tr></thead><tbody><tr><td style="text-align:left;"><code>playerObj</code></td><td style="text-align:left;"><code>Partial</code><<a href="../../interfaces/game/player.PlayerData"><code>PlayerData</code></a>></td></tr></tbody></table><h4 id="returns-3" tabindex="-1">Returns <a class="header-anchor" href="#returns-3" aria-hidden="true">#</a></h4><p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise" target="_blank" rel="noopener noreferrer"><code>Promise</code></a><<code>void</code>></p><h4 id="defined-in-3" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in-3" aria-hidden="true">#</a></h4><p><a href="https://github.com/profectus-engine/Profectus/blob/d680e46/src/util/save.ts#L75" target="_blank" rel="noopener noreferrer">profectus/src/util/save.ts:75</a></p><hr><h3 id="newsave" tabindex="-1">newSave <a class="header-anchor" href="#newsave" aria-hidden="true">#</a></h3><p>▸ <strong>newSave</strong>(): <a href="../../interfaces/game/player.PlayerData"><code>PlayerData</code></a></p><h4 id="returns-4" tabindex="-1">Returns <a class="header-anchor" href="#returns-4" aria-hidden="true">#</a></h4><p><a href="../../interfaces/game/player.PlayerData"><code>PlayerData</code></a></p><h4 id="defined-in-4" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in-4" aria-hidden="true">#</a></h4><p><a href="https://github.com/profectus-engine/Profectus/blob/d680e46/src/util/save.ts#L56" target="_blank" rel="noopener noreferrer">profectus/src/util/save.ts:56</a></p><hr><h3 id="save" tabindex="-1">save <a class="header-anchor" href="#save" aria-hidden="true">#</a></h3><p>▸ <strong>save</strong>(): <code>string</code></p><h4 id="returns-5" tabindex="-1">Returns <a class="header-anchor" href="#returns-5" aria-hidden="true">#</a></h4><p><code>string</code></p><h4 id="defined-in-5" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in-5" aria-hidden="true">#</a></h4><p><a href="https://github.com/profectus-engine/Profectus/blob/d680e46/src/util/save.ts#L27" target="_blank" rel="noopener noreferrer">profectus/src/util/save.ts:27</a></p><hr><h3 id="setupinitialstore" tabindex="-1">setupInitialStore <a class="header-anchor" href="#setupinitialstore" aria-hidden="true">#</a></h3><p>▸ <strong>setupInitialStore</strong>(<code>player?</code>): <a href="./../game/player.html#player"><code>Player</code></a></p><h4 id="parameters-1" tabindex="-1">Parameters <a class="header-anchor" href="#parameters-1" aria-hidden="true">#</a></h4><table><thead><tr><th style="text-align:left;">Name</th><th style="text-align:left;">Type</th></tr></thead><tbody><tr><td style="text-align:left;"><code>player</code></td><td style="text-align:left;"><code>Partial</code><<a href="../../interfaces/game/player.PlayerData"><code>PlayerData</code></a>></td></tr></tbody></table><h4 id="returns-6" tabindex="-1">Returns <a class="header-anchor" href="#returns-6" aria-hidden="true">#</a></h4><p><a href="./../game/player.html#player"><code>Player</code></a></p><h4 id="defined-in-6" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in-6" aria-hidden="true">#</a></h4><p><a href="https://github.com/profectus-engine/Profectus/blob/d680e46/src/util/save.ts#L7" target="_blank" rel="noopener noreferrer">profectus/src/util/save.ts:7</a></p></div></div><footer class="page-footer" data-v-7eddb2c4 data-v-07c132fc><div class="edit" data-v-07c132fc><div class="edit-link" data-v-07c132fc data-v-1ed99556><a class="link" href="https://github.com/profectus-engine/profectus-docs/edit/main/docs/api/modules/util/save.md" target="_blank" rel="noopener noreferrer" data-v-1ed99556>Edit this page on GitHub <svg class="icon outbound icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15" data-v-1ed99556><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div></div><div class="updated" data-v-07c132fc><!----></div></footer><div class="next-and-prev-link" data-v-7eddb2c4 data-v-38ede35f><div class="container" data-v-38ede35f><div class="prev" data-v-38ede35f><a class="link" href="/api/modules/util/proxies" data-v-38ede35f><svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" class="icon icon-prev" data-v-38ede35f><path d="M19,11H7.4l5.3-5.3c0.4-0.4,0.4-1,0-1.4s-1-0.4-1.4,0l-7,7c-0.1,0.1-0.2,0.2-0.2,0.3c-0.1,0.2-0.1,0.5,0,0.8c0.1,0.1,0.1,0.2,0.2,0.3l7,7c0.2,0.2,0.5,0.3,0.7,0.3s0.5-0.1,0.7-0.3c0.4-0.4,0.4-1,0-1.4L7.4,13H19c0.6,0,1-0.4,1-1S19.6,11,19,11z"></path></svg><span class="text" data-v-38ede35f>Proxies</span></a></div><div class="next" data-v-38ede35f><a class="link" href="/api/modules/util/vue" data-v-38ede35f><span class="text" data-v-38ede35f>Vue</span><svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" class="icon icon-next" data-v-38ede35f><path d="M19.9,12.4c0.1-0.2,0.1-0.5,0-0.8c-0.1-0.1-0.1-0.2-0.2-0.3l-7-7c-0.4-0.4-1-0.4-1.4,0s-0.4,1,0,1.4l5.3,5.3H5c-0.6,0-1,0.4-1,1s0.4,1,1,1h11.6l-5.3,5.3c-0.4,0.4-0.4,1,0,1.4c0.2,0.2,0.5,0.3,0.7,0.3s0.5-0.1,0.7-0.3l7-7C19.8,12.6,19.9,12.5,19.9,12.4z"></path></svg></a></div></div></div><!--[--><!--]--></div></main></div><!----><!--]--></div>
|
|
<script>__VP_HASH_MAP__ = JSON.parse("{\"api_classes_lib_break_eternity.decimal.md\":\"87e38376\",\"api_components_infocomponent.md\":\"5df71ef5\",\"api_components_layercomponent.md\":\"3a103122\",\"api_components_marknodecomponent.md\":\"695cc67b\",\"api_components_modalcomponent.md\":\"da2d990d\",\"api_components_savecomponent.md\":\"19969d64\",\"api_components_tooltipcomponent.md\":\"846e8b24\",\"api_components_fields_dangerbuttoncomponent.md\":\"2d18cd9c\",\"api_components_fields_feedbackbuttoncomponent.md\":\"c8e81618\",\"api_components_fields_selectcomponent.md\":\"00fa3fd3\",\"api_components_fields_slidercomponent.md\":\"b9e502f8\",\"api_components_fields_textcomponent.md\":\"f1e41630\",\"api_components_fields_togglecomponent.md\":\"6673fc9a\",\"api_components_layout_columncomponent.md\":\"8859e8b0\",\"api_components_layout_rowcomponent.md\":\"0af9477c\",\"api_components_layout_spacercomponent.md\":\"17f18d0c\",\"api_components_layout_stickycomponent.md\":\"3fd0d601\",\"api_components_layout_verticalrulecomponent.md\":\"26c19d86\",\"api_components_links_linkcomponent.md\":\"5317b205\",\"api_components_links_linknodecomponent.md\":\"34dfd5ae\",\"api_components_links_linkscomponent.md\":\"b9d812b3\",\"api_enums_data_themes.themes.md\":\"6985bd24\",\"api_enums_features_bars_bar.direction.md\":\"5e3bb1b8\",\"api_enums_features_boards_board.progressdisplay.md\":\"d75d3222\",\"api_enums_features_boards_board.shape.md\":\"f6a7389a\",\"api_enums_features_feature.visibility.md\":\"0830684b\",\"api_enums_features_milestones_milestone.milestonedisplay.md\":\"79ba06ba\",\"api_features_achievements_achievementcomponent.md\":\"2b4347ab\",\"api_features_bars_barcomponent.md\":\"a553c089\",\"api_features_boards_boardlinkcomponent.md\":\"a6cc2e53\",\"api_features_boards_boardnodecomponent.md\":\"56a027bf\",\"api_features_challenges_challengecomponent.md\":\"d69f3f82\",\"api_features_clickables_clickablecomponent.md\":\"1a6f2b77\",\"api_features_grids_gridcellcomponent.md\":\"85290530\",\"api_features_grids_gridcomponent.md\":\"7e6b8fd1\",\"api_features_infoboxes_infoboxcomponent.md\":\"d763e309\",\"api_features_milestones_milestonecomponent.md\":\"8ad104f1\",\"api_features_resources_maindisplaycomponent.md\":\"ee5c990a\",\"api_features_resources_resourcecomponent.md\":\"598ec42c\",\"api_features_tabs_tabbuttoncomponent.md\":\"41e9e469\",\"api_features_tabs_tabcomponent.md\":\"a3a0fbaa\",\"api_features_tabs_tabfamilycomponent.md\":\"ca31b80b\",\"api_features_trees_treecomponent.md\":\"41715ee4\",\"api_features_trees_treenodecomponent.md\":\"2530af72\",\"api_features_upgrades_upgradecomponent.md\":\"a9042015\",\"api_index.md\":\"b77bc236\",\"api_interfaces_data_common.layertreenodeoptions.md\":\"977e37dc\",\"api_interfaces_data_common.resetbuttonoptions.md\":\"f29cfdc5\",\"api_interfaces_data_themes.theme.md\":\"96f37952\",\"api_interfaces_data_themes.themevars.md\":\"4ea1acd6\",\"api_interfaces_features_achievements_achievement.achievementoptions.md\":\"51f545bf\",\"api_interfaces_features_achievements_achievement.baseachievement.md\":\"701eb60c\",\"api_interfaces_features_bars_bar.baroptions.md\":\"e537c7ed\",\"api_interfaces_features_bars_bar.basebar.md\":\"fbaa911b\",\"api_interfaces_features_boards_board.baseboard.md\":\"abcee766\",\"api_interfaces_features_boards_board.baseboardnodeaction.md\":\"17300577\",\"api_interfaces_features_boards_board.basenodetype.md\":\"b7448477\",\"api_interfaces_features_boards_board.boardnode.md\":\"27b8b390\",\"api_interfaces_features_boards_board.boardnodeactionoptions.md\":\"d329ae59\",\"api_interfaces_features_boards_board.boardnodelink.md\":\"ebd6f3fc\",\"api_interfaces_features_boards_board.boardoptions.md\":\"89b5f05a\",\"api_interfaces_features_boards_board.nodelabel.md\":\"aa98a4a5\",\"api_interfaces_features_boards_board.nodetypeoptions.md\":\"148e0815\",\"api_interfaces_features_buyable.basebuyable.md\":\"4cb48dd6\",\"api_interfaces_features_buyable.buyableoptions.md\":\"6a1c15db\",\"api_interfaces_features_challenges_challenge.basechallenge.md\":\"6f51018d\",\"api_interfaces_features_challenges_challenge.challengeoptions.md\":\"0ef1ace6\",\"api_interfaces_features_clickables_clickable.baseclickable.md\":\"7fb139a8\",\"api_interfaces_features_clickables_clickable.clickableoptions.md\":\"6cda4068\",\"api_interfaces_features_conversion.baseconversion.md\":\"7e8ce639\",\"api_interfaces_features_conversion.conversionoptions.md\":\"65da04f7\",\"api_interfaces_features_grids_grid.basegrid.md\":\"7a2cb8f6\",\"api_interfaces_features_grids_grid.gridcell.md\":\"679c7d1d\",\"api_interfaces_features_grids_grid.gridoptions.md\":\"fa7191f4\",\"api_interfaces_features_hotkey.basehotkey.md\":\"9bb59fba\",\"api_interfaces_features_hotkey.hotkeyoptions.md\":\"1e8323f6\",\"api_interfaces_features_infoboxes_infobox.baseinfobox.md\":\"f5d4afb2\",\"api_interfaces_features_infoboxes_infobox.infoboxoptions.md\":\"aeb5d6ff\",\"api_interfaces_features_links.link.md\":\"381b0832\",\"api_interfaces_features_links.linknode.md\":\"dd232bbf\",\"api_interfaces_features_milestones_milestone.basemilestone.md\":\"a7fc7b70\",\"api_interfaces_features_milestones_milestone.milestoneoptions.md\":\"94b173d6\",\"api_interfaces_features_reset.basereset.md\":\"243dadcb\",\"api_interfaces_features_reset.resetoptions.md\":\"6e62c9d6\",\"api_interfaces_features_resources_resource.resource.md\":\"7771876e\",\"api_interfaces_features_tabs_tab.basetab.md\":\"d721de11\",\"api_interfaces_features_tabs_tab.taboptions.md\":\"94a33b43\",\"api_interfaces_features_tabs_tabfamily.basetabbutton.md\":\"e40c79f8\",\"api_interfaces_features_tabs_tabfamily.basetabfamily.md\":\"522ff900\",\"api_interfaces_features_tabs_tabfamily.tabbuttonoptions.md\":\"2bed9ac3\",\"api_interfaces_features_tabs_tabfamily.tabfamilyoptions.md\":\"fec6035c\",\"api_interfaces_features_tooltip.tooltip.md\":\"e775f439\",\"api_interfaces_features_trees_tree.basetree.md\":\"8d43574b\",\"api_interfaces_features_trees_tree.basetreenode.md\":\"211544e7\",\"api_interfaces_features_trees_tree.treebranch.md\":\"6f43d0e2\",\"api_interfaces_features_trees_tree.treenodeoptions.md\":\"e3fff87a\",\"api_interfaces_features_trees_tree.treeoptions.md\":\"b530232d\",\"api_interfaces_features_upgrades_upgrade.baseupgrade.md\":\"9cf470f9\",\"api_interfaces_features_upgrades_upgrade.upgradeoptions.md\":\"b5ca0e14\",\"api_interfaces_game_events.globalevents.md\":\"bbf41349\",\"api_interfaces_game_layers.baselayer.md\":\"193e136e\",\"api_interfaces_game_layers.layerevents.md\":\"6d63afaa\",\"api_interfaces_game_layers.layeroptions.md\":\"f99e901d\",\"api_interfaces_game_layers.position.md\":\"0b2cf43f\",\"api_interfaces_game_player.playerdata.md\":\"ecca30da\",\"api_interfaces_game_settings.settings.md\":\"a3d13ec6\",\"api_interfaces_game_state.transient.md\":\"0e9ef52c\",\"api_modules_data_common.md\":\"009826fd\",\"api_modules_data_projentry.md\":\"7e0b483b\",\"api_modules_data_themes.md\":\"f3289e27\",\"api_modules_features_achievements_achievement.md\":\"82bbf4a9\",\"api_modules_features_bars_bar.md\":\"002df3ff\",\"api_modules_features_boards_board.md\":\"ce0e37bd\",\"api_modules_features_buyable.md\":\"96a1e89f\",\"api_modules_features_challenges_challenge.md\":\"f89e9f35\",\"api_modules_features_clickables_clickable.md\":\"149436f0\",\"api_modules_features_conversion.md\":\"d01e371e\",\"api_modules_features_feature.md\":\"8c4d4777\",\"api_modules_features_grids_grid.md\":\"619895aa\",\"api_modules_features_hotkey.md\":\"acc18fef\",\"api_modules_features_infoboxes_infobox.md\":\"f3743112\",\"api_modules_features_links.md\":\"bbdd2462\",\"api_modules_features_milestones_milestone.md\":\"db8ea98c\",\"api_modules_features_reset.md\":\"600b3769\",\"api_modules_features_resources_resource.md\":\"33a7cae6\",\"api_modules_features_tabs_tab.md\":\"047f50f6\",\"api_modules_features_tabs_tabfamily.md\":\"d2f1a8b4\",\"api_modules_features_tooltip.md\":\"dbd29ae1\",\"api_modules_features_trees_tree.md\":\"75b2f935\",\"api_modules_features_upgrades_upgrade.md\":\"66f86092\",\"api_modules_game_events.md\":\"afd711ea\",\"api_modules_game_layers.md\":\"09bc99c8\",\"api_modules_game_notifications.md\":\"227d7873\",\"api_modules_game_persistence.md\":\"0b717484\",\"api_modules_game_player.md\":\"e5af1626\",\"api_modules_game_settings.md\":\"c4584fe0\",\"api_modules_game_state.md\":\"3c2202b8\",\"api_modules_lib_break_eternity.md\":\"d26da7e8\",\"api_modules_util_bignum.md\":\"813b99c5\",\"api_modules_util_break_eternity.md\":\"fd7ac5d5\",\"api_modules_util_common.md\":\"3057c609\",\"api_modules_util_computed.md\":\"41816fb5\",\"api_modules_util_proxies.md\":\"605b5e79\",\"api_modules_util_save.md\":\"392be06d\",\"api_modules_util_vue.md\":\"15b1883a\",\"guide_changelog.md\":\"0bb32b18\",\"guide_coercable.md\":\"99bdeb3c\",\"guide_creating-features.md\":\"51202d65\",\"guide_features.md\":\"0f46f3f0\",\"guide_index.md\":\"730b2aa0\",\"guide_layers.md\":\"1fea0629\",\"guide_project-entry.md\":\"945364b0\",\"guide_project-info.md\":\"3b9e9b47\",\"guide_reactivity.md\":\"ac2c67c4\",\"guide_setup.md\":\"fa6a6b9b\",\"guide_themes.md\":\"a8743084\",\"guide_updating.md\":\"1da589cd\",\"guide_utils.md\":\"4c20287f\",\"index.md\":\"c5de9723\"}")</script>
|
|
<script type="module" async src="/assets/app.858e000e.js"></script>
|
|
|
|
</body>
|
|
</html> |