miduo_protocol/protos/FightInfoProto.proto

237 lines
6.3 KiB
Protocol Buffer
Raw Normal View History

2019-01-24 16:31:46 +08:00
package com.ljsd.jieling.protocols;
option optimize_for = SPEED;
import "CommonProto.proto";
// request 编号需要小于 response 编号
2019-03-02 18:21:48 +08:00
// 战斗开始
message FightStartRequest {
2019-02-26 19:43:40 +08:00
// 战斗类型(手动,自动)
optional int32 fightType = 1;
2019-08-16 10:02:49 +08:00
optional int32 type = 2; // 类型 1: 关卡 2地图 3精英怪 4:爬塔副本 5 :妖兽
2019-04-11 17:25:57 +08:00
optional int32 fightId = 3;
2019-06-27 00:14:40 +08:00
optional int32 teamId = 4; //队伍id
2019-02-26 19:43:40 +08:00
}
2019-03-02 18:21:48 +08:00
message FightStartResponse {
2019-03-20 15:55:10 +08:00
// 战斗属性
optional FightData fightData = 1;
2019-02-26 19:43:40 +08:00
}
2019-03-20 14:52:03 +08:00
2019-03-02 18:21:48 +08:00
// 战斗结束
message FightEndRequest {
2019-03-19 15:55:25 +08:00
// 怪物组id接战斗验证后可删除
optional int32 monsterGroupId = 1;
2019-03-20 14:52:03 +08:00
// 战斗序列帧 14#1#0|14#1#0|14#1#0|...|14#1#0
optional string frames = 2;
2019-04-11 20:37:22 +08:00
optional int32 fightId = 3;
2019-09-24 14:00:15 +08:00
optional int32 type = 4; // 类型 1: 关卡 2地图 3精英怪 4:爬塔副本 5妖兽 6 新关卡
2020-05-29 14:11:12 +08:00
optional int32 dropout = 5 ;// 是否退出 1 :退出
2019-02-26 19:43:40 +08:00
}
2019-09-24 15:08:44 +08:00
message UpdateUserExpIndicaiton{
optional int32 level = 1 ;// 玩家等级
optional int32 exp =2 ; // 玩家经验
}
2019-03-02 18:21:48 +08:00
message FightEndResponse {
2019-03-22 18:29:43 +08:00
//战斗结果
optional int32 result = 1;
2019-04-18 15:20:16 +08:00
// 事件获得的道具
2020-01-07 17:19:04 +08:00
optional Drop enventDrop = 2; //工会boss代表基础掉落
2019-04-18 15:20:16 +08:00
// 任务获得的道具
2020-01-07 17:19:04 +08:00
optional Drop missionDrop = 3; // 工会boss代表随机掉落
2019-04-18 15:20:16 +08:00
//英雄剩余血量
2019-07-03 14:51:17 +08:00
repeated int32 remainHpList = 4;
2019-04-18 15:20:16 +08:00
// 更新主线任务
optional Mission mission = 5;
// 探索地图剩余时间(秒)
optional int32 leftTime = 6;
// eventPointConfig id
optional int32 eventId = 7;
2019-07-01 19:28:03 +08:00
// 试炼时间(最后一层专用)
optional int32 lastTowerTime = 8;
2019-07-03 14:51:17 +08:00
// 试炼精气
2020-01-07 17:19:04 +08:00
optional int32 essenceValue = 9; // 工会boss代表伤害值 试炼副本代表精气值
2019-08-06 20:08:13 +08:00
optional int32 lastXY =10; //失败回退到上一步的位置坐标
2019-09-24 14:00:15 +08:00
optional UpdateUserExpIndicaiton UpdateUserExpIndicaiton = 11;//经验
2019-04-18 15:20:16 +08:00
}
2019-04-17 23:09:45 +08:00
2019-04-18 15:20:16 +08:00
// 快速战斗
message FastFightResponse {
//战斗结果
optional int32 result = 1;
// 事件获得的道具
optional Drop enventDrop = 2;
// 任务获得的道具
2019-04-17 23:09:45 +08:00
optional Drop missionDrop = 3;
2019-03-21 14:31:24 +08:00
//英雄剩余血量
2019-04-17 23:09:45 +08:00
repeated int32 remainHpList = 4;
2019-03-27 18:54:11 +08:00
// 更新主线任务
2019-04-17 23:09:45 +08:00
optional Mission mission = 5;
2019-04-12 13:49:17 +08:00
// 探索地图剩余时间(秒)
2019-04-17 23:09:45 +08:00
optional int32 leftTime = 6;
2019-06-26 17:26:27 +08:00
// 试炼精气
optional int32 essenceValue = 7;
2019-08-06 20:08:13 +08:00
optional int32 lastXY =8; //失败回退到上一步的位置坐标
2019-08-07 14:47:10 +08:00
optional int32 testXY = 9; // 测试数据
2020-05-29 11:26:42 +08:00
optional FightData fightData = 10;//战斗数据
2020-06-01 09:58:35 +08:00
optional Cell cell = 11;//试炼副本添加传送门
2020-05-29 11:26:42 +08:00
2019-03-02 18:21:48 +08:00
}
2019-04-18 15:20:16 +08:00
2019-04-11 17:25:57 +08:00
// 扫荡开始
message SweepRightRequest {
optional int32 type = 1; //1 :关卡
optional int32 fightId = 2;
optional int32 num = 3; //扫荡次数
2019-07-02 13:01:05 +08:00
optional int32 targetItemId =4 ;//目标物品
optional int32 targetItemNum=5;// 获取奖励
2019-04-11 17:25:57 +08:00
}
message SweepRightResponse {
// 获得的道具
2020-01-09 16:05:19 +08:00
optional Drop Drop = 1; // 基础奖励
optional Drop randomDrop =2 ; // 随机奖励
optional ItemInfo ItemInfo =3;
optional int32 hurt = 4;
optional FightData fightData=5 ; //战斗数据
2019-04-11 17:25:57 +08:00
}
2019-05-13 12:07:20 +08:00
message FightRePlayRequest{
optional int32 type =1; // 类型 1 竞技场
optional string fightId =2; // fight 动态Id
}
message FightRePlayResponse{
optional FightData fightData =1;
}
2019-04-11 17:25:57 +08:00
2019-05-16 14:36:57 +08:00
message TakeAventureRewardRequest{
optional int32 type =1; //1花费材料快速领取 2普通领取
optional int32 position = 2; // 驻扎区域编号 -1标示一键领取
}
message TakeAventureRewardResponse{
2019-05-20 14:50:16 +08:00
optional Drop Drop = 1; //基础奖励
optional Drop randomDrop =2; // 随机奖励
2019-05-16 14:36:57 +08:00
}
message AdventureUpLevelRequest{
optional int32 arenaId =1; // 区域id
}
message AdventurnChallengeRequest{
optional int32 arenaId =1; // 区域id
optional int32 teamId =2 ; // 队伍id
optional int32 skipFight =3; //是否跳过战斗
}
message AdventurnChallengeResponse{
optional int32 fightResult =1; // 战斗结果。
optional FightData fightData =2 ;// 战斗数据
}
2019-05-16 16:33:33 +08:00
message AdventureBossInfoResponse{
2019-05-16 19:22:49 +08:00
repeated AdventureBossInfo adventureBossInfo=1;
2019-05-16 16:33:33 +08:00
}
2019-05-16 14:36:57 +08:00
message AdventurenBossChallengeRequest{
optional string bossId =1; //出现区域boss
optional int32 teamId =2; // 进攻队伍id
optional int32 fightTimes =3;// 进攻次数
optional int32 skipFight =4 ;// 是否跳过战斗 1:跳过 0不跳过
}
message AdventurenBossChallengeResponse{
optional int32 hurtNums =1; // 打boss血量
optional FightData fightData =2;
2019-05-16 20:33:55 +08:00
optional int32 fightResult = 3;// 是否被击杀 1击杀 0未击杀
optional int32 consumeFightTimes = 4; //本次消耗次数
2019-07-03 14:20:40 +08:00
optional string killRewards = 5 ; //击杀奖励
2019-07-08 12:06:49 +08:00
optional int32 bossTotalHp = 6; //boss 总血量
optional int32 bossRemainHp = 7 ;// boss 剩余血量
2019-05-16 14:36:57 +08:00
}
2019-08-17 10:51:03 +08:00
message AdventureBossKillIndication{
optional int32 pos = 1; //层数
optional string bossId=2;// bossId
}
2019-05-16 14:36:57 +08:00
message AdventureBossShareRequest{
optional string bossId =1 ; // 分享的bossId
}
message AdventurnRankRequest{
optional int32 page =1; //请求排行榜的页数
}
message AdventurnRankResponse{
repeated AdventureRankItemInfo adventureRankItemInfo =1;
optional AdventureRankItemInfo myInfo =2;
}
2019-05-16 20:18:34 +08:00
message AdventureBossFindIndication{
2019-10-21 18:35:56 +08:00
optional AdventureBossInfo adventureBossInfo =1;
2019-05-16 20:18:34 +08:00
}
2019-07-04 22:05:13 +08:00
message AdventureLeftRequest{
optional int32 type =1; // 0 离开1进入
}
2019-08-17 10:51:03 +08:00
message AdventureCallBossResponse{
2019-10-21 18:35:56 +08:00
optional AdventureBossInfo adventureBossInfo =1;
2019-08-17 10:51:03 +08:00
}
2019-10-08 14:56:48 +08:00
message QuickStartMonsterFightRequest{
optional int32 fightId = 1;
optional int32 teamId = 2; //队伍id
}
message QuickStartMonsterFightResponse{
//战斗结果
optional int32 result = 1;
// 事件获得的道具
optional Drop enventDrop = 2;
2019-11-11 14:25:25 +08:00
optional FightData fightData =3;
2019-10-08 14:56:48 +08:00
}
2019-10-08 11:23:33 +08:00
message MainLevelRankInfoResponse{
repeated MainLevelRankInfo MainLevelRankInfo = 1;
optional MainLevelRankInfo myMainLevelRankInfo =2;
}
2019-10-27 15:30:19 +08:00
message MainLevelFightUpdateIndication{
optional int32 fightId = 1;//关卡id
optional int32 state =2;// 状态
}
2020-05-07 14:38:07 +08:00
message FastFightChallengeRequest{
optional int32 type = 1 ; //类型 1车迟斗法挑战boss 2车迟斗法抢夺
optional int32 challeageId = 2 ; //挑战id
}
message FastFightChallengeResponse{
optional int32 score = 1; //获取积分信息
optional int32 hurt = 2 ;// 伤害值
2020-05-08 10:53:31 +08:00
optional FightData fightData = 3;
2020-05-07 14:38:07 +08:00
}
2019-10-27 15:30:19 +08:00
2019-05-16 14:36:57 +08:00
2019-03-02 18:21:48 +08:00