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 sourceStorageManager.loadObject(saveName)
Loads the object. (Same as the RPG Maker MZ method of this name.)
loadZip
static sourceStorageManager.loadZip(saveName)
Loads the zip. (Same as the RPG Maker MZ method of this name.)
loadFromLocalFile
static sourceStorageManager.loadFromLocalFile(saveName)
Loads the from local file. (Same as the RPG Maker MZ method of this name.)
loadFromForage
static sourceStorageManager.loadFromForage(saveName)
Loads the from forage. (Same as the RPG Maker MZ method of this name.)
Checks (True / False)
isLocalMode
static sourceStorageManager.isLocalMode()
Whether it is local mode. (Same as the RPG Maker MZ method of this name.)
Actions
saveObject
static sourceStorageManager.saveObject(saveName, object)
Saves the object. (Same as the RPG Maker MZ method of this name.)
saveZip
static sourceStorageManager.saveZip(saveName, zip)
Saves the zip. (Same as the RPG Maker MZ method of this name.)
remove
static sourceStorageManager.remove(saveName)
Remove. (Same as the RPG Maker MZ method of this name.)
saveToLocalFile
static sourceStorageManager.saveToLocalFile(saveName, zip)
Saves the to local file. (Same as the RPG Maker MZ method of this name.)
removeLocalFile
static sourceStorageManager.removeLocalFile(saveName)
Removes the local file. (Same as the RPG Maker MZ method of this name.)
saveToForage
static sourceStorageManager.saveToForage(saveName, zip)
Saves the to forage. (Same as the RPG Maker MZ method of this name.)
removeForage
static sourceStorageManager.removeForage(saveName)
Removes the forage. (Same as the RPG Maker MZ method of this name.)
Updating & Drawing
updateForageKeys
static sourceStorageManager.updateForageKeys()
Updates the forage keys each frame. (Same as the RPG Maker MZ method of this name.)
Other
objectToJson
static sourceStorageManager.objectToJson(object)
Object to json. (Same as the RPG Maker MZ method of this name.)
jsonToObject
static sourceStorageManager.jsonToObject(json)
Json to object. (Same as the RPG Maker MZ method of this name.)
jsonToZip
static sourceStorageManager.jsonToZip(json)
Json to zip. (Same as the RPG Maker MZ method of this name.)
zipToJson
static sourceStorageManager.zipToJson(zip)
Zip to json. (Same as the RPG Maker MZ method of this name.)
exists
static sourceStorageManager.exists(saveName)
Exists. (Same as the RPG Maker MZ method of this name.)
localFileExists
static sourceStorageManager.localFileExists(saveName)
Local file exists. (Same as the RPG Maker MZ method of this name.)
forageExists
static sourceStorageManager.forageExists(saveName)
Forage exists. (Same as the RPG Maker MZ method of this name.)
forageKeysUpdated
static sourceStorageManager.forageKeysUpdated()
Forage keys updated. (Same as the RPG Maker MZ method of this name.)
fsMkdir
static sourceStorageManager.fsMkdir(path)
Fs mkdir. (Same as the RPG Maker MZ method of this name.)
fsRename
static sourceStorageManager.fsRename(oldPath, newPath)
Fs rename. (Same as the RPG Maker MZ method of this name.)
fsUnlink
static sourceStorageManager.fsUnlink(path)
Fs unlink. (Same as the RPG Maker MZ method of this name.)
fsReadFile
static sourceStorageManager.fsReadFile(path)
Fs read file. (Same as the RPG Maker MZ method of this name.)
fsWriteFile
static sourceStorageManager.fsWriteFile(path, data)
Fs write file. (Same as the RPG Maker MZ method of this name.)
fileDirectoryPath
static sourceStorageManager.fileDirectoryPath()
File directory path. (Same as the RPG Maker MZ method of this name.)
filePath
static sourceStorageManager.filePath(saveName)
File path. (Same as the RPG Maker MZ method of this name.)
forageKey
static sourceStorageManager.forageKey(saveName)
Forage key. (Same as the RPG Maker MZ method of this name.)
forageTestKey
static sourceStorageManager.forageTestKey()
Forage test key. (Same as the RPG Maker MZ method of this name.)