44 lines
1.8 KiB
Erlang
44 lines
1.8 KiB
Erlang
|
|
%%----------------------------------------------------
|
||
|
|
%% 萌新福利活动
|
||
|
|
%%
|
||
|
|
%% @author liufenglin 240039421@qq.com
|
||
|
|
%%----------------------------------------------------
|
||
|
|
-module(welfare_data).
|
||
|
|
-export([cfg/0]).
|
||
|
|
-include("data_config.hrl").
|
||
|
|
-include("common.hrl").
|
||
|
|
cfg() ->
|
||
|
|
#data_cfg{
|
||
|
|
name = welfare_data
|
||
|
|
,lua_name = welfare_data
|
||
|
|
,desc = "活跃度"
|
||
|
|
,source = "welfare_data.xml"
|
||
|
|
,target = "welfare_data.erl"
|
||
|
|
,inc = ["common.hrl"]
|
||
|
|
,callback =[
|
||
|
|
{{get_constant, "undefined"}, cb_fun, handle, {get_tuple, ["常量"], code, val}}
|
||
|
|
,{list, cb_fun, handle, {list, ["任务数据"]}}
|
||
|
|
,{get_award, cb_fun, handle, {get_tuple, ["任务数据"], id, award}}
|
||
|
|
,{get_cond, cb_fun, handle, {get_tuple, ["任务数据"], id, quest_cond}}
|
||
|
|
]
|
||
|
|
,callback_cli =[
|
||
|
|
{welfare_const, cb_fun_lua, handle, {key_val, ["常量"], [code], all}}
|
||
|
|
]
|
||
|
|
,callback_json =[
|
||
|
|
{welfare_const, cb_fun_json, handle, {key_val, ["常量"], [code], all}}
|
||
|
|
]
|
||
|
|
,sheet =[
|
||
|
|
{["常量"], [
|
||
|
|
#f_column{type = atom, name = code, desc = "标签", mod = all}
|
||
|
|
,#f_column{type = term, name = val, desc = "值", add_list_sign = false, mod = all}
|
||
|
|
,#f_column{type = bstr, name = type, desc = "描述", mod = all}
|
||
|
|
]}
|
||
|
|
,{["任务数据"], [
|
||
|
|
#f_column{type = int, name = id, desc = "ID", mod = all}
|
||
|
|
,#f_column{type = bstr, name = desc, desc = "任务描述", mod = client}
|
||
|
|
,#f_column{type = term, name = quest_cond, desc = "任务达成条件", add_list_sign = false, mod = all}
|
||
|
|
,#f_column{type = term, name = award, desc = "任务奖励", mod = all}
|
||
|
|
]}
|
||
|
|
]
|
||
|
|
}.
|