Skip to content

Members

GlobalDescription
$dataActors : Array.<Object>

角色数据 - Actor data

$dataClasses : Array.<Object>

职业数据 - Class data

$dataSkills : Array.<Object>

技能数据 - Skill data

$dataItems : Array.<Object>

物品数据 - Item data

$dataWeapons : Array.<Object>

武器数据 - Weapon data

$dataArmors : Array.<Object>

护甲数据 - Armor data

$dataEnemies : Array.<Object>

敌人数据 - Enemy data

$dataTroops : Array.<Object>

敌群数据 - Troop data

$dataStates : Array.<Object>

状态数据 - State data

$dataAnimations : Array.<Object>

动画数据 - Animation data

$dataTilesets : Array.<Object>

图块数据 - Tileset data

$dataCommonEvents : Array.<Object>

公共事件数据 - Common event data

$dataSystem : Object

系统数据 - System data

$dataMapInfos : Array.<Object>

地图信息数据 - Map info data

$dataMap : Object

地图数据 - Map data

$gameTemp : Game_Temp

游戏临时 - Game temporary data

$gameSystem : Game_System

游戏系统 - Game system

$gameScreen : Game_Screen

游戏画面 - Game screen

$gameTimer : Game_Timer

游戏计时器 - Game timer

$gameMessage : Game_Message

游戏消息 - Game message

$gameSwitches : Game_Switches

游戏开关 - Game switches

$gameVariables : Game_Variables

游戏变量 - Game variables

$gameSelfSwitches : Game_SelfSwitches

游戏独立开关 - Game self switches

$gameActors : Game_Actors

游戏角色 - Game actors

$gameParty : Game_Party

游戏队伍 - Game party

$gameTroop : Game_Troop

游戏敌群 - Game troop

$gameMap : Game_Map

游戏地图 - Game map

$gamePlayer : Game_Player

游戏玩家 - Game player

$testEvent : Object

测试事件 - Test event

$dataActors : Array.<Object>

角色数据 - Actor data

Kind: global variable


$dataClasses : Array.<Object>

职业数据 - Class data

Kind: global variable


$dataSkills : Array.<Object>

技能数据 - Skill data

Kind: global variable


$dataItems : Array.<Object>

物品数据 - Item data

Kind: global variable


$dataWeapons : Array.<Object>

武器数据 - Weapon data

Kind: global variable


$dataArmors : Array.<Object>

护甲数据 - Armor data

Kind: global variable


$dataEnemies : Array.<Object>

敌人数据 - Enemy data

Kind: global variable


$dataTroops : Array.<Object>

敌群数据 - Troop data

Kind: global variable


$dataStates : Array.<Object>

状态数据 - State data

Kind: global variable


$dataAnimations : Array.<Object>

动画数据 - Animation data

Kind: global variable


$dataTilesets : Array.<Object>

图块数据 - Tileset data

Kind: global variable


$dataCommonEvents : Array.<Object>

公共事件数据 - Common event data

Kind: global variable


$dataSystem : Object

系统数据 - System data

Kind: global variable


$dataMapInfos : Array.<Object>

地图信息数据 - Map info data

Kind: global variable


$dataMap : Object

地图数据 - Map data

Kind: global variable


$gameTemp : Game_Temp

游戏临时 - Game temporary data

Kind: global variable


$gameSystem : Game_System

游戏系统 - Game system

Kind: global variable


$gameScreen : Game_Screen

游戏画面 - Game screen

Kind: global variable


$gameTimer : Game_Timer

游戏计时器 - Game timer

Kind: global variable


$gameMessage : Game_Message

游戏消息 - Game message

Kind: global variable


$gameSwitches : Game_Switches

游戏开关 - Game switches

Kind: global variable


$gameVariables : Game_Variables

游戏变量 - Game variables

Kind: global variable


$gameSelfSwitches : Game_SelfSwitches

游戏独立开关 - Game self switches

Kind: global variable


$gameActors : Game_Actors

游戏角色 - Game actors

Kind: global variable


$gameParty : Game_Party

游戏队伍 - Game party

Kind: global variable


$gameTroop : Game_Troop

游戏敌群 - Game troop

Kind: global variable


$gameMap : Game_Map

游戏地图 - Game map

