69 lines
4.0 KiB
Erlang
69 lines
4.0 KiB
Erlang
%%----------------------------------------------------
|
|
%% 数据配置文件
|
|
%% @author xxxx@xxx.xxx
|
|
%%----------------------------------------------------
|
|
-module(holiday_skin_draw_data).
|
|
-export([cfg/0]).
|
|
-include("data_config.hrl").
|
|
-include("common.hrl").
|
|
cfg() ->
|
|
#data_cfg{
|
|
name = holiday_skin_draw_data
|
|
,lua_name = holiday_skin_draw_data
|
|
,js_name = holiday_skin_draw_data
|
|
,desc = "配置数据"
|
|
,source = "holiday_skin_draw_data.xml"
|
|
,target = "holiday_skin_draw_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_loss, undefined}, cb_fun, handle, {get_tuple, ["次数消耗"], time, [lottery_id, loss_id, num]}}
|
|
,{get_all, cb_fun, handle, {tuple_list, ["池库"], [lottery_id, reward_id, num, weight, never_time, must_time, sort]}}
|
|
]
|
|
,callback_cli = [
|
|
{const, cb_fun_lua, handle, {key_val, ["常量配置"], key, [val, desc]}}
|
|
,{consum_count, cb_fun_lua, handle, {type_get_val, ["次数消耗"], [lottery_id,time], [loss_id,num]}}
|
|
,{lottery_stock, cb_fun_lua, handle, {type_get_val, ["池库"], [lottery_id,sort], [reward_id,num,sort]}}
|
|
,{lottery_msg, cb_fun_lua, handle, {key_val, ["奖池常量"], lottery_id, all}}
|
|
]
|
|
,callback_json = [
|
|
{const, cb_fun_json, handle, {key_val, ["常量配置"], key, [val, desc]}}
|
|
,{consum_count, cb_fun_json, handle, {type_get_val, ["次数消耗"], [lottery_id,time], [loss_id,num]}}
|
|
,{lottery_stock, cb_fun_json, handle, {type_get_val, ["池库"], [lottery_id,sort], [reward_id,num,sort]}}
|
|
,{lottery_msg, cb_fun_json, handle, {key_val, ["奖池常量"], lottery_id, all}}
|
|
]
|
|
,sheet = [
|
|
{["常量配置"], [
|
|
#f_column{type = atom, name = key, desc = "键", primary = true, mod = all}
|
|
,#f_column{type = term, name = val, desc = "值", add_list_sign=false, mod = all}
|
|
,#f_column{type = str, name = desc, desc = "描述", mod = all}
|
|
]}
|
|
,{["次数消耗"], [
|
|
#f_column{type = int, name = time, desc = "抽奖次数", mod = all}
|
|
,#f_column{type = int, name = id, desc = "活动id", mod = all}
|
|
,#f_column{type = int, name = lottery_id, desc = "池库id", mod = all}
|
|
,#f_column{type = int, name = loss_id, desc = "消耗道具id", mod = all}
|
|
,#f_column{type = int, name = num, desc = "消耗数量", mod = all}
|
|
]}
|
|
,{["池库"], [
|
|
#f_column{type = int, name = lottery_id, desc = "池库id", mod = all}
|
|
,#f_column{type = str, name = name, desc = "物品", mod = all}
|
|
,#f_column{type = int, name = reward_id, desc = "物品id", mod = all, val = 1}
|
|
,#f_column{type = int, name = num, desc = "数量", mod = all, val = 0}
|
|
,#f_column{type = int, name = weight, desc = "概率", mod = all, val = 0}
|
|
,#f_column{type = int, name = never_time, desc = "N次前必不出", mod = all, val = 0}
|
|
,#f_column{type = int, name = must_time, desc = "N次必出", mod = all, val = 0}
|
|
,#f_column{type = int, name = sort, desc = "顺序", mod = all, val = 0}
|
|
]}
|
|
,{["奖池常量"], [
|
|
#f_column{type = int, name = lottery_id, desc = "奖池id", mod = client}
|
|
,#f_column{type = int, name = lottery_item, desc = "祈愿星石", mod = client}
|
|
,#f_column{type = term, name = star_diammond, desc = "1星等额钻石", mod = client}
|
|
,#f_column{type = term, name = star_coin, desc = "1星转换金币", mod = client}
|
|
,#f_column{type = str, name = desc, desc = "描述", mod = client}
|
|
]}
|
|
]
|
|
}.
|