Skip to content
On this page

Module: util/save

Functions

getUniqueID

getUniqueID(): string

Returns

string


hardReset

hardReset(): Promise<void>

Returns

Promise<void>


load

load(): Promise<void>

Returns

Promise<void>


loadSave

loadSave(playerObj): Promise<void>

Parameters

NameType
playerObjPartial<PlayerData>

Returns

Promise<void>


newSave

newSave(): PlayerData

Returns

PlayerData


save

save(playerData?): string

Parameters

NameType
playerData?PlayerData

Returns

string


setupInitialStore

setupInitialStore(player?): Player

Parameters

NameType
playerPartial<PlayerData>

Returns

Player