%%%------------------------------------------------------------------- %%% @author panhao %%% @copyright (C) 2017, %%% @doc %%% 跨服进程 %%% @end %%% Created : 23. 十月 2017 14:29 %%%------------------------------------------------------------------- -module(group_control_data). %% API -export([cfg/0]). -include("data_config.hrl"). -include("common.hrl"). cfg() -> #data_cfg{ name = group_control_data ,lua_name = group_control_data ,desc = "跨服进程配置" ,source = "group_control_data.xml" ,target = "group_control_data.erl" ,inc = ["group_control.hrl"] ,callback = [ {get_group_control_data, cb_fun, handle, {get_record, ["阶段"], step, group_control_data, all}} ,{get_group_control_quest, cb_fun, handle, {get_record, ["进程任务"], quest_id, group_control_quest_data, all}} ,{get_constant, cb_fun, handle, {get_tuple, ["常量"], key, val}} ] ,callback_cli = [ {step, cb_fun_lua, handle, {key_val, ["阶段"], [step], all}} ,{mission, cb_fun_lua, handle, {key_val, ["进程任务"], [quest_id], all}} ,{function, cb_fun_lua, handle, {key_val, ["阶段功能"], [id], all}} ,{const, cb_fun_lua, handle, {key_val, ["常量"], [key], all}} ] ,callback_json = [ {step, cb_fun_json, handle, {key_val, ["阶段"], [step], all}} ,{mission, cb_fun_json, handle, {key_val, ["进程任务"], [quest_id], all}} ,{function, cb_fun_json, handle, {key_val, ["阶段功能"], [id], all}} ,{const, cb_fun_json, handle, {key_val, ["常量"], [key], all}} ] ,sheet = [ {["阶段"], [ #f_column{type = int, name = step, desc = "阶段", mod = all} ,#f_column{type = bstr, name = name, desc = "阶段名", mod = all} ,#f_column{type = int, name = need_value, desc = "需要进程值", mod = all} ,#f_column{type = int, name = timeout_day, desc = "超时天", mod = all} ,#f_column{type = term, name = step_quest, desc = "进程值任务", mod = all} ,#f_column{type = term, name = step_function, desc = "进程功能", mod = all} ,#f_column{type = term, name = step_reward, desc = "阶段奖励", mod = all} ,#f_column{type = bstr, name = desc, desc = "阶段内容描述", mod = all} ]} ,{["进程任务"], [ #f_column{type = int, name = quest_id, desc = "进程值任务", primary = true, mod = all} ,#f_column{type = bstr, name = desc, desc = "描述", mod = all} ,#f_column{type = int, name = add_value, desc = "增加进程值", mod = all} ]} ,{["阶段功能"], [ #f_column{type = int, name = id, desc = "进程功能", primary = true, mod = all} ,#f_column{type = bstr, name = desc, desc = "描述", mod = client} ,#f_column{type = bstr, name = icon, desc = "图标资源" ,mod = client} ,#f_column{type = term, name = icon, desc = "图标资源", add_list_sign = false ,mod = client} ]} ,{["常量"], [ #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 = bstr, name = desc, desc = "描述", mod = client} ]} ] }.