新增扩展装备项目及全局信息类描述,更新Hacker_RegApi.nut以支持装备穿戴回调
This commit is contained in:
29
Base/_Z_Data/Global.nut
Normal file
29
Base/_Z_Data/Global.nut
Normal file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
文件名:Global.nut
|
||||
路径:Base/_Z_Data/Global.nut
|
||||
创建日期:2025-12-27 03:50
|
||||
文件用途:全局信息类
|
||||
*/
|
||||
class _GlobalInfoClass_ {
|
||||
//职业名称
|
||||
JobName = null;
|
||||
|
||||
constructor() {
|
||||
|
||||
InitJobNmae();
|
||||
}
|
||||
|
||||
function InitJobNmae() {
|
||||
JobName = [];
|
||||
Rindro_Script.GetFileData("character/character.lst", function(DataTable, Data) {
|
||||
while (!Data.Eof()) {
|
||||
local Index = Data.Get();
|
||||
local Name = Data.Get();
|
||||
Name = Name.slice(Name.find("/") + 1, Name.find(".chr"));
|
||||
JobName.append(Name);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
getroottable()._Global_Info_ <- _GlobalInfoClass_();
|
||||
Reference in New Issue
Block a user