Module: util/save
Functions
getUniqueID
▸ getUniqueID(): string
Returns
string
Defined in
hardReset
▸ hardReset(): Promise
<void
>
Returns
Promise
<void
>
Defined in
profectus/src/util/save.ts:110
load
▸ load(): Promise
<void
>
Returns
Promise
<void
>
Defined in
loadSave
▸ loadSave(playerObj
): Promise
<void
>
Parameters
Name | Type |
---|---|
playerObj | Partial <PlayerData > |
Returns
Promise
<void
>
Defined in
newSave
▸ newSave(): PlayerData
Returns
Defined in
save
▸ save(): string
Returns
string
Defined in
setupInitialStore
▸ setupInitialStore(player?
): Player
Parameters
Name | Type |
---|---|
player | Partial <PlayerData > |