DataManager.d overview
Table of contents
- utils
- DataManager (class)
- loadGlobalInfo (static method)
- removeInvalidGlobalInfo (static method)
- saveGlobalInfo (static method)
- isGlobalInfoLoaded (static method)
- loadDatabase (static method)
- loadDataFile (static method)
- onXhrLoad (static method)
- onXhrError (static method)
- isDatabaseLoaded (static method)
- loadMapData (static method)
- makeEmptyMap (static method)
- isMapLoaded (static method)
- onLoad (static method)
- isMapObject (static method)
- extractArrayMetadata (static method)
- extractMetadata (static method)
- checkError (static method)
- isBattleTest (static method)
- isEventTest (static method)
- isSkill (static method)
- isItem (static method)
- isWeapon (static method)
- isArmor (static method)
- createGameObjects (static method)
- setupNewGame (static method)
- setupBattleTest (static method)
- setupEventTest (static method)
- isAnySavefileExists (static method)
- latestSavefileId (static method)
- earliestSavefileId (static method)
- emptySavefileId (static method)
- loadAllSavefileImages (static method)
- loadSavefileImages (static method)
- maxSavefiles (static method)
- savefileInfo (static method)
- savefileExists (static method)
- saveGame (static method)
- loadGame (static method)
- makeSavename (static method)
- selectSavefileForNewGame (static method)
- makeSavefileInfo (static method)
- makeSaveContents (static method)
- extractSaveContents (static method)
- correctDataErrors (static method)
- RmmzError (interface)
- DataManager (class)
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
}