%%%------------------------------------------------------------------- %%% @author Administrator %%% @copyright (C) 2024, %%% @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} ]} ] }.