%%%------------------------------------------------------------------- %%% @author Administrator %%% @copyright (C) 2023, %%% @doc %%% %%% @end %%% Created : 15. 5月 2023 15:12 %%%------------------------------------------------------------------- -module(favor_data). -author("Administrator"). -export([cfg/0]). -include("data_config.hrl"). -include("common.hrl"). cfg() -> #data_cfg{ name = favor_data ,lua_name = favor_data ,desc = "阶段伙伴招募数据" ,source = "favor_data.xml" ,target = "favor_data.erl" ,inc = [] ,callback = [ {{get_const, "undefined"}, cb_fun, handle, {get_tuple, ["常量"], key, val}} ,{get_first_doc, cb_fun, handle, {get_tuple, ["亲密度伙伴"], partner_id, doc1}} ,{get_intimacy_info, cb_fun, handle, {get_tuple, ["亲密度伙伴"], partner_id, item}} %% ,{get_profile, cb_fun, handle, {get_tuple, ["剧本环境结构"], id, desc}} ,{get_partner_id, cb_fun, handle, {tuple_list, ["亲密度伙伴"], partner_id}} , {intimacy_lev, cb_fun, handle, {get_tuple, ["亲密度升级"], lev, all}} %% , {result_reward, cb_fun, handle, {get_tuple, ["密谈结局奖励"], [id,content_id], all}} %% ,{get_content, cb_fun, handle, {get_tuple, ["详细剧本"], [partner_id, profile_id, number], all}} %% ,{get_next_content, cb_fun, handle, {get_tuple, ["详细剧本"], [partner_id, profile_id, number], next_content_id}} %% ,{get_profile_id, cb_fun, handle, {tuple_list, ["详细剧本"], profile_id}} %% ,{get_rank, cb_fun, handle, {get_tuple, ["详细剧本"], [partner_id, profile_id, number], rank}} ,{get_quest, cb_fun, handle, {get_tuple, ["任务事件关联"], [partner_id, evt], evt_id}} ] ,callback_cli = [ {const, cb_fun_lua, handle, {key_val, ["常量"], [key], all}} ,{partner, cb_fun_lua, handle, {key_val, ["亲密度伙伴"], [partner_id], all}} ,{intimacy_lev, cb_fun_lua, handle, {key_val, ["亲密度升级"], [lev], all}} %% ,{result_reward, cb_fun_lua, handle, {type_get_val, ["密谈结局奖励"], [id,content_id], all}} %% ,{interface, cb_fun_lua, handle, {key_val, ["剧本环境结构"], [id], all}} %% , {content, cb_fun_lua, handle, {type_get_val, ["详细剧本"], [profile_id, number], all}} ] ,callback_json = [ {const, cb_fun_json, handle, {key_val, ["常量"], [key], all}} ,{partner, cb_fun_json, handle, {key_val, ["亲密度伙伴"], [partner_id], all}} ,{intimacy_lev, cb_fun_json, handle, {key_val, ["亲密度升级"], [lev], all}} ,{actions, cb_fun_json, handle, {type_get_val, ["资源路径"], [partner_id,action], all}} ,{actions_h, cb_fun_json, handle, {type_get_val, ["路径资源2"], [partner_id,action], all}} %% ,{result_reward, cb_fun_json, handle, {type_get_val, ["密谈结局奖励"], [id,content_id], all}} %% ,{interface, cb_fun_json, handle, {key_val, ["剧本环境结构"], [id], all}} %% , {content, cb_fun_json, handle, {type_get_val, ["详细剧本"], [profile_id, number], all}} ] ,sheet = [ {["常量"], [#f_column{desc = "字段", type = atom, name = key, primary = true, mod = all} , #f_column{desc = "值", type = term, name = val, mod = all} , #f_column{desc = "描述", type = bstr, name = desc, mod = client} ]} , {["亲密度伙伴"], [#f_column{desc = "亲密度开启英雄", type = int, name = partner_id, mod = all} ,#f_column{desc = "排序", type = int, name = sort, mod = all} , #f_column{desc = "适用道具", type = term, name = item, mod = all} , #f_column{desc = "res", type = int, name = res, mod = client} , #f_column{desc = "初始对话", type = bstr, name = doc1, mod = all} ]} , {["亲密度升级"], [#f_column{desc = "亲密度等级", type = int, name = lev, mod = all} , #f_column{desc = "升级经验值", type = int, name = exp, mod = all} , #f_column{desc = "升级属性提升", type = term, name = attr, mod = all} , #f_column{desc = "解锁内容", type = bstr, name = unlock, mod = all} , #f_column{desc = "解锁类型(1-档案,2-动作,3-任务", type = int, name = type, mod = all} , #f_column{desc = "描述", type = bstr, name = desc, mod = client} , #f_column{desc = "动作参数", type = bstr, name = args, val_cli = "", mod = client} ]} , {["任务事件关联"], [#f_column{desc = "英雄id", type = int, name = partner_id, mod = all} , #f_column{desc = "任务", type = bstr, name = evt, mod = all} , #f_column{desc = "事件id", type = int, name = evt_id, mod = client} ]} , {["资源路径"], [#f_column{desc = "英雄id", type = int, name = partner_id, mod = all} , #f_column{desc = "解锁动作", type = int, name = action, mod = all} , #f_column{desc = "路径", type = bstr, name = path, mod = client} , #f_column{desc = "动作名", type = bstr, name = name, mod = client} ]} , {["路径资源2"], [#f_column{desc = "英雄id", type = int, name = partner_id, mod = all} , #f_column{desc = "解锁动作", type = int, name = action, mod = all} , #f_column{desc = "路径", type = bstr, name = path, mod = client} , #f_column{desc = "动作名", type = bstr, name = name, mod = client} ]} , {["密谈结局奖励"], [#f_column{desc = "伙伴ID", type = int, name = id, mod = all} , #f_column{desc = "档案id", type = bstr, name = profile_id, mod = all} , #f_column{desc = "支线结局文本id", type = bstr, name = content_id, mod = all} , #f_column{desc = "奖励", type = term, name = reward, mod = all} ]} ,{["剧本环境结构"], [ #f_column{type = bstr, name = id, desc = "档案id", mod = all} ,#f_column{type = bstr, name = draw_id, desc = "立绘资源", mod = client} ,#f_column{type = bstr, name = bg_res, desc = "背景资源", mod = client} ,#f_column{type = int, name = default, desc = "自动默认选项", mod = client} ,#f_column{type = bstr, name = name, desc = "檔案名稱", mod = client} ,#f_column{type = bstr, name = bgm, desc = "bgm", mod = client} ,#f_column{type = bstr, name = desc, desc = "描述", mod = all} ]} ,{["详细剧本"], [ #f_column{type = int, name = partner_id, desc = "伙伴ID", mod = all} ,#f_column{type = bstr, name = profile_id, desc = "档案ID", mod = all} ,#f_column{type = int, name = rank, desc = "排序", mod = all} ,#f_column{type = str, name = section_desc, desc = "段落描述", mod = all} ,#f_column{type = bstr, name = number, desc = "编号(d-对话,o-选项,e-结局)", mod = all} ,#f_column{type = term, name = content, desc = "内容", mod = client} ,#f_column{type = int, name = icon, desc = "图标", mod = client} ,#f_column{type = term, name = next_content_id, desc = "后续剧情", mod = client} ,#f_column{type = term, name = reward, desc = "奖励", mod = all, val = "[]"} ]} ] }.