Files
fc/server/tools/gen_data/cfg/happy_treasure_data.erl
T

75 lines
3.6 KiB
Erlang
Raw Normal View History

2026-05-23 22:10:14 +08:00
%%%-------------------------------------------------------------------
%%% @author Administrator
%%% @copyright (C) 2024, <COMPANY>
%%% @doc
%%%
%%% @end
%%% Created : 25. 4月 2024 11:21
%%%-------------------------------------------------------------------
-module(happy_treasure_data).
-author("Administrator").
-export([cfg/0]).
-include("data_config.hrl").
-include("common.hrl").
cfg() ->
#data_cfg{
name = happy_treasure_data
,lua_name = happy_treasure_data
,desc = "新版大富翁数据"
,source = "happy_treasure_data.xml"
,target = "happy_treasure_data.erl"
,inc = []
,callback = [
{get_const, cb_fun, handle, {get_fun, ["常量配置"], "get_const(~s) -> ~s; %% ~ts", [key,val,desc]}}
,{get_reward, cb_fun, handle, {get_tuple, ["奖励展示"], [camp_id, group, pos], [item_bid, num]}}
,{get_item_id, cb_fun, handle, {get_tuple, ["环境配置"], camp_id, item}}
,{get_group_list, cb_fun, handle, {tuple_type, ["奖励展示"], camp_id, group}}
,{get_is_big, cb_fun, handle, {get_tuple, ["奖励展示"], [camp_id, group, pos], is_big}}
,{get_reward_list, cb_fun, handle, {tuple_type, ["进度宝箱奖励"], camp_id, index}}
,{get_schedule_reward, cb_fun, handle, {get_tuple, ["进度宝箱奖励"], [camp_id, index], all}}
]
,callback_cli = [
]
,callback_json = [
{const, cb_fun_json, handle, {key_val, ["常量配置"], key, [val, desc]}}
,{get_reward, cb_fun_json, handle, {type_get_val, ["奖励展示"], [camp_id, group, pos], all}}
,{get_schedule_reward, cb_fun_json, handle, {key_val, ["进度宝箱奖励"], [camp_id, index], all}}
,{infos, cb_fun_json, handle, {key_val, ["环境配置"], camp_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 = camp_id, desc = "活动id",mod = all}
,#f_column{type = int, name = group, desc = "组别", mod = all}
,#f_column{type = int, name = pos, desc = "位置", mod = all}
,#f_column{type = int, name = item_bid, desc = "物品ID", mod = all}
,#f_column{type = int, name = num, desc = "物品数量",mod = all}
,#f_column{type = int, name = is_big, desc = "是否大奖", val = "0", mod = server}
]}
,{["进度宝箱奖励"], [
#f_column{type = int, name = camp_id, desc = "活动id",mod = all}
,#f_column{type = int, name = index, desc = "标签",mod = all}
,#f_column{type = int, name = limit, desc = "目标步数",mod = all}
,#f_column{type = term, name = rewards, desc = "宝箱奖励", mod = all}
,#f_column{type = bstr, name = res_id, desc = "宝箱资源", mod = client}
]}
,{["环境配置"], [
#f_column{type = int, name = camp_id, desc = "活动id",mod = all}
,#f_column{type = bstr, name = shop, desc = "商店", mod = all}
,#f_column{type = bstr, name = model, desc = "模型配置", mod = all}
,#f_column{type = int, name = item, desc = "道具id", mod = all}
,#f_column{type = bstr, name = bgm, desc = "背景音乐",mod = all}
,#f_column{type = bstr, name = max, desc = "最大次数", mod = client}
,#f_column{type = int, name = item1, desc = "最大次数", mod = client}
,#f_column{type = int, name = item2, desc = "最大次数", mod = client}
]}
]
}.