Files
fc/server/tools/gen_proto/cfg/proto_256.erl
T
2026-05-23 22:10:14 +08:00

494 lines
21 KiB
Erlang
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
%%----------------------------------------------------
%% 跨服竞技场
%%
%% @author yzq
%%----------------------------------------------------
-module(proto_256).
-export([info/0, cfg/0]).
-include("protocol.hrl").
info() -> {
"跨服竞技场"
,["common.hrl", "combat.hrl", "formation.hrl", "arena_cluster.hrl"]
}.
-spec cfg() -> [#rpc{}].
cfg() ->
[
#rpc{
code = 25600
,log_title = "个人信息"
,req_desc = "个人信息"
,req = []
,reply = [
{uint16, rank, "名次"}
,{uint16, max_rank, "历史最高排名"}
,{uint32, score, "积分"}
,{uint8, can_combat_num, "今天可挑战次数"}
,{uint8, buy_combat_num, "今天已购买挑战次数"}
,{int32, ref_time, "下次可刷新时间(unixtime)"}
,{uint32, start_time, "赛季开始时间"}
,{uint32, end_time, "赛季结束时间,小于当前时间则为休赛期"}
,{uint8, is_auto, "是否勾选跳过(1:是,0:否)"}
,{uint32, season_combat_num, "赛季挑战次数"}
]
}
,#rpc{
code = 25601
,log_title = "挑战列表"
,req_desc = "挑战列表"
,req = []
,reply = [
{array, tuple, f_list, "挑战列表信息", [
{uint8, idx, "编号"}
,{uint32, rid, "角色ID"}
,{string, srv_id, "角色服务器ID"}
,{string, name, "角色名称"}
,{uint16, lev, "等级"}
,{uint8, sex, "性别"}
,{uint32, face, "头像"}
,{uint32, look, "形象"}
,{uint32, power, "战力"}
,{uint32, score, "积分"}
,{uint32, face_update_time, "自定义头像时间"}
,{string, face_file, "自定义头像"}
]}
,{uint8, type, "0:全部数据 1:更新部分"}
]
}
,#rpc{
code = 25602
,log_title = "获取挑战玩家信息"
,req_desc = "获取挑战玩家信息"
,req = [
{uint32, rid, "角色ID"}
,{string, srv_id, "服务器ID"}
]
,reply = [
{uint32, rid, "角色ID"}
,{string, srv_id, "服务器ID"}
,{string, name, "玩家名"}
,{uint16, lev, "等级"}
,{uint32, face, "头像"}
,{uint32, face_update_time, "自定义头像时间"}
,{string, face_file, "自定义头像"}
,{uint8, sex, "性别"}
,{uint32, power, "战力"}
,{uint32, score, "积分"}
,{uint32, avatar_id, "头像框"}
,{array, tuple, order_list, "阵型信息", [
{uint8, order, "队伍ID"}
,{uint32, power, "队伍战力"}
,{uint8, is_hidden, "是否隐藏"}
,{array, tuple, p_list, "英雄信息", [
{uint8, pos, "位置"}
,{uint32, id, "伙伴唯一id"}
,{uint32, bid, "BID"}
,{uint16, lev, "等级"}
,{uint8, star, "星级"}
,{uint32, use_skin, "皮肤id"}
,{uint32, resonate_lev, "共鸣前等级"}
]}
]}
]
}
,#rpc{
code = 25603
,log_title = "看对方英雄信息(成功返回11061"
,req_desc = "看对方英雄信息(成功返回11061"
,req = [
{uint32, rid, "角色ID"}
,{string, srv_id, "服务器ID"}
,{uint8, order, "队伍ID"}
,{uint8, pos, "英雄位置"}
]
,reply_desc = ""
,reply = [
{uint8, code, "标志(0:失败 1:成功)"}
,{string, msg, "提示信息"}
]
}
,#rpc{
code = 25604
,log_title = "设置阵法"
,req_desc = "设置阵法"
,req = [
{uint8, type, "类型(1:进攻阵容 2:防守阵容)"}
,{array, tuple, formations, "阵容", [
{uint8, order, "队伍序号"}
,{uint8, formation_type, "阵法类型"}
,{array, tuple, pos_info, "站位信息", [
{uint8, pos, "位置"}
,{uint32, id, "伙伴ID"}
]}
,{uint32, hallows_id, "使用的圣器id(没有传0)"}
,{uint8, is_hidden, "是否隐藏"}
]}
]
,reply_desc = "设置阵法"
,reply = [
{uint8, code, "结果(0:失败 1:成功)"}
,{string, msg, "结果信息"}
]
}
,#rpc{
code = 25605
,log_title = "请求阵法"
,req_desc = "请求阵法"
,req = [
{uint8, type, "类型(1:进攻阵容 2:防守阵容)"}
]
,reply_desc = "请求阵法"
,reply = [
{uint8, type, "类型(1:进攻阵容 2:防守阵容)"}
,{array, tuple, formations, "阵容", [
{uint8, order, "队伍序号"}
,{uint8, formation_type, "阵法类型"}
,{array, formation_pos, pos_info, "站位信息", [
{uint8, pos, "位置"}
,{uint32, id, "伙伴ID"}
]}
,{uint32, hallows_id, "使用的圣器id(没有传0)"}
,{uint8, is_hidden, "是否隐藏"}
]}
]
}
,#rpc{
code = 25606
,log_title = "挑战玩家"
,req_desc = "挑战玩家"
,req = [
{uint32, rid, "角色ID"}
,{string, srv_id, "服务器ID"}
,{uint8, is_auto, "是否跳过"}
]
,reply = [
{uint8, code, "标志(0:失败 1:成功)"}
,{string, msg, "提示信息"}
]
}
,#rpc{
code = 25607
,log_title = "挑战次数奖励信息"
,req_desc = "挑战次数奖励信息"
,req = [
]
,reply = [
{uint16, had_combat_num, "已挑战次数"}
,{array, single, num_list, "已领取次数奖励", [
{uint8, num, "次数"}
]}
]
}
,#rpc{
code = 25608
,log_title = "领取挑战次数奖励"
,req_desc = "领取挑战次数奖励"
,req = [
{uint8, num, "次数"}
]
,reply = [
{uint8, code, "标志(0:失败 1:成功)"}
,{string, msg, "提示信息"}
]
}
,#rpc{
code = 25609
,log_title = "刷新列表"
,req_desc = "刷新列表"
,req = [
]
,reply = [
{uint8, code, "标志(0:失败 1:成功)"}
,{string, msg, "提示信息"}
,{int32, ref_time, "下次可刷新时间(unixtime)"}
]
}
,#rpc{
code = 25610
,log_title = "推送活动是否开启"
,req_desc = "推送活动是否开启"
,req = [
]
,reply = [
{uint8, code, "标志(0:关闭 1:开启 2:暂停)"}
]
}
,#rpc{
code = 25611
,log_title = "战斗结算"
,req_desc = "战斗结算"
,req = []
,reply_desc = "战斗结算"
,reply = [
{uint8, result, "战斗结果 1 胜利 2:失败"}
,{uint32, score, "积分"}
,{int32, get_score, "获取积分"}
,{string, tar_name, "目标名称"}
,{uint16, tar_lev, "目标等级"}
,{uint32, tar_face, "目标头像"}
,{uint32, face_update_time, "自定义头像时间"}
,{string, face_file, "自定义头像"}
,{int32, tar_score, "目标积分"}
,{int32, lose_score, "目标扣除积分"}
,{array, tuple, all_hurt_statistics, "伤害统计", [
{uint8, round, "第几场战斗"}
,{array, tuple, hurt_statistics, "伤害统计", [
{uint8, type, "1:进攻方 2:被攻击方"}
,{array, partner_hurt, partner_hurts, "伤害统计", [
{tuple, master_id, [
{uint32, rid, "拥有者ID"}
,{string, srvid, "拥有者服务器id"}
]}
,{uint32, id, id, "英雄bid"}
,{uint32, bid, bid, "英雄bid"}
,{uint32, star, star, "星级"}
,{uint32, lev, lev, "等级"}
,{uint32, camp_type, camp_type, "英雄阵营"}
,{uint32, dps, dps, "英雄伤害"}
,{uint32, cure, cure, "英雄治疗量"}
,{array, tuple, ext_data, "额外参数", [
{uint32, key, "键(5:皮肤id(11:共鸣前等级)"}
,{uint32, val, ""}
]}
,{uint32, be_hurt, be_hurt, "英雄承受伤害"}
]}
]}
]}
]
}
,#rpc{
code = 25612
,log_title = "翻牌当前状态"
,req_desc = "翻牌当前状态"
,req = [
]
,reply = [
{array, tuple, card_info, "牌的信息", [
{uint8, pos, "牌的位置"}
,{uint8, status, "翻牌状态 0未打开 1可购买 2已购买"}
,{array, tuple, reward, "奖励", [
{uint32, item_id, "物品ID"}
,{uint32, num, "物品数量"}
]}
,{array, tuple, val, "购买物品价值", [
{uint32, item_id, "物品ID"}
,{uint32, num, "物品数量"}
]}
]}
]
}
,#rpc{
code = 25613
,log_title = "翻牌(成功返回25612"
,req_desc = "翻牌(成功返回25612"
,req = [
{uint8, pos, "牌的位置"}
]
,reply = [
{uint8, code, "标志(0:失败 1:成功)"}
,{string, msg, "提示信息"}
]
}
,#rpc{
code = 25614
,log_title = "前三排行榜信息"
,req_desc = "前三排行榜信息"
,req = []
,reply = [
{array, tuple, rank_list, "排行榜", [
{rec, arena_cluster_role, arena_cluster_role, [
{tuple, id, [
{uint32, rid, "角色ID"}
,{string, srv_id, "服务器ID"}
]}
,{string, name, "角色名"}
,{string, gname, "帮会名"}
,{uint32, rank, "排名"}
,{uint32, lookid, "外观ID"}
]}
,{uint32, worship, "点赞数量"}
,{uint8, worship_status, "膜拜状态(0:可膜拜 1:不可膜拜)"}
]}
]
}
,#rpc{
code = 25615
,log_title = "排行榜信息"
,req_desc = "排行榜信息"
,req = []
,reply = [
{uint16, rank, "自己名次"}
,{uint16, best_rank, "历史最高"}
,{array, tuple, arena_cluster_role, "排行榜", [
{rec, arena_cluster_role, arena_cluster_role, [
{tuple, id, [
{uint32, rid, "角色ID"}
,{string, srv_id, "服务器ID"}
]}
,{string, name, "角色名"}
,{string, gname, "帮会名"}
,{uint16, lev, "等级"}
,{uint32, face, "头像"}
,{uint8, sex, "性别"}
,{uint16, rank, "排名"}
,{uint32, power, "战力"}
,{uint32, avatar_id, "头像框"}
,{uint32, score, "积分"}
]}
,{uint32, face_update_time, "自定义头像时间"}
,{string, face_file, "自定义头像"}
]}
]
}
,#rpc{
code = 25616
,log_title = "个人日志"
,req_desc = "个人日志"
,req = [
{uint8, type, "类型 1:个人 2:大神"}
]
,reply_desc = "个人日志"
,reply = [
{uint8, type, "类型 1:个人 2:大神"}
,{array, arena_cluster_log, arena_cluster_log, "日志数据", [
{uint32, id, id, "日志ID"}
,{tuple, atk_id, [
{uint32, rid, "id"}
,{string, srv_id, "服务器ID"}
]}
,{string, atk_name, atk_name, "进攻方名字"}
,{uint32, atk_face, atk_face, "进攻方头像"}
,{uint32, atk_lev, atk_lev, "进攻方等级"}
,{uint32, atk_rank, atk_rank, "进攻方排名"}
,{uint32, atk_score, atk_score, "进攻方积分"}
,{uint32, atk_face_update_time, "自定义头像时间"}
,{string, atk_face_file, "自定义头像"}
,{tuple, def_id, [
{uint32, def_rid, "id"}
,{string, def_srv_id, "服务器ID"}
]}
,{string, def_name, def_name, "防守方名字"}
,{uint32, def_face, def_face, "防守方头像"}
,{uint32, def_lev, def_lev, "防守方等级"}
,{uint32, def_rank, def_rank, "防守方排名"}
,{uint32, def_score, def_score, "防守方积分"}
,{uint32, def_face_update_time, "自定义头像时间"}
,{string, def_face_file, "自定义头像"}
,{uint8, ret, ret, "结果 1:胜利 2:失败"}
,{uint8, win_count, win_count, "胜利次数"}
,{uint8, lose_count, lose_count, "失败次数"}
,{uint8, combat_type, combat_type, "战斗类型"}
,{uint32, time, time, "时间"}
]}
]
}
,#rpc{
code = 25617
,log_title = "日志详情"
,req_desc = "日志详情"
,req = [
{uint8, type, "类型 1:个人 2:大神 3:录像馆"}
,{uint32, id, "日志ID"}
]
,reply_desc = "精英赛个人日志"
,reply = [
{uint8, type, "类型 1:个人 2:大神 3:录像馆"}
,{uint32, id, "日志ID"}
,{array, tuple, arena_replay_infos, "录像基础数据信息", [
{uint8, order, order, "回合数"}
,{rec, arena_cluster_replay, arena_cluster_replay, [
{uint32, id, id, "录像ID"}
,{uint8, round, round, "回合数"}
,{uint8, ret, ret, "结果 1:胜利 2:失败"}
,{uint32, time, time, "时间"}
,{tuple, a_id, [
{uint32, rid, "id"}
,{string, srv_id, "服务器ID"}
]}
,{uint32, a_power, a_power, "A方战力"}
,{uint32, a_formation_type, a_formation_type, "A方阵法类型"}
,{uint8, a_order, a_order, "A队伍编号"}
,{uint8, a_end_hp, a_end_hp, "A队伍剩余血量百分比"}
,{tuple, b_id, [
{uint32, b_rid, "id"}
,{string, b_srv_id, "服务器ID"}
]}
,{uint32, b_power, b_power, "B方战力"}
,{uint32, b_formation_type, b_formation_type, "B方阵法类型"}
,{uint8, b_order, b_order, "A队伍编号"}
,{uint8, b_end_hp, b_end_hp, "A队伍剩余血量百分比"}
,{array, arena_cluster_replay_partner, a_plist, "A方伙伴", [
{uint8, pos, pos, "位置"}
,{uint32, bid, bid, "BID"}
,{uint16, lev, lev, "等级"}
,{uint8, star, star, "星级"}
,{array, tuple, ext, "附件参数", [
{uint32, key, "键(5:皮肤id(11:共鸣前等级)"}
,{uint32, val, ""}
]}
]}
,{array, arena_cluster_replay_partner, b_plist, "B方伙伴", [
{uint8, pos, pos, "位置"}
,{uint32, bid, bid, "BID"}
,{uint16, lev, lev, "等级"}
,{uint8, star, star, "星级"}
,{array, tuple, ext, "附件参数", [
{uint32, key, "键(5:皮肤id(11:共鸣前等级)"}
,{uint32, val, ""}
]}
]}
]}
,{array, tuple, hurt_statistics, "伤害统计", [
{uint8, type, "1:进攻方 2:被攻击方"}
,{array, partner_hurt, partner_hurts, "伤害统计", [
{tuple, master_id, [
{uint32, rid, "拥有者ID"}
,{string, srvid, "拥有者服务器id"}
]}
,{uint32, id, id, "英雄bid"}
,{uint32, bid, bid, "英雄bid"}
,{uint32, star, star, "星级"}
,{uint32, lev, lev, "等级"}
,{uint32, camp_type, camp_type, "英雄阵营"}
,{uint32, dps, dps, "英雄伤害"}
,{uint32, cure, cure, "英雄治疗量"}
,{array, tuple, ext_data, "额外参数", [
{uint32, key, "键(5:皮肤id(11:共鸣前等级)"}
,{uint32, val, ""}
]}
,{uint32, be_hurt, be_hurt, "英雄承受伤害"}
]}
]}
,{uint16, a_sprite_lev, "精灵等级"}
,{array, tuple, a_sprites, "布置的精灵", [
{uint8, pos, "位置"}
,{uint32, item_bid, "精灵bid(0:未布置)"}
]}
,{uint16, b_sprite_lev, "精灵等级"}
,{array, tuple, b_sprites, "布置的精灵", [
{uint8, pos, "位置"}
,{uint32, item_bid, "精灵bid(0:未布置)"}
]}
]}
]
}
,#rpc{
code = 25618
,log_title = "红点情况"
,req_desc = "红点情况"
,req = [
]
,reply = [
{uint8, worship_code, "点赞标志(0:关闭 1:开启)"}
,{uint8, reward_code, "每日宝箱红点标志(0:关闭 1:开启)"}
,{uint8, combat_code, "被挑战标志(0:关闭 1:开启)"}
]
}
].