Class in reactor_managers.js

StorageManager

30 functions in 5 groups · hide internal

The Database: everything Core loads at boot.

Familiar territory. StorageManager keeps the RPG Maker MZ API, so existing MZ knowledge, tutorials and plugin code apply. Reactor's additions are marked with descriptions below.

Quick Reference

Setup & Creation 4

loadObject() Loads the object.
loadZip() Loads the zip.
loadFromLocalFile() Loads the from local file.
loadFromForage() Loads the from forage.

Checks (True / False) 1

isLocalMode() Whether it is local mode.

Actions 7

saveObject() Saves the object.
saveZip() Saves the zip.
remove() Remove.
saveToLocalFile() Saves the to local file.
removeLocalFile() Removes the local file.
saveToForage() Saves the to forage.
removeForage() Removes the forage.

Updating & Drawing 1

updateForageKeys() Updates the forage keys each frame.

Other 17

objectToJson() Object to json.
jsonToObject() Json to object.
jsonToZip() Json to zip.
zipToJson() Zip to json.
exists() Exists.
localFileExists() Local file exists.
forageExists() Forage exists.
forageKeysUpdated() Forage keys updated.
fsMkdir() Fs mkdir.
fsRename() Fs rename.
fsUnlink() Fs unlink.
fsReadFile() Fs read file.
fsWriteFile() Fs write file.
fileDirectoryPath() File directory path.
filePath() File path.
forageKey() Forage key.
forageTestKey() Forage test key.

Setup & Creation

loadObject

static source
StorageManager.loadObject(saveName)

Loads the object. (Same as the RPG Maker MZ method of this name.)

loadZip

static source
StorageManager.loadZip(saveName)

Loads the zip. (Same as the RPG Maker MZ method of this name.)

loadFromLocalFile

static source
StorageManager.loadFromLocalFile(saveName)

Loads the from local file. (Same as the RPG Maker MZ method of this name.)

loadFromForage

static source
StorageManager.loadFromForage(saveName)

Loads the from forage. (Same as the RPG Maker MZ method of this name.)

Checks (True / False)

isLocalMode

static source
StorageManager.isLocalMode()

Whether it is local mode. (Same as the RPG Maker MZ method of this name.)

Actions

saveObject

static source
StorageManager.saveObject(saveName, object)

Saves the object. (Same as the RPG Maker MZ method of this name.)

saveZip

static source
StorageManager.saveZip(saveName, zip)

Saves the zip. (Same as the RPG Maker MZ method of this name.)

remove

static source
StorageManager.remove(saveName)

Remove. (Same as the RPG Maker MZ method of this name.)

saveToLocalFile

static source
StorageManager.saveToLocalFile(saveName, zip)

Saves the to local file. (Same as the RPG Maker MZ method of this name.)

removeLocalFile

static source
StorageManager.removeLocalFile(saveName)

Removes the local file. (Same as the RPG Maker MZ method of this name.)

saveToForage

static source
StorageManager.saveToForage(saveName, zip)

Saves the to forage. (Same as the RPG Maker MZ method of this name.)

removeForage

static source
StorageManager.removeForage(saveName)

Removes the forage. (Same as the RPG Maker MZ method of this name.)

Updating & Drawing

updateForageKeys

static source
StorageManager.updateForageKeys()

Updates the forage keys each frame. (Same as the RPG Maker MZ method of this name.)

Other

objectToJson

static source
StorageManager.objectToJson(object)

Object to json. (Same as the RPG Maker MZ method of this name.)

jsonToObject

static source
StorageManager.jsonToObject(json)

Json to object. (Same as the RPG Maker MZ method of this name.)

jsonToZip

static source
StorageManager.jsonToZip(json)

Json to zip. (Same as the RPG Maker MZ method of this name.)

zipToJson

static source
StorageManager.zipToJson(zip)

Zip to json. (Same as the RPG Maker MZ method of this name.)

exists

static source
StorageManager.exists(saveName)

Exists. (Same as the RPG Maker MZ method of this name.)

localFileExists

static source
StorageManager.localFileExists(saveName)

Local file exists. (Same as the RPG Maker MZ method of this name.)

forageExists

static source
StorageManager.forageExists(saveName)

Forage exists. (Same as the RPG Maker MZ method of this name.)

forageKeysUpdated

static source
StorageManager.forageKeysUpdated()

Forage keys updated. (Same as the RPG Maker MZ method of this name.)

fsMkdir

static source
StorageManager.fsMkdir(path)

Fs mkdir. (Same as the RPG Maker MZ method of this name.)

fsRename

static source
StorageManager.fsRename(oldPath, newPath)

Fs rename. (Same as the RPG Maker MZ method of this name.)

fsReadFile

static source
StorageManager.fsReadFile(path)

Fs read file. (Same as the RPG Maker MZ method of this name.)

fsWriteFile

static source
StorageManager.fsWriteFile(path, data)

Fs write file. (Same as the RPG Maker MZ method of this name.)

fileDirectoryPath

static source
StorageManager.fileDirectoryPath()

File directory path. (Same as the RPG Maker MZ method of this name.)

filePath

static source
StorageManager.filePath(saveName)

File path. (Same as the RPG Maker MZ method of this name.)

forageKey

static source
StorageManager.forageKey(saveName)

Forage key. (Same as the RPG Maker MZ method of this name.)

forageTestKey

static source
StorageManager.forageTestKey()

Forage test key. (Same as the RPG Maker MZ method of this name.)