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

71 lines
3.6 KiB
Erlang
Raw Normal View History

2026-05-23 22:10:14 +08:00
%%----------------------------------------------------
%% 数据配置文件
%%----------------------------------------------------
-module(gallery_data).
-export([cfg/0]).
-include("data_config.hrl").
-include("common.hrl").
cfg() ->
#data_cfg{
name = gallery_data
,lua_name = gallery_data
,desc = "图鉴配置数据"
,source = "gallery_data.xml"
,target = "gallery_data.erl"
,inc = ["common.hrl"]
,callback = [
{get_reward, cb_fun, handle, {get_tuple, ["英雄图书馆", "陣容獎勵"], id, reward}}
,{get_group, cb_fun, handle, {get_tuple, ["英雄图书馆"], id, group}}
,{get_all_group, cb_fun, handle, {tuple_list, ["陣容獎勵"], id}}
,{get_group_id, cb_fun, handle, {tuple_type, ["英雄图书馆"], group, id}}
]
,callback_cli = [
]
,callback_json = [
{partner_data, cb_fun_json, handle, {key_val, [ "英雄图书馆"], [id], all}}
,{group_reward_data, cb_fun_json, handle, {type_get_val, [ "陣容獎勵"], [id], all}}
,{world_outlook_data, cb_fun_json, handle, {key_val, [ "世界觀"], [id], all}}
,{label_data, cb_fun_json, handle, {key_val, [ "標籤"], [id], all}}
,{recommond, cb_fun_json, handle, {key_val, [ "陣容推薦"], [id], all}}
]
,sheet = [
{["英雄图书馆"], [
#f_column{type = int, name = id, desc = "伙伴ID", primary = true, mod = all}
,#f_column{type = bstr, name = name, desc = "伙伴名", mod = client}
,#f_column{type = bstr, name = resid, desc = "模型", mod = client}
,#f_column{type = int, name = camp, desc = "阵营", mod = client}
,#f_column{type = bstr, name = content, desc = "传记内容", mod = client}
,#f_column{type = int, name = quality, desc = "伙伴品质", mod = client}
,#f_column{type = int, name = career, desc = "伙伴职业", mod = client}
,#f_column{type = term, name = skills, desc = "技能图标", add_list_sign=false, mod = client}
,#f_column{type = term, name = reward, desc = "获得奖励", mod = all}
,#f_column{type = int, name = group, desc = "组别", mod = all}
,#f_column{type = bstr, name = group_desc, desc = "组别描述", mod = client}
,#f_column{type = int, name = photo_name, desc = "照片名", mod = client}
,#f_column{type = term, name = pos, desc = "位置", add_list_sign=false, mod = client}
]}
,{["陣容獎勵"], [
#f_column{type = int, name = id, desc = "组别", mod = all}
,#f_column{type = term, name = reward, desc = "奖励", mod = all}
,#f_column{type = bstr, name = bg, desc = "图片名", mod = all}
,#f_column{type = bstr, name = desc, desc = "描述", mod = all}
]}
,{["世界觀"], [
#f_column{type = bstr, name = id, desc = "标题id", mod = all}
,#f_column{type = term, name = content, desc = "文本", mod = all}
,#f_column{type = bstr, name = pic, desc = "文件名", mod = all}
]}
,{["標籤"], [
#f_column{type = int, name = id, desc = "小标签", mod = all}
,#f_column{type = bstr, name = label_name, desc = "标签名", mod = all}
,#f_column{type = bstr, name = big_label_name, desc = "大标签名", mod = all}
]}
,{["陣容推薦"], [
#f_column{type = int, name = id, desc = "阵容ID", mod = all}
,#f_column{type = term, name = camp, desc = "阵容", mod = all, add_list_sign = false}
,#f_column{type = bstr, name = desc, desc = "阵容说明", mod = all}
,#f_column{type = int, name = pr, desc = "排序", mod = all}
]}
]
}.