miduo_protocol/protos/MapInfoProto.proto

61 lines
1.2 KiB
Protocol Buffer
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

package com.ljsd.jieling.protocols;
option optimize_for = SPEED;
import "CommonProto.proto";
// 进入地图
message MapEnterRequest{
// 需要进入的地图id
optional int32 mapId = 1;
// 所用英雄
repeated HeroInfo heroInfos = 2;
}
message MapEnterResponse{
// 地图信息
repeated Cell mapList = 1;
// 当前所在坐标
optional int32 curXY = 2;
// 所用英雄
repeated HeroInfo heroInfos = 3;
}
message HeroInfo {
optional string heroId = 1;
optional int32 heroHp = 2;
}
// 更新事件
message EventUpdateRequest{
// optionConfig Id
optional int32 optionId = 1;
}
message EventUpdateResponse{
// eventPointConfig id
optional int32 eventId = 1;
optional EventBehaviorCommon EventBehaviorCommon = 2;
}
// 更新地图状态
message MapUpdateEventRequest{
// 走过的格子
repeated int32 cells = 1;
// 当前所在坐标
optional int32 curXY = 2;
}
// 战斗事件结算
message FightEndRequest {
// 所用英雄(保存血量)
repeated HeroInfo heroInfos = 1;
}
message FightEndResponse {
// 获得的道具
repeated Item Items = 1;
// 大事件id
optional int32 bigEventId = 2;
// 事件进度从0开始 -1表示该事件已完成
optional int32 eventSchedule = 3;
}