%%---------------------------------------------------- %% 音效配置 %% %% @author lwc %%---------------------------------------------------- -module(voice_data). -export([cfg/0, get/1]). -include("data_config.hrl"). cfg() -> #data_cfg{ name = voice_data ,lua_name = voice_data ,desc = "音效配置数据" ,splitv = 2 ,source = "voice_data.xml" ,target = "voice_data.erl" ,inc = ["common.hrl"] ,callback = [ ] ,callback_cli = [ {voice_info, cb_fun_lua, handle, {type_get_val, ["音效配置"], [sound_type,voice_id], [time]}} ] ,callback_json = [ {voice_info, cb_fun_json, handle, {type_get_val, ["音效配置"], [sound_type,voice_id], [time]}} ] ,sheet = [ {["音效配置"],[ #f_column{type = bstr, name = voice_id, desc = "配音id", mod = client} ,#f_column{type = kv, name = sound_type, kv_type = {?MODULE, get, [type]}, desc = "音效类型", mod = client} ,#f_column{type = int, name = time, desc = "持续时间", mod = client} ]}, {["常量配置"],[ #f_column{type = term, name = key, desc = "常量标识", add_list_sign = false,mod = client} ,#f_column{type = term, name = val, desc = "常量值", add_list_sign = false,mod= client} ,#f_column{type = bstr, name = desc, desc = "描述", mod = client} ]} ] }. get(type) -> [ {"common", "common"} ,{"scene", "scene"} ,{"battle", "battle"} ,{"dubbing", "dubbing"} ,{"recruit", "recruit"} ,{"drama", "drama"} ].