%%%------------------------------------------------------------------- %%% @author Administrator %%% @copyright (C) 2024, %%% @doc %%% %%% @end %%% Created : 27. 1月 2024 14:29 %%%------------------------------------------------------------------- -module(arena_camp_data). -author("Administrator"). -export([cfg/0]). -include("data_config.hrl"). -include("common.hrl"). cfg() -> #data_cfg{ name = arena_camp_data ,lua_name = arena_camp_data ,desc = "配置数据" ,source = "arena_camp_data.xml" ,target = "arena_camp_data.erl" ,inc = [] ,callback = [ {{get_const, undefined}, cb_fun, handle, {get_fun, ["常量表"], "get_const(~ts) -> ~ts; %% ~ts", [key, val, desc]}} ,{get_rank_reward1, cb_fun, handle, {get_tuple, ["周一奖励"], rank, reward}} ,{get_rank_reward2, cb_fun, handle, {get_tuple, ["周三奖励"], rank, reward}} ,{get_rank_reward3, cb_fun, handle, {get_tuple, ["周五奖励"], rank, reward}} ] ,callback_cli = [ ] ,callback_json = [ {const, cb_fun_json, handle, {key_val, ["常量表"], key, [val, desc]}} ,{awards1, cb_fun_json, handle, {key_val, ["周一奖励"], rank, all}} ,{awards2, cb_fun_json, handle, {key_val, ["周三奖励"], rank, all}} ,{awards3, cb_fun_json, handle, {key_val, ["周五奖励"], rank, all}} ,{explain, cb_fun_json, handle, {key_val, ["玩法說明"], [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 = rank, desc = "组内排名", mod = all} ,#f_column{type = term, name = reward, desc = "组1", mod = all} %% ,#f_column{type = term, name = group2, desc = "组2", mod = all} %% ,#f_column{type = term, name = group3, desc = "组3", mod = all} %% ,#f_column{type = term, name = group4, desc = "组4", mod = all} %% ,#f_column{type = term, name = group5, desc = "组5", mod = all} %% ,#f_column{type = term, name = group6, desc = "组6", mod = all} %% ,#f_column{type = term, name = group7, desc = "组7", mod = all} %% ,#f_column{type = term, name = group8, desc = "组8", mod = all} ]} ,{["周三奖励"], [ #f_column{type = int, name = rank, desc = "组内排名", mod = all} ,#f_column{type = term, name = reward, desc = "组1", mod = all} %% ,#f_column{type = term, name = group2, desc = "组2", mod = all} %% ,#f_column{type = term, name = group3, desc = "组3", mod = all} %% ,#f_column{type = term, name = group4, desc = "组4", mod = all} %% ,#f_column{type = term, name = group5, desc = "组5", mod = all} %% ,#f_column{type = term, name = group6, desc = "组6", mod = all} %% ,#f_column{type = term, name = group7, desc = "组7", mod = all} %% ,#f_column{type = term, name = group8, desc = "组8", mod = all} ]} ,{["周五奖励"], [ #f_column{type = int, name = rank, desc = "组内排名", mod = all} ,#f_column{type = term, name = reward, desc = "组1", mod = all} %% ,#f_column{type = term, name = group2, desc = "组2", mod = all} %% ,#f_column{type = term, name = group3, desc = "组3", mod = all} %% ,#f_column{type = term, name = group4, desc = "组4", mod = all} %% ,#f_column{type = term, name = group5, desc = "组5", mod = all} %% ,#f_column{type = term, name = group6, desc = "组6", mod = all} %% ,#f_column{type = term, name = group7, desc = "组7", mod = all} %% ,#f_column{type = term, name = group8, desc = "组8", mod = all} ]} ,{["玩法說明"], [ #f_column{type = int, name = id, desc = "标签", primary = true, mod = client} ,#f_column{type = str, name = title, desc = "标签名", mod = client} ,#f_column{type = str, name = desc, desc = "内容", mod = client} ]} ] }.