miduo_protocol/protos/MapInfoProto.proto

68 lines
1.4 KiB
Protocol Buffer

package com.ljsd.jieling.protocols;
option optimize_for = SPEED;
import "CommonProto.proto";
message HeroInfo {
optional string heroId = 1;
optional int32 heroHp = 2;
}
// 进入地图
message MapEnterRequest{
// 需要进入的地图id
optional int32 mapId = 1;
// 所用英雄编队
optional int32 teamId = 2;
}
message MapEnterResponse{
// 地图信息
repeated Cell mapList = 1;
// 当前所在坐标
optional int32 curXY = 2;
// 所用英雄
repeated HeroInfo heroInfos = 3;
}
// 更新事件
message EventUpdateRequest{
// eventPointConfig id
optional int32 eventId = 1;
// optionConfig Id
optional int32 optionId = 2;
}
message EventUpdateResponse{
// eventPointConfig id
optional int32 eventId = 1;
optional EventBehaviorCommon EventBehaviorCommon = 2;
// 奖励
optional Drop drop = 3;
// 更新主线任务
repeated Mission mission = 4;
// 战斗属性
repeated HeroFightInfo heroFightInfos = 5;
// 怪物属性
repeated Monster monsterList = 6;
}
// 更新地图状态
message MapUpdateRequest{
// 走过的格子
repeated int32 cells = 1;
// 当前所在坐标
optional int32 curXY = 2;
}
message MapUpdateResponse{
optional int32 eventId = 1;
}
// 出地图
message MapOutRequest{
// 走过的格子
repeated int32 cells = 1;
// 当前所在坐标
optional int32 curXY = 2;
}