Class: DataManager

DataManager()

new DataManager()

The static class that manages the database and game objects.

Methods

(static) checkError()

(static) createGameObjects()

(static) extractMetadata(data)

Parameters:
Name Type Description
data object

(static) extractSaveContents(contents)

Extracts the save file contents into the game's variables. An excellent method to alias when you wish to extend the game's save contents for a plugin.
Parameters:
Name Type Description
contents object

(static) isAnySavefileExists() → {Boolean}

Returns:
Type
Boolean

(static) isArmor(item) → {Boolean}

Returns a boolean value given an item. Item must be a database armor to be true.
Parameters:
Name Type Description
item object
Returns:
Type
Boolean

(static) isBattleTest() → {Boolean}

Returns:
Type
Boolean

(static) isDatabaseLoaded() → {Boolean}

Returns:
Type
Boolean

(static) isEventTest() → {Boolean}

Returns:
Type
Boolean

(static) isItem(item) → {Boolean}

Returns a boolean value given an item. Item must be a database item to be true.
Parameters:
Name Type Description
item object
Returns:
Type
Boolean

(static) isMapLoaded() → {Boolean}

Returns:
Type
Boolean

(static) isSkill(item) → {Boolean}

Returns a boolean value given an item. Item being a database object representing a skill.
Parameters:
Name Type Description
item object
Returns:
Type
Boolean

(static) isThisGameFile(savefileId) → {Boolean}

Returns a boolean value given a savefileId. If the savefileId exists; the value will be true.
Parameters:
Name Type Description
savefileId Number
Returns:
Type
Boolean

(static) isWeapon(item) → {Boolean}

Returns a boolean value given an item. Item must be a database weapon to be true.
Parameters:
Name Type Description
item object
Returns:
Type
Boolean

(static) lastAccessedSavefileId() → {Number}

Returns the last accessed save fileId upon saving or loading the game.
Returns:
Type
Number

(static) latestSavefileId() → {Number}

Returns:
Type
Number

(static) loadAllSavefileImages()

(static) loadDatabase()

(static) loadDataFile(name, src)

Parameters:
Name Type Description
name String
src String

(static) loadGame(savefileId)

Parameters:
Name Type Description
savefileId Number

(static) loadGameWithoutRescue(savefileId) → {Boolean}

Parameters:
Name Type Description
savefileId Number
Returns:
Type
Boolean

(static) loadGlobalInfo() → {Array.<*>}

Returns:
Type
Array.<*>

(static) loadMapData(mapId)

Parameters:
Name Type Description
mapId Number

(static) loadSavefileImages(info)

Parameters:
Name Type Description
info object

(static) loadSavefileInfo(savefileId) → {object}

Parameters:
Name Type Description
savefileId Number
Returns:
Type
object

(static) makeEmptyMap()

(static) makeSaveContents() → {object}

Creates the save file contents when saving your game. Good for aliasing when you want to add more data to the game's save contents.
Returns:
Type
object

(static) makeSavefileInfo()

Creates a new save file on the global save file information containing important data such as play time, characters, timestamp.

(static) maxSavefiles() → {Number}

Returns the maximum number of save files allocated in the game.
Returns:
Type
Number

(static) onLoad(object)

Parameters:
Name Type Description
object *

(static) saveGame(savefileId) → {Boolean}

Saves the RPGMakerMV game given a savefileId. Returns true if successful.
Parameters:
Name Type Description
savefileId Number
Returns:
Type
Boolean

(static) saveGameWithoutRescue(savefileId) → {Boolean}

Parameters:
Name Type Description
savefileId Number
Returns:
Type
Boolean

(static) saveGlobalInfo(info)

Parameters:
Name Type Description
info object

(static) selectSavefileForNewGame()

(static) setupBattleTest()

(static) setupEventTest()

(static) setupNewGame()