%%%------------------------------------------------------------------- %%% 固定升星 %%%------------------------------------------------------------------- -module(holiday_upstars_new_data). -export([cfg/0]). -include("data_config.hrl"). -include("common.hrl"). cfg() -> #data_cfg{ name = holiday_upstars_new_data ,lua_name = holiday_upstars_new_data ,js_name = holiday_upstars_new_data ,desc = "配置數據" ,source = "holiday_upstars_new_data.xml" ,target = "holiday_upstars_new_data.erl" ,inc = [] ,callback = [ {get_const, cb_fun, handle, {get_fun, ["常量"], "get_const(~ts) -> ~ts; %% ~ts", [key, val, desc]}}, {{get,undefined}, cb_fun, handle, {get_record, ["升星奖励"], [group_id, stars], new_map, all}}, {get_group, cb_fun, handle, {record_type, ["升星奖励"], group_id, new_map, all}}, {{get_new,undefined}, cb_fun, handle, {get_record, ["不指定英雄"], [group_id, stars], new_map, all}}, {get_group_new, cb_fun, handle, {record_type, ["不指定英雄"], group_id, new_map, all}}, {list_stars, cb_fun, handle, {tuple_type, ["不指定英雄"], group_id, stars}}, {get_group_id, cb_fun, handle, {get_tuple, ["配置"], camp_id, group_id}}, {get_group_id_new, cb_fun, handle, {get_tuple, ["不指定配置"], camp_id, group_id}}, {get_partner_args, cb_fun, handle, {get_tuple, ["升星伙伴"], group_id, partner_args}}, {get_partner_args_new, cb_fun, handle, {get_tuple, ["不指定組別"], id, partner_args}}, {get_partner_args_list, cb_fun, handle, {tuple_type, ["不指定組別"], group_id, id}} ] ,callback_cli = [ {const, cb_fun_lua, handle, {key_val, ["常量"], [key], all}} ] ,callback_json = [ {const, cb_fun_json, handle, {key_val, ["常量"], [key], all}} ] ,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 = int, name = group_id, desc = "組別", mod = all} ,#f_column{type = bstr, name = partner_name, desc = "武將名稱", mod = all} ,#f_column{type = term, name = partner_args, desc = "武將參數", mod = all} ]}, {["配置"], [ #f_column{type = int, name = camp_id, desc = "活动id", mod = all} ,#f_column{type = int, name = group_id, desc = "组别", mod = all} ]}, {["升星奖励"], [ #f_column{type = int, name = group_id, desc = "組別", mod = all} ,#f_column{type = int, name = stars, desc = "星級", mod = all} ,#f_column{type = term, name = free_award, desc = "免費領取", mod = all} ,#f_column{type = term, name = own_award, desc = "専屬禮包", mod = all} ,#f_column{type = int, name = charge_id, desc = "充值ID", mod = all} ,#f_column{type = int, name = limit_buy, desc = "限購次數", mod = all} ]} , {["不指定組別"], [ #f_column{type = int, name = id, desc = "id", mod = all}, #f_column{type = int, name = group_id, desc = "組別", mod = all} ,#f_column{type = bstr, name = partner_name, desc = "武將名稱", mod = all} ,#f_column{type = term, name = partner_args, desc = "武將參數", mod = all} ]}, {["不指定配置"], [ #f_column{type = int, name = camp_id, desc = "活动id", mod = all} ,#f_column{type = int, name = group_id, desc = "组别", mod = all} ]}, {["不指定英雄"], [ #f_column{type = int, name = group_id, desc = "組別", mod = all} ,#f_column{type = int, name = stars, desc = "星級", mod = all} ,#f_column{type = term, name = free_award, desc = "免費領取", mod = all} ,#f_column{type = term, name = own_award, desc = "専屬禮包", mod = all} ,#f_column{type = int, name = charge_id, desc = "充值ID", mod = all} ,#f_column{type = int, name = limit_buy, desc = "限購次數", mod = all} ]} ] }.