From db35c6906870995b10ca5ebe7b017e8ca668d556 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=B0=B8=E8=8A=B3?= Date: Fri, 14 Jun 2019 13:38:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E7=8E=B0=E8=A1=80=E6=88=98=E5=88=B0?= =?UTF-8?q?=E5=BA=95=E6=9C=8D=E5=8A=A1=E5=99=A8=E7=AB=AF=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E4=BF=AE=E6=94=B9=E5=8D=8F=E8=AE=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protos/MessageTypeProto.proto | 2 +- protos/RoomFightProto.proto | 7 +++++-- protos/RoomProto.proto | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) 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血战 }