30 lines
691 B
Plaintext
30 lines
691 B
Plaintext
/*
|
|
文件名: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_();
|