%%%------------------------------------------------------------------- %%% @author panhao %%% @copyright (C) 2017, %%% @doc %%% %%% @end %%% Created : 27. 二月 2017 16:46 %%%------------------------------------------------------------------- -module(formation_data). -author("Administrator"). %% API -export([cfg/0]). -include("data_config.hrl"). -include("common.hrl"). cfg() -> #data_cfg{ name = formation_data ,lua_name = formation_data ,desc = "阵法配置数据" ,source = "formation_data.xml" ,target = "formation_data.erl" ,inc = ["formation.hrl", "common.hrl", "attr.hrl"] ,callback = [ {{get_constant, "undefined"}, cb_fun, handle, {get_tuple, ["常量配置"], code, val}} ,{get_all_formation, cb_fun, handle, {list, ["阵法类型"]}} ,{get_formation, cb_fun, handle, {get_record, ["阵法类型"], type, formation_data, all}} ] ,callback_cli = [ {form_cost, cb_fun_lua, handle, {key_val, [ "常量配置"], [code], all}} ,{form_data, cb_fun_lua, handle, {key_val, [ "阵法类型"], [type], all}} %% ,{form_attr, cb_fun_lua, handle, {type_get_val, [ "阵法配置"], [type,lev], all}} ] ,callback_json = [ {form_cost, cb_fun_json, handle, {key_val, [ "常量配置"], [code], all}} ,{form_data, cb_fun_json, handle, {key_val, [ "阵法类型"], [type], all}} %% ,{form_attr, cb_fun_json, handle, {type_get_val, [ "阵法配置"], [type,lev], all}} ] ,sheet = [ {["常量配置"], [ #f_column{type = atom, name = code, desc = "标签", mod = all} ,#f_column{type = term, name = val, add_list_sign=false, desc = "值", mod = all} ,#f_column{type = bstr, name = desc, desc = "描述", mod = all} ]} ,{["阵法类型"], [ #f_column{type = int, name = type, desc = "阵法类型", mod = all} ,#f_column{type = int, name = order, desc = "显示顺序", mod = client} ,#f_column{type = bstr, name = name, desc = "阵法名称", mod = all} ,#f_column{type = term, name = pos, desc = "开放阵位", mod = all} ,#f_column{type = int, name = need_lev, desc = "开放阵型所需等级", mod = all} ,#f_column{type = bstr, name = desc, desc = "阵法描述", mod = client} ,#f_column{type = term, name = pos_list, desc = "阵法UI站位", mod = client} ]} ] }.