59 lines
1.9 KiB
Lua
59 lines
1.9 KiB
Lua
----------------------------------------------------
|
|
-- 此文件由数据工具生成
|
|
-- 单位配置数据--unit_other_part_data.xml
|
|
--------------------------------------
|
|
|
|
Config = Config or {}
|
|
Config.UnitData = Config.UnitData or {}
|
|
|
|
-- -------------------unit1_start-------------------
|
|
Config.UnitData.data_unit1_length = 0
|
|
Config.UnitData.data_unit1_cache = {}
|
|
Config.UnitData.data_unit1 = function(key)
|
|
if Config.UnitData.data_unit1_cache[key] == nil then
|
|
local base = Config.UnitData.data_unit1_table[key]
|
|
if not base then return end
|
|
base = loadstring(string.format('return %s',base))()
|
|
if not base then return end
|
|
Config.UnitData.data_unit1_cache[key] = {
|
|
bid = base[1],
|
|
name = base[2],
|
|
career = base[3],
|
|
sex = base[4],
|
|
lev = base[5],
|
|
sub_type = base[6],
|
|
args = base[7],
|
|
halo_id = base[8],
|
|
body_id = base[9],
|
|
talk = base[10],
|
|
button = base[11],
|
|
model_size = base[12],
|
|
dir = base[13],
|
|
cli_create = base[14],
|
|
}
|
|
end
|
|
return Config.UnitData.data_unit1_cache[key]
|
|
end
|
|
Config.UnitData.data_unit1_table = {
|
|
|
|
}
|
|
-- -------------------unit1_end---------------------
|
|
|
|
|
|
-- -------------------button_start-------------------
|
|
Config.UnitData.data_button_length = 4
|
|
Config.UnitData.data_button = {
|
|
[1001] = {id=1001, name="每日礼包", type=2, priority=1, is_auto=0, ext={}, condition={}, show_cond={}},
|
|
[1002] = {id=1002, name="联盟红包", type=2, priority=2, is_auto=0, ext={}, condition={}, show_cond={}},
|
|
[1003] = {id=1003, name="等级礼包", type=2, priority=1, is_auto=0, ext={}, condition={}, show_cond={}},
|
|
[1010] = {id=1010, name="神之试炼", type=2, priority=1, is_auto=0, ext={}, condition={}, show_cond={}}
|
|
}
|
|
Config.UnitData.data_button_fun = function(key)
|
|
local data=Config.UnitData.data_button[key]
|
|
if DATA_DEBUG and data == nil then
|
|
print('(Config.UnitData.data_button['..key..'])not found') return
|
|
end
|
|
return data
|
|
end
|
|
-- -------------------button_end---------------------
|