Readonly
eventReadonly
gameOptional
target: numberOptional
slot: numberReturns the players ClientStore
Optional
cleanup: booleanOptional
pretty: booleanOptional
compress: falseConverts a Uint8Array into a SaveObject Used in conjection with exportSlotAsUint8Array / exportSaveObjectAsUint8Array
Gets the used slots, ordered by one of a few properties of the savedData in that slot
Imports saves from multiple formats
the number of bytes the save takes up, or undefined, if an error occurs
Optional
onImportSave: ((result: ISaveImportSuccess, index: number) => any)Attempts to load all the given keys from the slot at once. Upon failure, instead loads each separately.
an object of results, and an object of errors, both indexed by the given keys.
Returns the number of bytes the save takes up
Generated using TypeDoc
Exports a saveObject into a Uint8Array format that can be used with importSave