2019-01-04 15:08:41 +08:00
|
|
|
|
package com.ljsd.jieling.protocols;
|
|
|
|
|
|
|
|
|
|
option optimize_for = SPEED;
|
|
|
|
|
|
|
|
|
|
import "CommonProto.proto";
|
2019-01-07 20:03:29 +08:00
|
|
|
|
// 进入地图
|
|
|
|
|
message MapEnterRequest{
|
|
|
|
|
// 需要进入的地图id
|
|
|
|
|
optional int32 mapId = 1;
|
2019-01-21 17:51:57 +08:00
|
|
|
|
// 所用英雄
|
|
|
|
|
repeated HeroInfo heroInfos = 2;
|
2019-01-07 20:03:29 +08:00
|
|
|
|
}
|
|
|
|
|
message MapEnterResponse{
|
|
|
|
|
// 地图信息
|
2019-01-18 17:05:34 +08:00
|
|
|
|
repeated Cell mapList = 1;
|
2019-01-07 20:03:29 +08:00
|
|
|
|
// 当前所在坐标
|
|
|
|
|
optional int32 curXY = 2;
|
2019-01-21 17:51:57 +08:00
|
|
|
|
// 所用英雄
|
|
|
|
|
repeated HeroInfo heroInfos = 3;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message HeroInfo {
|
|
|
|
|
optional string heroId = 1;
|
|
|
|
|
optional int32 heroHp = 2;
|
2019-01-04 15:08:41 +08:00
|
|
|
|
}
|
|
|
|
|
|
2019-01-21 17:51:57 +08:00
|
|
|
|
// 更新事件
|
2019-01-26 12:49:43 +08:00
|
|
|
|
message EventUpdateRequest{
|
2019-01-26 14:37:18 +08:00
|
|
|
|
// eventPointConfig id
|
|
|
|
|
optional int32 eventId = 1;
|
2019-01-26 12:49:43 +08:00
|
|
|
|
// optionConfig Id
|
2019-01-26 14:37:18 +08:00
|
|
|
|
optional int32 optionId = 2;
|
2019-01-26 12:49:43 +08:00
|
|
|
|
}
|
|
|
|
|
message EventUpdateResponse{
|
|
|
|
|
// eventPointConfig id
|
|
|
|
|
optional int32 eventId = 1;
|
|
|
|
|
|
|
|
|
|
optional EventBehaviorCommon EventBehaviorCommon = 2;
|
2019-01-28 17:29:47 +08:00
|
|
|
|
// 奖励
|
|
|
|
|
optional Drop drop = 3;
|
2019-02-19 20:49:44 +08:00
|
|
|
|
// 开启主线任务
|
|
|
|
|
optional Mission mission = 4;
|
2019-01-26 12:49:43 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 更新地图状态
|
2019-01-26 13:08:02 +08:00
|
|
|
|
message MapUpdateRequest{
|
2019-01-21 17:51:57 +08:00
|
|
|
|
// 走过的格子
|
|
|
|
|
repeated int32 cells = 1;
|
|
|
|
|
// 当前所在坐标
|
|
|
|
|
optional int32 curXY = 2;
|
|
|
|
|
}
|
|
|
|
|
|
2019-01-26 12:49:43 +08:00
|
|
|
|
|
2019-01-21 17:51:57 +08:00
|
|
|
|
// 战斗事件结算
|
|
|
|
|
message FightEndRequest {
|
|
|
|
|
// 所用英雄(保存血量)
|
|
|
|
|
repeated HeroInfo heroInfos = 1;
|
|
|
|
|
}
|
|
|
|
|
message FightEndResponse {
|
|
|
|
|
// 获得的道具
|
|
|
|
|
repeated Item Items = 1;
|
|
|
|
|
// 大事件id
|
|
|
|
|
optional int32 bigEventId = 2;
|
|
|
|
|
// 事件进度,从0开始 -1表示该事件已完成
|
|
|
|
|
optional int32 eventSchedule = 3;
|
|
|
|
|
}
|
2019-01-26 16:54:33 +08:00
|
|
|
|
|
|
|
|
|
// 出地图
|
|
|
|
|
message MapOutRequest{
|
|
|
|
|
// 走过的格子
|
|
|
|
|
repeated int32 cells = 1;
|
|
|
|
|
// 当前所在坐标
|
|
|
|
|
optional int32 curXY = 2;
|
|
|
|
|
}
|