%%%------------------------------------------------------------------- %%% @author Administrator %%% @copyright (C) 2023, %%% @doc %%% %%% @end %%% Created : 11. 5月 2023 15:58 %%%------------------------------------------------------------------- -module(monopoly_data). -author("Administrator"). -export([cfg/0]). -include("data_config.hrl"). -include("common.hrl"). cfg() -> #data_cfg{ name = monopoly_data ,lua_name = monopoly_data ,desc = "大富翁数据" ,source = "monopoly_data.xml" ,target = "monopoly_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, ["奖励展示"], pos, [item_bid, num]}} ,{get_schedule_reward, cb_fun, handle, {get_tuple, ["进度宝箱奖励"], index, all}} ] ,callback_cli = [ {const, cb_fun_lua, handle, {key_val, ["常量配置"], key, [val, desc]}} ,{get_reward, cb_fun_lua, handle, {key_val, ["奖励展示"], [pos], all}} ,{get_schedule_reward, cb_fun_lua, handle, {key_val, ["进度宝箱奖励"], [index], all}} ] ,callback_json = [ {const, cb_fun_json, handle, {key_val, ["常量配置"], key, [val, desc]}} ,{get_reward, cb_fun_json, handle, {key_val, ["奖励展示"], [pos], all}} ,{get_schedule_reward, cb_fun_json, handle, {key_val, ["进度宝箱奖励"], [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 = 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 = index, desc = "标签",mod = all} ,#f_column{type = term, name = rewards, desc = "宝箱奖励", mod = all} ]} ] }.