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-04-11 17:25:57 +08:00
|
|
|
|
optional int32 type = 2; // 类型 1: 关卡
|
|
|
|
|
optional int32 fightId = 3;
|
2019-06-27 00:14:40 +08:00
|
|
|
|
optional int32 teamId = 4; //队伍id
|
2019-04-11 17:25:57 +08:00
|
|
|
|
|
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;
|
|
|
|
|
optional int32 type = 4; // 类型 1: 关卡
|
2019-02-26 19:43:40 +08:00
|
|
|
|
}
|
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
|
|
|
|
// 事件获得的道具
|
2019-04-17 23:09:45 +08:00
|
|
|
|
optional Drop enventDrop = 2;
|
2019-04-18 15:20:16 +08:00
|
|
|
|
// 任务获得的道具
|
|
|
|
|
optional Drop missionDrop = 3;
|
|
|
|
|
//英雄剩余血量
|
|
|
|
|
repeated int32 remainHpList = 4;
|
|
|
|
|
// 更新主线任务
|
|
|
|
|
optional Mission mission = 5;
|
|
|
|
|
// 探索地图剩余时间(秒)
|
|
|
|
|
optional int32 leftTime = 6;
|
2019-04-29 15:10:25 +08:00
|
|
|
|
// eventPointConfig id
|
|
|
|
|
optional int32 eventId = 7;
|
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-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; //扫荡次数
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
message SweepRightResponse {
|
|
|
|
|
// 获得的道具
|
2019-04-15 13:44:06 +08:00
|
|
|
|
repeated Drop Drop = 1;
|
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 GetAdventureStateInfoResponse{
|
|
|
|
|
repeated AdventureStateInfo adventureStateInfoList = 1;
|
|
|
|
|
optional int32 buyTimsPerDay =2 ; // 每日已消耗材料快速领取挂机奖励次数
|
|
|
|
|
optional int32 dayChallengeTimes =3 ;// 每日已消耗挑战次数
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
message TakeAventureRewardRequest{
|
|
|
|
|
optional int32 type =1; //1:花费材料快速领取 2:普通领取
|
|
|
|
|
optional int32 position = 2; // 驻扎区域编号 -1标示一键领取
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message TakeAventureRewardResponse{
|
|
|
|
|
optional Drop Drop = 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 ;// 战斗数据
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message AdventureBossShareRequest{
|
|
|
|
|
optional string bossId =1 ; // 分享的bossId
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message AdventurnRankRequest{
|
|
|
|
|
optional int32 page =1; //请求排行榜的页数
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message AdventurnRankResponse{
|
|
|
|
|
repeated AdventureRankItemInfo adventureRankItemInfo =1;
|
|
|
|
|
optional AdventureRankItemInfo myInfo =2;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2019-03-02 18:21:48 +08:00
|
|
|
|
|