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:139
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(playerData?
): string
Parameters
Name | Type |
---|---|
playerData? | PlayerData |
Returns
string
Defined in
setupInitialStore
▸ setupInitialStore(player?
): Player
Parameters
Name | Type |
---|---|
player | Partial <PlayerData > |