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
Name | Type |
---|---|
playerObj | Partial <PlayerData > |
Returns
Promise
<void
>
newSave
▸ newSave(): PlayerData
Returns
save
▸ save(playerData?
): string
Parameters
Name | Type |
---|---|
playerData? | PlayerData |
Returns
string
setupInitialStore
▸ setupInitialStore(player?
): Player
Parameters
Name | Type |
---|---|
player | Partial <PlayerData > |