Link Search Menu Expand Document

DataManager.d overview


Table of contents


utils

DataManager (class)

DataManager

The static class that manages the database and game objects.

Signature

export declare class DataManager {
  constructor()
}

loadGlobalInfo (static method)

Signature

static loadGlobalInfo(): Promise<0 | undefined>

removeInvalidGlobalInfo (static method)

Signature

static removeInvalidGlobalInfo(): void

saveGlobalInfo (static method)

Signature

static saveGlobalInfo(): void

isGlobalInfoLoaded (static method)

Signature

static isGlobalInfoLoaded(): boolean

loadDatabase (static method)

Signature

static loadDatabase(): void

loadDataFile (static method)

Signature

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

onXhrLoad (static method)

Signature

static onXhrLoad(xhr: XMLHttpRequest, name: string, src: string, url: string): void

onXhrError (static method)

Signature

static onXhrError(name: string, src: string, url: string): void

isDatabaseLoaded (static method)

Signature

static isDatabaseLoaded(): boolean

loadMapData (static method)

Signature

static loadMapData(mapId: number): void

makeEmptyMap (static method)

Signature

static makeEmptyMap(): void

isMapLoaded (static method)

Signature

static isMapLoaded(): boolean

onLoad (static method)

Signature

static onLoad(object: unknown): void

isMapObject (static method)

Signature

static isMapObject(object: unknown): object is DataMap

extractArrayMetadata (static method)

Signature

static extractArrayMetadata(array: unknown): void

extractMetadata (static method)

Signature

static extractMetadata(data: { note: string; meta?: Meta }): void

checkError (static method)

Signature

static checkError(): void

isBattleTest (static method)

Signature

static isBattleTest(): boolean

isEventTest (static method)

Signature

static isEventTest(): boolean

isSkill (static method)

Signature

static isSkill(item: unknown): item is DataSkill

isItem (static method)

Signature

static isItem(item: unknown): item is DataItem

isWeapon (static method)

Signature

static isWeapon(item: unknown): item is DataWeapon

isArmor (static method)

Signature

static isArmor(item: unknown): item is DataArmor

createGameObjects (static method)

Signature

static createGameObjects(): void

setupNewGame (static method)

Signature

static setupNewGame(): void

setupBattleTest (static method)

Signature

static setupBattleTest(): void

setupEventTest (static method)

Signature

static setupEventTest(): void

isAnySavefileExists (static method)

Signature

static isAnySavefileExists(): boolean

latestSavefileId (static method)

Signature

static latestSavefileId(): number

earliestSavefileId (static method)

Signature

static earliestSavefileId(): number

emptySavefileId (static method)

Signature

static emptySavefileId(): number

loadAllSavefileImages (static method)

Signature

static loadAllSavefileImages(): void

loadSavefileImages (static method)

Signature

static loadSavefileImages(info: DataSaveInfo): void

maxSavefiles (static method)

Signature

static maxSavefiles(): number

savefileInfo (static method)

Signature

static savefileInfo(savefileId: number): DataSaveInfo | null | undefined

savefileExists (static method)

Signature

static savefileExists(savefileId: number): boolean

saveGame (static method)

Signature

static saveGame(savefileId: number): Promise<number>

loadGame (static method)

Signature

static loadGame(savefileId: number): Promise<number>

makeSavename (static method)

Signature

static makeSavename(savefileId: number): string

selectSavefileForNewGame (static method)

Signature

static selectSavefileForNewGame(): void

makeSavefileInfo (static method)

Signature

static makeSavefileInfo(): DataSaveInfo

makeSaveContents (static method)

Signature

static makeSaveContents(): SaveContents

extractSaveContents (static method)

Signature

static extractSaveContents(contents: SaveContents): void

correctDataErrors (static method)

Signature

static correctDataErrors(): void

RmmzError (interface)

Signature

export interface RmmzError {
  name: string
  src: string
  url: string
}