67 lines
3.8 KiB
Erlang
67 lines
3.8 KiB
Erlang
|
|
%%----------------------------------------------------
|
|
%% 元宵灯会数据配置文件
|
|
%% @author
|
|
%%----------------------------------------------------
|
|
-module(holiday_lanterm_festival_data).
|
|
-export([cfg/0]).
|
|
-include("data_config.hrl").
|
|
-include("common.hrl").
|
|
cfg() ->
|
|
#data_cfg{
|
|
name = holiday_lanterm_festival_data
|
|
,lua_name = holiday_lanterm_festival_data
|
|
,desc = "配置数据"
|
|
,source = "holiday_lanterm_festival_data.xml"
|
|
,target = "holiday_lanterm_festival_data.erl"
|
|
,inc = []
|
|
,callback = [
|
|
{{get_constant, "undefined"}, cb_fun, handle, {get_tuple, ["常量"], code, val}}
|
|
,{list, cb_fun, handle, {tuple_list, ["奖池信息"], [id, need_num]}}
|
|
,{{get_expend, "undefined"}, cb_fun, handle, {get_tuple, ["抽奖消耗"], [id, count], expend}}
|
|
,{get_award, cb_fun, handle, {get_tuple, ["随机库"], award_id, [item_id, item_num]}}
|
|
,{get_rand_info, cb_fun, handle, {tuple_type, ["随机库"], id, [award_id, pro, must_no_count, limit_count, min_open_day, max_open_day]}}
|
|
]
|
|
,callback_cli = [
|
|
{constant, cb_fun_lua, handle, {key_val, ["常量"], code, [val, desc]}}
|
|
,{consume_num, cb_fun_lua, handle, {key_val, ["奖池信息"], [id],all}}
|
|
,{consume_list, cb_fun_lua, handle, {type_get_val, ["抽奖消耗"], [id,count], all}}
|
|
,{rand_list, cb_fun_lua, handle, {type_get_val, ["随机库"], [id,award_id], all}}
|
|
]
|
|
,callback_json = [
|
|
{constant, cb_fun_json, handle, {key_val, ["常量"], code, [val, desc]}}
|
|
,{consume_num, cb_fun_json, handle, {key_val, ["奖池信息"], [id],all}}
|
|
,{consume_list, cb_fun_json, handle, {type_get_val, ["抽奖消耗"], [id,count], all}}
|
|
,{rand_list, cb_fun_json, handle, {type_get_val, ["随机库"], [id,award_id], all}}
|
|
]
|
|
,sheet = [
|
|
{["常量"], [
|
|
#f_column{type = atom, name = code, desc = "标签", mod = all}
|
|
,#f_column{type = term, name = val, desc = "值", mod = all,val_cli="{}", add_list_sign = false}
|
|
,#f_column{type = bstr, name = desc, desc = "名字", mod = client}
|
|
]}
|
|
,{["奖池信息"], [
|
|
#f_column{type = int, name = id, desc = "奖池id", primary = true, mod = all}
|
|
,#f_column{type = int, name = need_num, desc = "解锁需消耗数量", mod = all}
|
|
]}
|
|
,{["抽奖消耗"], [
|
|
#f_column{type = int, name = id, desc = "奖池id", mod = all}
|
|
,#f_column{type = int, name = count, desc = "次数", mod = all}
|
|
,#f_column{type = int, name = expend, desc = "消耗", mod = all}
|
|
]}
|
|
,{["随机库"], [
|
|
#f_column{type = int, name = id, desc = "奖池id", mod = all}
|
|
,#f_column{type = int, name = award_id, desc = "奖励id", mod = all}
|
|
,#f_column{type = int, name = item_id, desc = "道具id", mod = all}
|
|
,#f_column{type = int, name = item_num, desc = "道具数量", mod = all}
|
|
,#f_column{type = int, name = order, desc = "排序", mod = all}
|
|
,#f_column{type = int, name = pro, desc = "权重", mod = all}
|
|
,#f_column{type = int, name = must_no_count, desc = "M次以内抽取不出", val = "0", mod = all}
|
|
,#f_column{type = int, name = min_open_day, desc = "开服天数下限", val = "0", mod = all}
|
|
,#f_column{type = int, name = max_open_day, desc = "开服天数上限", val = "9999999", mod = all}
|
|
,#f_column{type = int, name = limit_count, desc = "可抽取次数", val = "0", mod = all}
|
|
,#f_column{type = int, name = effect, desc = "物品特效", mod = all}
|
|
]}
|
|
]
|
|
}.
|