%%---------------------------------------------------- %% 花火大会 %% %% @author wujinhan<947537249@qq.com> %%---------------------------------------------------- -module(holiday_petard_data). -export([cfg/0]). -include("data_config.hrl"). -include("common.hrl"). cfg() -> #data_cfg{ name = holiday_petard_data ,lua_name = holiday_petard_data ,desc = "花火大会" ,source = "holiday_petard_data.xml" ,target = "holiday_petard_data.erl" ,inc = ["common.hrl"] ,callback = [ {{get_const, undefined}, cb_fun, handle, {get_fun, ["常量配置"], "get_const(~ts) -> ~ts; %% ~ts", [key, val, desc]}} ,{score_award_list, cb_fun, handle, {tuple_list, ["积分奖励库"], [id, count]}} ,{{get_score_award, "[]"}, cb_fun, handle, {get_tuple, ["积分奖励库"], id, award}} ,{meteor_award, cb_fun, handle, {tuple_list, ["小烟花奖励库"], [id, award, pro, must_not]}} ,{firework_award, cb_fun, handle, {tuple_list, ["大烟花奖励库"], [id, award, pro, must_not]}} ,{red_packet_award, cb_fun, handle, {tuple_list, ["红包奖励库"], [id, award, pro, must_not]}} ,{self_add_list, cb_fun, handle, {tuple_list, ["自增配置"], [id, pro, interval, time]}} ,{bless_msg, cb_fun, handle, {tuple_list, ["祝福语库"], [id, pro, msg]}} ,{{meteor_must_not, "0"}, cb_fun, handle, {get_tuple, ["小烟花奖励库"], id, must_not}} ,{{firework_must_not, "0"}, cb_fun, handle, {get_tuple, ["大烟花奖励库"], id, must_not}} ,{{red_packet_must_not, "0"}, cb_fun, handle, {get_tuple, ["红包奖励库"], id, must_not}} ,{score_pro_list, cb_fun, handle, {tuple_list, ["总分匹配库"], [id, min, max, pro]}} ] ,callback_cli = [ {const, cb_fun_lua, handle, {key_val, ["常量配置"], key, [val, desc]}} ,{award, cb_fun_lua, handle, {key_val, ["积分奖励库"], id, all}} ,{wish, cb_fun_lua, handle, {key_val, ["祝福语库"], id, all}} ] ,callback_json = [ {const, cb_fun_json, handle, {key_val, ["常量配置"], key, [val, desc]}} ,{award, cb_fun_json, handle, {key_val, ["积分奖励库"], id, all}} ,{wish, cb_fun_json, handle, {key_val, ["祝福语库"], id, 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 = all} ]} ,{["总分匹配库"], [ #f_column{type = int, name = id, desc = "序号", mod = all} ,#f_column{type = int, name = min, desc = "人数下限", mod = all} ,#f_column{type = int, name = max, desc = "人数上限", mod = all} ,#f_column{type = int, name = pro, desc = "数值百分比(扩大1000倍)", mod = all} ]} ,{["小烟花奖励库"],[ #f_column{type = int, name = id, desc = "奖励id", mod = all} ,#f_column{type = term, name = award, desc = "物品", mod = all} ,#f_column{type = bstr, name = num, desc = "描述", mod = all} ,#f_column{type = int, name = pro, desc = "概率", mod = all} ,#f_column{type = int, name = must_not, desc = "获得N次后必不出", val = "0", mod = all} ]} ,{["大烟花奖励库"], [ #f_column{type = int, name = id, desc = "奖励id", mod = all} ,#f_column{type = term, name = award, desc = "物品", mod = all} ,#f_column{type = bstr, name = num, desc = "描述", mod = all} ,#f_column{type = int, name = pro, desc = "概率", mod = all} ,#f_column{type = int, name = must_not, desc = "获得N次后必不出", val = "0", mod = all} ]} ,{["红包奖励库"], [ #f_column{type = int, name = id, desc = "奖励id", mod = all} ,#f_column{type = term, name = award, desc = "物品", mod = all} ,#f_column{type = bstr, name = num, desc = "描述", mod = all} ,#f_column{type = int, name = pro, desc = "概率", mod = all} ,#f_column{type = int, name = must_not, desc = "获得N次后必不出", val = "0", mod = all} ]} ,{["积分奖励库"], [ #f_column{type = int, name = id, desc = "序号", mod = all} ,#f_column{type = int, name = count, desc = "目标百分比(扩大1000倍)", mod = all} ,#f_column{type = term, name = award, desc = "奖励", mod = all} ]} ,{["祝福语库"], [ #f_column{type = int, name = id, desc = "序号", mod = all} ,#f_column{type = int, name = pro, desc = "概率", mod = all} ,#f_column{type = bstr, name = msg, desc = "祝福语", add_list_sign = false, mod = all} ]} ,{["自增配置"], [ #f_column{type = int, name = id, desc = "天数", mod = all} ,#f_column{type = int, name = pro, desc = "百分比(扩大1000倍)", mod = all} ,#f_column{type = int, name = interval, desc = "自增间隔(秒)", mod = all} ,#f_column{type = int, name = time, desc = "自增时间(小时)", mod = all} ]} ] }.