Files
fc/server/tools/gen_data/cfg/clothes_data.erl
T

61 lines
3.0 KiB
Erlang
Raw Normal View History

2026-05-23 22:10:14 +08:00
%%%-------------------------------------------------------------------
%%% @author panhao
%%% @copyright (C) 2017, <COMPANY>
%%% @doc
%%% 时装表工具
%%% @end
%%% Created : 14. 十二月 2017 10:09
%%%-------------------------------------------------------------------
-module(clothes_data).
%% API
-export([cfg/0]).
-include("data_config.hrl").
-include("common.hrl").
cfg() ->
#data_cfg{
name = clothes_data
,lua_name = clothes_data
,desc = "时装配置数据"
,source = "clothes_data.xml"
,target = "clothes_data.erl"
,inc = ["partner.hrl", "common.hrl", "attr.hrl"]
,callback = [
{get_base, cb_fun, handle, {get_record, ["基本信息"], id, partner_clothes_data, all}}
,{{get_face_id, " 0"}, cb_fun, handle, {get_tuple, ["基本信息"], id, face_id}}
]
,callback_cli = [
{clothes_data, cb_fun_lua, handle, {type_get_val, ["基本信息"], [partner_bid,id], all}}
,{fashion_to_partner, cb_fun_lua, handle, {type_val, ["基本信息"], [id], [partner_bid]}}
,{head_to_partner, cb_fun_lua, handle, {type_val, ["基本信息"], [face_id], [clothes_name,partner_name]}}
]
,callback_json = [
{clothes_data, cb_fun_json, handle, {type_get_val, ["基本信息"], [partner_bid,id], all}}
,{fashion_to_partner, cb_fun_json, handle, {type_val, ["基本信息"], [id], [partner_bid]}}
,{head_to_partner, cb_fun_json, handle, {type_val, ["基本信息"], [face_id], [clothes_name,partner_name]}}
]
,sheet = [
{["基本信息"], [
#f_column{type = int, name = id, desc = "时装ID", mod = all}
,#f_column{type = bstr, name = clothes_name, desc = "皮肤名称", mod = all}
,#f_column{type = bstr, name = partner_name, desc = "英雄名称", mod = client}
,#f_column{type = int, name = partner_bid, desc = "伙伴ID", mod = all}
,#f_column{type = int, name = item_id, desc = "物品ID", mod = all}
,#f_column{type = bstr, name = model, desc = "模型ID", mod = client}
,#f_column{type = int, name = icon_id, desc = "插图类型ID", mod = client}
,#f_column{type = bstr, name = icon, desc = "卡片插图ID", mod = client}
,#f_column{type = term, name = attr, desc = "属性加成", mod = all}
,#f_column{type = int, name = day, desc = "时间限制", mod = all}
,#f_column{type = bstr, name = desc, desc = "获取途径显示", mod = client}
,#f_column{type = bstr, name = attr_desc, desc = "属性加成描述", mod = client}
,#f_column{type = int, name = is_classics, desc = "是否为经典时装", mod = client}
,#f_column{type = int, name = piece_num, desc = "碎片返还数", mod = server}
,#f_column{type = int, name = face_id, desc = "头像ID", mod = face}
]}
]
}.