Files
fc/server/tools/gen_data/cfg/happy_madpet_data.erl
T
2026-05-23 22:10:14 +08:00

62 lines
2.5 KiB
Erlang

%%%-------------------------------------------------------------------
%%% @author Administrator
%%% @copyright (C) 2024, <COMPANY>
%%% @doc
%%%
%%% @end
%%% Created : 28. 4月 2024 11:05
%%%-------------------------------------------------------------------
-module(happy_madpet_data).
-author("Administrator").
-export([cfg/0]).
-include("data_config.hrl").
-include("common.hrl").
cfg() ->
#data_cfg{
name = happy_madpet_data
,lua_name = happy_madpet_data
,desc = "僚机派遣数据"
,source = "happy_madpet_data.xml"
,target = "happy_madpet_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, sprite_quality], num}}
,{get_item_id, cb_fun, handle, {get_tuple, ["产出配置"], [camp_id, sprite_quality], item_bid}}
,{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, sprite_quality], all}}
,{get_schedule_reward, cb_fun_json, handle, {type_get_val, ["进度奖励"], [camp_id, index], 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 = sprite_quality, desc = "僚机品质", mod = all}
,#f_column{type = int, name = num, desc = "挂机产出数量", mod = all}
,#f_column{type = int, name = item_bid, desc = "产出道具", mod = all}
]}
,{["进度奖励"], [
#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}
]}
]
}.