Files
2026-05-23 22:10:14 +08:00

68 lines
3.1 KiB
Erlang

%%%-------------------------------------------------------------------
%%% @author Administrator
%%% @copyright (C) 2023, <COMPANY>
%%% @doc
%%%
%%% @end
%%% Created : 19. 9月 2023 14:47
%%%-------------------------------------------------------------------
-module(favor_plus_data).
-author("Administrator").
-export([cfg/0]).
-include("data_config.hrl").
-include("common.hrl").
cfg() ->
#data_cfg{
name = favor_plus_data
,lua_name = favor_plus_data
,desc = ""
,source = "favor_plus_data.xml"
,target = "favor_plus_data.erl"
,inc = []
,callback = [
{{get_const, "undefined"}, cb_fun, handle, {get_tuple, ["常量"], key, val}}
, {get_info, cb_fun, handle, {get_tuple, ["屬性"], [partner_id, icon_id], all}}
,{get_num, cb_fun, handle, {get_tuple, ["亲密值設置"], lev, num}}
]
,callback_cli = [
]
,callback_json = [
{const, cb_fun_json, handle, {key_val, ["常量"], [key], all}}
,{favor_setting, cb_fun_json, handle, {key_val, ["亲密值設置"], [lev], all}}
, {content, cb_fun_json, handle, {type_get_val, ["屬性"], [partner_id, icon_id], all}}
]
,sheet = [
{["常量"],
[#f_column{desc = "字段", type = atom, name = key, primary = true, mod = all}
, #f_column{desc = "", type = term, name = val, mod = all, add_list_sign = false}
, #f_column{desc = "描述", type = bstr, name = desc, mod = client}
]}
, {["屬性"],
[#f_column{desc = "角色id", type = int, name = partner_id, mod = all}
,#f_column{desc = "图标id", type = bstr, name = icon_id, mod = all}
,#f_column{desc = "心情", type = int, name = mood, mod = all}
, #f_column{desc = "亲密度等级", type = int, name = favor_lev, mod = all}
, #f_column{desc = "小动画", type = int, name = mini_animation, mod = client}
, #f_column{desc = "动作文件", type = bstr, name = action, mod = client}
, #f_column{desc = "操作间隔", type = int, name = longtouch, mod = client}
, #f_column{desc = "亲密度加成", type = term, name = add_favor, mod = all, add_list_sign = false}
, #f_column{desc = "文本", type = bstr, name = content, mod = client}
, #f_column{desc = "动作图标", type = bstr, name = icon, mod = client}
, #f_column{desc = "动作名", type = bstr, name = action_name, mod = client}
,#f_column{desc = "偏移x", type = int, name = x, mod = client}
,#f_column{desc = "偏移y", type = int, name = y, mod = client}
, #f_column{desc = "角色名称", type = bstr, name = partner_name, mod = client}
, #f_column{desc = "语音", type = bstr, name = voice, mod = client}
]}
, {["亲密值設置"],
[#f_column{desc = "lev", type = int, name = lev, mod = all}
, #f_column{desc = "等级描述", type = bstr, name = desc, mod = client}
, #f_column{desc = "亲密值", type = int, name = num, mod = all}
, #f_column{desc = "动作", type = bstr, name = action, mod = client}
, #f_column{desc = "bgm", type = bstr, name = bgm, mod = client}
]}
]
}.