47 lines
2.6 KiB
Erlang
47 lines
2.6 KiB
Erlang
|
|
|
||
|
|
%%----------------------------------------------------
|
||
|
|
%% 数据配置文件
|
||
|
|
%% @author
|
||
|
|
%%----------------------------------------------------
|
||
|
|
-module(battle_bg_data).
|
||
|
|
-export([cfg/0]).
|
||
|
|
-include("data_config.hrl").
|
||
|
|
-include("common.hrl").
|
||
|
|
cfg() ->
|
||
|
|
#data_cfg{
|
||
|
|
name = battle_bg_data
|
||
|
|
,lua_name = battle_bg_data
|
||
|
|
,desc = "配置数据"
|
||
|
|
,source = "battle_bg_data.xml"
|
||
|
|
,target = "battle_bg_data.erl"
|
||
|
|
,inc = []
|
||
|
|
,callback = [
|
||
|
|
]
|
||
|
|
,callback_cli = [
|
||
|
|
{info, [{filter_row,[{type,-#f_column.val_cli,[3]}]}],cb_fun_lua, handle, {type_get_val, ["DATA"], [type],[bid,bg_music,is_single_bg]}}
|
||
|
|
,{info2, [{filter_row,[{type,#f_column.val_cli,[3]}]}], cb_fun_lua, handle, {type_get_val, ["DATA"], [type,id],[id, bid,bg_music,is_single_bg,fornt_effect,bg_effect]}}
|
||
|
|
,{fight_name, cb_fun_lua, handle, {key_val, ["DATA"], [type], name}}
|
||
|
|
,{back_limit, cb_fun_lua, handle, {type_get_last_row, ["DATA"], [type], back_limit_lv}}
|
||
|
|
]
|
||
|
|
,callback_json = [
|
||
|
|
{info, [{filter_row,[{type,-#f_column.val_cli,[3]}]}],cb_fun_json, handle, {type_get_val, ["DATA"], [type],[bid,bg_music,is_single_bg]}}
|
||
|
|
,{info2, [{filter_row,[{type,#f_column.val_cli,[3]}]}], cb_fun_json, handle, {type_get_val, ["DATA"], [type,id],[id, bid,bg_music,is_single_bg,fornt_effect,bg_effect]}}
|
||
|
|
,{fight_name, cb_fun_json, handle, {key_val, ["DATA"], [type], name}}
|
||
|
|
,{back_limit, cb_fun_json, handle, {type_get_last_row, ["DATA"], [type], back_limit_lv}}
|
||
|
|
]
|
||
|
|
,sheet = [
|
||
|
|
{["DATA"], [
|
||
|
|
#f_column{type = int, name = type, desc = "战斗类型", val_cli = 0, mod = client}
|
||
|
|
,#f_column{type = int, name = bid, desc = "背景id", mod = client}
|
||
|
|
,#f_column{type = bstr, name = bg_music, desc = "背景音乐", mod = client}
|
||
|
|
,#f_column{type = kv, name = is_single_bg,kv_type = [{"否", 0},{"是", 1}],desc = "是否独立图片", mod = client}
|
||
|
|
,#f_column{type = bstr, name = fornt_effect, desc = "前景特效", mod = client}
|
||
|
|
,#f_column{type = bstr, name = bg_effect, desc = "背景特效", mod = client}
|
||
|
|
,#f_column{type = bstr, name = name, desc = "类型名字", mod = client}
|
||
|
|
,#f_column{type = int, name = back_limit_lv, desc = "返回玩法按钮开启等级", mod = client}
|
||
|
|
,#f_column{type = bstr, name = xxxx, desc = "备注", mod = client}
|
||
|
|
,#f_column{type = int, name = id, desc = "章节id", mod = client}
|
||
|
|
]}
|
||
|
|
]
|
||
|
|
}.
|