Kind: global variable


$gamePlayer : Game_Player

游戏玩家 - Game player

Kind: global variable


$testEvent : Object

测试事件 - Test event

Kind: global variable


.DataManager

管理数据库和游戏对象的静态类。
The static class that manages the database and game objects.

Kind: static class

  • .DataManager
    • ._globalId : String
    • ._lastAccessedId : Number
    • ._errorUrl : String
    • ._databaseFiles : Array.<Object>

DataManager._globalId : String

全局 ID - Global ID

Kind: static property of DataManager


DataManager._lastAccessedId : Number

上次访问 ID,指存档的 ID - Last accessed ID, refers to save file ID

Kind: static property of DataManager


DataManager._errorUrl : String

错误链接 - Error URL

Kind: static property of DataManager


DataManager._databaseFiles : Array.<Object>

数据库文件配置 - Database file configuration

Kind: static property of DataManager


.loadDatabase()

加载数据库文件。
Loads the database files.

Kind: static function


.loadDataFile(name, src)

从服务器加载数据文件。
Loads a data file from the server.

Kind: static function

ParamTypeDescription
nameStringThe global variable name to store the data - 存储数据的全局变量名
srcStringThe source file name - 源文件名

.isDatabaseLoaded() ⇒ Boolean

检查数据库是否完全加载。
Checks whether the database is loaded completely.

Kind: static function
Returns: Boolean - True if the database is loaded - 如果数据库已加载则为 true


.loadMapData(mapId)

加载指定地图 ID 的地图数据。
Loads map data for the specified map ID.

Kind: static function

ParamTypeDescription
mapIdNumberThe map ID to load - 要加载的地图 ID

.makeEmptyMap()

创建空的地图数据。
Creates an empty map data.

Kind: static function


.isMapLoaded() ⇒ Boolean

检查地图数据是否已加载。
Checks whether the map data is loaded.

Kind: static function
Returns: Boolean - True if the map data is loaded - 如果地图数据已加载则为 true


.onLoad(object)

当数据文件加载时调用。
Called when a data file is loaded.

Kind: static function

ParamTypeDescription
objectObjectThe loaded data object - 加载的数据对象

.extractMetadata(data)

从备注字符串中提取 <key:value><key> 格式的元数据。
Extracts metadata from note strings in <key:value> or <key> format.

Kind: static function

ParamTypeDescription
dataObjectThe data object containing a note property - 包含 note 属性的数据对象

.checkError()

检查加载错误,如果有错误则抛出异常。
Checks for loading errors and throws an exception if any.

Kind: static function


.isBattleTest() ⇒ Boolean

检查游戏是否在战斗测试模式下运行。
Checks whether the game is running in battle test mode.

Kind: static function
Returns: Boolean - True if in battle test mode - 如果在战斗测试模式则为 true


.isEventTest() ⇒ Boolean

检查游戏是否在事件测试模式下运行。
Checks whether the game is running in event test mode.

Kind: static function
Returns: Boolean - True if in event test mode - 如果在事件测试模式则为 true


.isSkill(item) ⇒ Boolean

检查指定物品是否为技能。
Checks whether the specified item is a skill.

Kind: static function
Returns: Boolean - True if the item is a skill - 如果物品是技能则为 true

ParamTypeDescription
itemObjectThe item to check - 要检查的物品

.isItem(item) ⇒ Boolean

检查指定物品是否为物品。
Checks whether the specified item is an item.

Kind: static function
Returns: Boolean - True if the item is an item - 如果物品是物品则为 true

ParamTypeDescription
itemObjectThe item to check - 要检查的物品

.isWeapon(item) ⇒ Boolean

检查指定物品是否为武器。
Checks whether the specified item is a weapon.

Kind: static function
Returns: Boolean - True if the item is a weapon - 如果物品是武器则为 true

ParamTypeDescription
itemObjectThe item to check - 要检查的物品

.isArmor(item) ⇒ Boolean

检查指定物品是否为护甲。
Checks whether the specified item is an armor.

Kind: static function
Returns: Boolean - True if the item is an armor - 如果物品是护甲则为 true

ParamTypeDescription
itemObjectThe item to check - 要检查的物品

.createGameObjects()

创建所有游戏对象。
Creates all the game objects.

