%%---------------------------------------------------- %% 活动指定英雄置换 %% @author yzq %%---------------------------------------------------- -module(holiday_convert_data). -export([cfg/0]). -include("data_config.hrl"). -include("common.hrl"). cfg() -> #data_cfg{ name = holiday_convert_data ,lua_name = holiday_convert_data ,desc = "活动指定英雄置换" ,source = "holiday_convert_data.xml" ,target = "holiday_convert_data.erl" ,inc = ["common.hrl"] ,callback = [ {{get_const, undefined}, cb_fun, handle, {get_fun, ["常量配置"], "get_const(~ts) -> ~ts; %% ~ts", [key, val, desc]}} ,{get_group, cb_fun, handle, {get_tuple, ["置换配置"], [camp_type, star], [src_group, target_group]}} ,{get_loss, cb_fun, handle, {get_tuple, ["置换配置"], [camp_type, star], [expend, loss]}} ,{src_group_list, cb_fun, handle, {tuple_type, ["可置换英雄库"], src_group, bid}} ,{target_group_list, cb_fun, handle, {tuple_type, ["目标英雄库"], target_group, bid}} ] ,callback_cli = [ {const, cb_fun_lua, handle, {key_val, ["常量配置"], key, [val, desc]}} ,{convert_info, cb_fun_lua, handle, {type_get_val, ["置换配置"], [star, camp_type], all}} ,{hero_list, cb_fun_lua, handle, {type_get_val, ["可置换英雄库"], [src_group, bid], [src_group, bid]}} ,{target_hero_list, cb_fun_lua, handle, {type_get_val, ["目标英雄库"], [target_group, bid], [target_group, bid]}} ] ,callback_json = [ {const, cb_fun_json, handle, {key_val, ["常量配置"], key, [val, desc]}} ,{convert_info, cb_fun_json, handle, {type_get_val, ["置换配置"], [star, camp_type], all}} ,{hero_list, cb_fun_json, handle, {type_get_val, ["可置换英雄库"], [src_group, bid], [src_group, bid]}} ,{target_hero_list, cb_fun_json, handle, {type_get_val, ["目标英雄库"], [target_group, bid], [target_group, bid]}} ] ,sheet = [ {["常量配置"],[ #f_column{type = term, name = key, desc = "常量标识", add_list_sign = false,mod = all} ,#f_column{type = term, name = val, desc = "常量值", add_list_sign = false,mod= all} ,#f_column{type = bstr, name = desc, desc = "描述", mod = client} ]} ,{["置换配置"], [ #f_column{type = kv, name = camp_type, desc = "阵营", kv_type = partner_camp_type, mod = all} ,#f_column{type = int, name = star, desc = "置换英雄星级", mod = all} ,#f_column{type = bstr, name = name, desc = "名称", mod = all} ,#f_column{type = int, name = src_group, desc = "可置换英雄库", mod = all} ,#f_column{type = int, name = target_group, desc = "目标英雄库", mod = all} ,#f_column{type = int, name = expend, desc = "置换消耗英雄数", comment = "仅限5星", mod = all} ,#f_column{type = term, name = loss, desc = "置换消耗道具", mod = all} ]} ,{["可置换英雄库"], [ #f_column{type = int, name = src_group, desc = "可置换英雄库Id", mod = all} ,#f_column{type = int, name = bid, desc = "英雄BID", mod = all} ,#f_column{type = bstr, name = name, desc = "英雄名称", mod = all} ]} ,{["目标英雄库"], [ #f_column{type = int, name = target_group, desc = "目标英雄库Id", mod = all} ,#f_column{type = int, name = bid, desc = "英雄BID", mod = all} ,#f_column{type = bstr, name = name, desc = "英雄名称", mod = all} ]} ] }.