Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DataManager

Manages the game data: saving, loading, meta data, and map information.

Hierarchy

  • DataManager

Index

Constructors

Protected constructor

Properties

Static _databaseFiles

_databaseFiles: JSON[]

Static _errorUrl

_errorUrl: any

Static _globalId

_globalId: string

Static _lastAccessId

_lastAccessId: number

Methods

Static checkError

  • checkError(): void

Static createGameObjects

  • createGameObjects(): void

Static extractMetaData

  • extractMetaData(data: any): void

Static extractSaveContents

  • extractSaveContents(contents: any): void
  • 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.

    static
    memberof

    DataManager

    Parameters

    • contents: any

    Returns void

Static isAnySavefileExists

  • isAnySavefileExists(): boolean

Static isArmor

Static isBattleTest

  • isBattleTest(): boolean

Static isDatabaseLoaded

  • isDatabaseLoaded(): boolean

Static isEventTest

  • isEventTest(): boolean

Static isItem

Static isMapLoaded

  • isMapLoaded(): boolean

Static isSkill

Static isThisGameFile

  • isThisGameFile(savefileId: number): boolean
  • Returns a Bool value given a savefileId. If the savefileId exists; the value will be true.

    static
    memberof

    DataManager

    Parameters

    • savefileId: number

    Returns boolean

Static isWeapon

Static lastAccessedSavefileId

  • lastAccessedSavefileId(): number

Static latestSavefileId

  • latestSavefileId(): number

Static loadAllSavefileImages

  • loadAllSavefileImages(): void

Static loadDataFile

  • loadDataFile(name: string, src: string): void

Static loadDatabase

  • loadDatabase(): void

Static loadGame

  • loadGame(savefileId: number): boolean

Static loadGameWithoutRescue

  • loadGameWithoutRescue(savefileId: number): boolean

Static loadGlobalInfo

  • loadGlobalInfo(): void

Static loadMapData

  • loadMapData(mapId: number): void

Static loadSavefileImages

  • loadSavefileImages(info: any): void

Static makeEmptyMap

  • makeEmptyMap(): void

Static makeSaveContents

  • makeSaveContents(): any
  • 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.

    static
    memberof

    DataManager

    Returns any

Static makeSavefileInfo

  • makeSavefileInfo(): void
  • Creates a new save file on the global save file information containing important data such as play time, characters, timestamp.

    static
    memberof

    DataManager

    Returns void

Static maxSavefiles

  • maxSavefiles(): number

Static onLoad

  • onLoad(object: any): void

Static saveGame

  • saveGame(savefileId: number): boolean
  • Saves the RPGMakerMV game given a savefileId. Returns true if successful.

    static
    memberof

    DataManager

    Parameters

    • savefileId: number

    Returns boolean

Static saveGameWithoutRescue

  • saveGameWithoutRescue(savefileId: number): boolean

Static saveGlobalInfo

  • saveGlobalInfo(info: any): void

Static selectSavefileForNewGame

  • selectSavefileForNewGame(): void

Static setupBattleTest

  • setupBattleTest(): void

Static setupEventTest

  • setupEventTest(): void

Static setupNewGame

  • setupNewGame(): void

Generated using TypeDoc