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

59 lines
3.1 KiB
Erlang

%%----------------------------------------------------
%% 数据配置文件
%% @author
%%----------------------------------------------------
-module(looks_data).
-export([cfg/0]).
-include("data_config.hrl").
-include("common.hrl").
cfg() ->
#data_cfg{
name = looks_data
,lua_name = looks_data
,desc = "配置数据"
,source = "looks_data.xml"
,target = "looks_data.erl"
,inc = []
,callback = [
{list, cb_fun, handle, {list, ["DATA"]}}
,{{get, "undefined"}, cb_fun, handle, {get_record, ["DATA"], id, new_map, all}}
,{{get_looks_id, "[]"}, cb_fun, handle, {tuple_type, ["DATA"], [partner_id, star], id}}
,{{get_attr, "[]"}, cb_fun, handle, {get_tuple, ["DATA"], id, attr}}
,{{get_pre, "0"}, cb_fun, handle, {get_tuple, ["DATA"], id, pre_id}}
]
,callback_cli = [
{data, cb_fun_lua, handle, {key_val, ["DATA"], [id], all}}
,{head_data, cb_fun_lua, handle, {key_val, ["头像"], [id], all}}
]
,callback_json = [
{data, cb_fun_json, handle, {key_val, ["DATA"], [id], all}}
,{head_data, cb_fun_json, handle, {key_val, ["头像"], [id], all}}
]
,sheet = [
{["DATA"], [
#f_column{type = int, name = id, desc = "形象ID", primary = true, mod = all}
,#f_column{type = int, name = partner_id, desc = "英雄ID", mod = all}
,#f_column{type = bstr, name = model, desc = "资源ID", mod = all}
,#f_column{type = bstr, name = name, desc = "名称", mod = all}
,#f_column{type = int, name = star, desc = "需要英雄星数",mod = all}
,#f_column{type = int, name = lev, desc = "需要玩家等级",mod = all}
,#f_column{type = int, name = vip_lev, desc = "需要玩家VIP等级",mod = all}
,#f_column{type = term, name = expend, desc = "解锁物品ID", val = "[]", mod = all}
,#f_column{type = bstr, name = unlock_tip, desc = "未解锁提示", val_cli = "", mod = client}
,#f_column{type = term, name = attr, desc = "形象属性", val = "[]", mod = all}
,#f_column{type = bstr, name = mvp_res, desc = "mvp立绘", val_cli = 10000, mod = client}
,#f_column{type = int, name = skin_id, desc = "皮肤id", val = "0", mod = all}
,#f_column{type = int, name = offset_y, desc = "称号相对高度偏移量(Y)", val = "0", mod = client}
,#f_column{type = int, name = pre_id, desc = "前置id", val = "0", mod = all}
]}
,{["头像"], [
#f_column{type = int, name = id, desc = "头像ID", primary = true, mod = all}
,#f_column{type = int, name = head_type, desc = "类型", mod = all}
,#f_column{type = bstr, name = tips, desc = "未解锁提示", mod = client}
,#f_column{type = bstr, name = unlock_tips, desc = "解锁提示", mod = client}
,#f_column{type = bstr, name = name, desc = "名称", mod = client}
]}
]
}.