Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DataManager

Hierarchy

  • DataManager

Index

Constructors

constructor

Properties

Static Protected _databaseFiles

_databaseFiles: Array<Object>

Static Protected _errorUrl

_errorUrl: any

Static Protected _globalId

_globalId: string

Static Protected _lastAccessedId

_lastAccessedId: number

Methods

Static checkError

  • checkError(): void

Static createGameObjects

  • createGameObjects(): void

Static extractMetaData

  • extractMetaData(data: object): void

Static extractSaveContents

  • extractSaveContents(contents: object): 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: object

    Returns void

Static isAnySavefileExists

  • isAnySavefileExists(): boolean

Static isArmor

  • isArmor(item: object): boolean
  • Returns a boolean value given an item. Item must be a database armor to be true.

    static
    memberof

    DataManager

    Parameters

    • item: object

    Returns boolean

Static isBattleTest

  • isBattleTest(): boolean

Static isDatabaseLoaded

  • isDatabaseLoaded(): boolean

Static isEventTest

  • isEventTest(): boolean

Static isItem

  • isItem(item: object): boolean
  • Returns a boolean value given an item. Item must be a database item to be true.

    static
    memberof

    DataManager

    Parameters

    • item: object

    Returns boolean

Static isMapLoaded

  • isMapLoaded(): boolean

Static isSkill

  • isSkill(item: object): boolean
  • Returns a boolean value given an item. Item being a database object representing a skill.

    static
    memberof

    DataManager

    Parameters

    • item: object

    Returns boolean

Static isThisGameFile

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

    static
    memberof

    DataManager

    Parameters

    • savefileId: number

    Returns boolean

Static isWeapon

  • isWeapon(item: object): boolean
  • Returns a boolean value given an item. Item must be a database weapon to be true.

    static
    memberof

    DataManager

    Parameters

    • item: object

    Returns boolean

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: object): void

Static makeEmptyMap

  • makeEmptyMap(): void

Static makeSaveContents

  • 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.

    static
    memberof

    DataManager

    Returns object

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): any

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: object): void

Static selectSavefileForNewGame

  • selectSavefileForNewGame(): void

Static setupBattleTest

  • setupBattleTest(): void

Static setupEventTest

  • setupEventTest(): void

Static setupNewGame

  • setupNewGame(): void

Generated using TypeDoc