2019-01-24 16:31:46 +08:00
|
|
|
|
package com.ljsd.jieling.protocols;
|
|
|
|
|
|
|
|
|
|
option optimize_for = SPEED;
|
|
|
|
|
|
|
|
|
|
import "CommonProto.proto";
|
|
|
|
|
|
|
|
|
|
// request 编号需要小于 response 编号
|
|
|
|
|
|
|
|
|
|
message GetAdventureStateInfoResponse{
|
|
|
|
|
repeated AdventureStateInfo adventureStateInfoList = 1;
|
2019-03-21 18:33:42 +08:00
|
|
|
|
repeated AdventureRecommendHeroInfo adventureRecommendHeroInfo = 2; //推荐英雄
|
2019-01-25 12:05:45 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 冒险驻扎
|
|
|
|
|
message AventureStationRequest{
|
|
|
|
|
optional int32 position = 1; // 驻扎区域编号
|
|
|
|
|
optional int32 hourDuration =2 ; //驻扎时长
|
|
|
|
|
repeated string heroIdList =3; // 上阵英雄id
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message TakeAventureRewardRequest{
|
|
|
|
|
optional int32 position = 1; // 驻扎区域编号
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message TakeAventureRewardResponse{
|
|
|
|
|
optional Drop Drop = 1;
|
|
|
|
|
}
|
|
|
|
|
|
2019-02-26 19:43:40 +08:00
|
|
|
|
|
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-03-02 18:21:48 +08:00
|
|
|
|
// 获得的道具
|
2019-03-22 18:29:43 +08:00
|
|
|
|
optional Drop Drop = 2;
|
2019-03-21 14:31:24 +08:00
|
|
|
|
//英雄剩余血量
|
2019-03-22 18:29:43 +08:00
|
|
|
|
repeated int32 remainHpList = 3;
|
2019-03-27 18:54:11 +08:00
|
|
|
|
// 更新主线任务
|
2019-04-12 19:37:32 +08:00
|
|
|
|
optional Mission mission = 4;
|
2019-04-12 13:49:17 +08:00
|
|
|
|
// 探索地图剩余时间(秒)
|
|
|
|
|
optional int32 leftTime = 5;
|
2019-03-02 18:21:48 +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-03-02 18:21:48 +08:00
|
|
|
|
|