diff --git a/protos/MessageTypeProto.proto b/protos/MessageTypeProto.proto index e19fc60..f8d7439 100644 --- a/protos/MessageTypeProto.proto +++ b/protos/MessageTypeProto.proto @@ -262,7 +262,7 @@ enum MessageType{ ROOM_GAME_START_REQUEST = 11722; //开始游戏 ROOM_GAME_START_RESPONSE = 11723; - ROOMGAME_END_INDICATION = 11724; //游戏结束 + ROOM_GAME_END_INDICATION = 11724; //游戏结束 ROOM_SYNC_MYSELF_MOVE_REQUEST = 11726; //移动同步 ROOM_SYNC_MYSELF_MOVE_RESPONSE = 11727; diff --git a/protos/RoomFightProto.proto b/protos/RoomFightProto.proto index 9796cf2..978b3f8 100644 --- a/protos/RoomFightProto.proto +++ b/protos/RoomFightProto.proto @@ -33,12 +33,14 @@ import "CommonProto.proto"; // 临时背包 optional Drop temporaryItems = 8; } + message RoomGameEndIndication{ + optional int32 roomId = 1; } message RoomSyncMyselfMoveRequest{ optional int64 clientTimestamp = 1; //请求中的时间戳,原值返回 - optional int32 tartXY = 2; + repeated int32 tartXYs = 2; //向目标点移动时,最终的寻路格子坐标 } message RoomSyncMyselfMoveResponse{ optional int64 clientTimestamp = 1; //请求中的时间戳,原值返回 @@ -47,7 +49,8 @@ import "CommonProto.proto"; message RoomSyncOtherMoveIndiction{ optional int32 uid = 1; - optional int32 tartXY = 2; + //先同步给其他客户端,是客户端模拟走路还是服务器端模拟,依据测试结果确定 + repeated int32 tartXYs = 2; } message RoomTriggerFightIndication{ diff --git a/protos/RoomProto.proto b/protos/RoomProto.proto index cadca54..b2ab938 100644 --- a/protos/RoomProto.proto +++ b/protos/RoomProto.proto @@ -35,7 +35,7 @@ import "CommonProto.proto"; message RoomStartGameReadyRequest{ optional int32 type = 1; //type 匹配游戏类型 1血战 } - //匹配应答 + //开始游戏应答 message RoomStartGameReadyResponse{ optional int32 type = 1; //type 匹配游戏类型 1血战 }