%%---------------------------------------------------- %% 数据配置文件 %% @author whjing2011@gmail.com %%---------------------------------------------------- -module(daily_charge_treasure_data). -export([cfg/0]). -include("data_config.hrl"). -include("common.hrl"). cfg() -> #data_cfg{ name = daily_charge_treasure_data ,lua_name = daily_charge_treasure_data ,desc = "配置数据" ,source = "daily_charge_treasure_data.xml" ,target = "daily_charge_treasure_data.erl" ,inc = ["common.hrl"] ,callback = [ {get_reward, cb_fun, handle, {get_tuple, ["神秘人宝藏"], id, items}} ,{get_floor_item, cb_fun, handle, {tuple_type, ["神秘人宝藏"], floor, [id, rand]}} ,{{get_const,undefined}, cb_fun, handle, {get_fun, ["常量配置"], "get_const(~s) -> ~s; %% ~ts", [key, val, desc]}} ] ,callback_cli = [ ] ,callback_json = [ {richanghuodong, cb_fun_json, handle, {type_get_val, ["神秘人宝藏"], [floor, id], all}} ,{rule, cb_fun_json, handle, {key_val, ["规则说明"], [id], all}} ,{constant, cb_fun_json, handle, {key_val, ["常量配置"], [key], all}} ] ,sheet = [ {["神秘人宝藏"], [ #f_column{type = int, name = id, desc = "id", primary = true, mod = all} ,#f_column{type = int, name = floor, desc = "层数", mod = all} ,#f_column{type = int, name = position, desc = "物品位置", mod = client} ,#f_column{type = term, name = items, desc = "物品内容", mod = all} ,#f_column{type = int, name = rand, desc = "权重", mod = all} ]} ,{["规则说明"], [ #f_column{type = int, name = id, desc = "id", mod = client} ,#f_column{type = bstr, name = name, desc = "标签名", mod = client} ,#f_column{type = bstr, name = content, desc = "内容", mod = client} ]} ,{["常量配置"], [ #f_column{type = atom, name = key, desc = "ID", 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} ]} ] }.