%%---------------------------------------------------- %% 数据配置文件 %% @author linguohui %%---------------------------------------------------- -module(monopoly_dungeons_data). -export([cfg/0]). -include("data_config.hrl"). -include("common.hrl"). cfg() -> #data_cfg{ name = monopoly_dungeons_data ,lua_name = monopoly_dungeons_data ,js_name = monopoly_dungeons_data ,desc = "配置数据" ,source = "monopoly_dungeons_data.xml" ,target = "monopoly_dungeons_data.erl" ,splitv = 1 ,head_rows = 1 ,inc = [] ,callback = [ {{get_const, undefined}, cb_fun, handle, {get_fun, ["常量配置"], "get_const(~ts) -> ~ts; %% ~ts", [key, val, desc]}} ,{get_boss_list, cb_fun, handle, {tuple_list, ["boss信息"], [id, boss_id, base_id]}} ,{get_boss_develop, cb_fun, handle, {get_tuple, ["boss信息"], [id, boss_id], develop}} ,{get_drop, cb_fun, handle, {get_tuple, ["boss信息"], [id, boss_id], drop_id}} ,{get_reward, cb_fun, handle, {get_tuple, ["boss信息"], [id, boss_id], reward}} ,{get_reward_dps, cb_fun, handle, {get_tuple, ["排行榜结算伤害值"], id, dps}} ,{get_rank_reward, cb_fun, handle, {get_tuple, ["公会排行榜奖励"], [id, rank], [reward, stage_name]}} ,{get_main_partner, cb_fun, handle, {get_tuple, ["主题英雄"], id, main_partner}} ,{get_main_buff, cb_fun, handle, {get_tuple, ["主题英雄"], id, [main_partner, main_buff]}} ] ,callback_cli = [ {const, cb_fun_lua, handle, {key_val, ["常量配置"], key, [val, desc]}} ,{boss_info, cb_fun_lua, handle, {type_get_val, ["boss信息"], [id, boss_id], all}} ,{main_hero, cb_fun_lua, handle, {key_val, ["主题英雄"], id, all}} ,{award, cb_fun_lua, handle, {list_val, ["排行奖励"], all}} ] ,callback_json = [ {const, cb_fun_json, handle, {key_val, ["常量配置"], key, [val, desc]}} ,{boss_info, cb_fun_json, handle, {type_get_val, ["boss信息"], [id, boss_id], all}} ,{main_hero, cb_fun_json, handle, {key_val, ["主题英雄"], id, all}} ,{award, cb_fun_json, handle, {list_val, ["排行奖励"], all}} ] ,sheet = [ {["常量配置"], [ #f_column{type = atom, name = key, desc = "键", primary = true, mod = all} ,#f_column{type = term, name = val, desc = "值", mod = all} ,#f_column{type = str, name = desc, desc = "描述", mod = all} ]} ,{["boss信息"], [ #f_column{type = int, name = id, desc = "阶段id", mod = all} ,#f_column{type = int, name = boss_id, desc = "boss_id", mod = all} ,#f_column{type = int, name = base_id, desc = "boss基础id", mod = all} ,#f_column{type = int, name = develop, desc = "解锁探索度", mod = all} ,#f_column{type = term, name = drop_id, desc = "掉落奖励id", mod = all} ,#f_column{type = term, name = reward, desc = "结算奖励", mod = all} ,#f_column{type = int, name = head_id, desc = "boss头像", mod = client} ,#f_column{type = str, name = boss_name, desc = "boss名称", mod = client} ]} ,{["排行榜结算伤害值"], [ #f_column{type = int, name = id, desc = "阶段id", mod = all} ,#f_column{type = int, name = dps, desc = "公会结算伤害值", mod = all} ]} ,{["公会排行榜奖励"], [ #f_column{type = int, name = id, desc = "阶段id", mod = all} ,#f_column{type = int, name = rank, desc = "排名", mod = all} ,#f_column{type = term, name = reward, desc = "奖励", mod = all} ,#f_column{type = str, name = stage_name, desc = "阶段名称", mod = all} ]} ,{["主题英雄"], [ #f_column{type = int, name = id, desc = "阶段id", mod = all} ,#f_column{type = term, name = main_partner, desc = "主题英雄", mod = all} ,#f_column{type = term, name = main_buff, desc = "技能id列表", mod = all} ,#f_column{type = int, name = buff_val, desc = "伤害提升加成值", mod = client} ]} ,{["排行奖励"], [ #f_column{type = int, name = min, desc = "排名上限", mod = all} ,#f_column{type = int, name = max, desc = "排名下限", mod = all} ,#f_column{type = term, name = items, desc = "奖励", mod = all} ]} ] }.