Kind: static function


.setupNewGame()

设置新游戏。
Sets up a new game.

Kind: static function


.setupBattleTest()

设置战斗测试。
Sets up a battle test.

Kind: static function


.setupEventTest()

设置事件测试。
Sets up an event test.

Kind: static function


.loadGlobalInfo() ⇒ Array

加载所有存档文件的全局信息。
Loads global info for all save files.

Kind: static function
Returns: Array - The global info array - 全局信息数组


.saveGlobalInfo(info)

保存全局信息
Save global information

Kind: static function

ParamTypeDescription
infoObjectThe global info to save - 要保存的全局信息

.isThisGameFile(savefileId) ⇒ Boolean

检查是否这个游戏文件
Check if this is a game file

Kind: static function
Returns: Boolean - True if this is a game file - 如果是游戏文件则为 true

ParamTypeDescription
savefileIdNumberThe save file ID - 存档文件 ID

.isAnySavefileExists() ⇒ Boolean

检查是否存在存档
Check if any save file exists

Kind: static function
Returns: Boolean - True if any save file exists - 如果存在存档则为 true


.latestSavefileId() ⇒ Number

获取最新的存档 ID
Get the latest save file ID

Kind: static function
Returns: Number - The latest save file ID - 最新的存档文件 ID


.loadAllSavefileImages()

加载所有存档图像
Load all save file images

Kind: static function


.loadSavefileImages(info)

加载存档图像
Load save file images

Kind: static function

ParamTypeDescription
infoObjectThe save file info - 存档文件信息

.maxSavefiles() ⇒ Number

获取最大存档数
Get maximum number of save files

Kind: static function
Returns: Number - Maximum number of save files - 最大存档数


.saveGame(savefileId) ⇒ Boolean

保存游戏
Save game

Kind: static function
Returns: Boolean - True if save succeeded - 如果保存成功则为 true

ParamTypeDescription
savefileIdNumberThe save file ID - 存档文件 ID

.loadGame(savefileId) ⇒ Boolean

加载游戏
Load game

Kind: static function
Returns: Boolean - True if load succeeded - 如果加载成功则为 true

ParamTypeDescription
savefileIdNumberThe save file ID - 存档文件 ID

.loadSavefileInfo(savefileId) ⇒ Object

加载存档信息
Load save file info

Kind: static function
Returns: Object - The save file info - 存档文件信息

ParamTypeDescription
savefileIdNumberThe save file ID - 存档文件 ID

.lastAccessedSavefileId() ⇒ Number

获取上次访问的存档 ID
Get last accessed save file ID

Kind: static function
Returns: Number - The last accessed save file ID - 上次访问的存档文件 ID


.saveGameWithoutRescue(savefileId) ⇒ Boolean

无异常处理的保存游戏
函数名的 rescue 指 ruby 的 begin rescue,相当于 js 的 try catch,也就是异常处理。
Save game without rescue (exception handling)
The rescue in function name refers to ruby's begin rescue, equivalent to js try catch.

Kind: static function
Returns: Boolean - True if save succeeded - 如果保存成功则为 true

ParamTypeDescription
savefileIdNumberThe save file ID - 存档文件 ID

.loadGameWithoutRescue(savefileId) ⇒ Boolean

无异常处理的加载游戏
Load game without rescue (exception handling)

Kind: static function
Returns: Boolean - True if load succeeded - 如果加载成功则为 true

ParamTypeDescription
savefileIdNumberThe save file ID - 存档文件 ID

.selectSavefileForNewGame()

为新游戏选择存档
Select save file for new game

Kind: static function


.makeSavefileInfo() ⇒ Object

制作存档信息
Make save file info

Kind: static function
Returns: Object - The save file info - 存档文件信息


.makeSaveContents() ⇒ Object

制作保存内容
保存的数据不包含 gameTempgameMessage 和 $gameTroop。
Make save contents
A save data does not contain $gameTemp, $gameMessage, and $gameTroop.

Kind: static function
Returns: Object - The save contents - 保存内容


.extractSaveContents(contents)

提取保存内容
Extract save contents

Kind: static function

ParamTypeDescription
contentsObjectThe save contents - 保存内容

贡献者

暂无相关贡献者

页面历史

暂无最近变更历史
最近更新