整理血战协议及消息ID

master_huanxiang
王永芳 2019-06-13 17:28:11 +08:00
parent be8e68a55b
commit 12cd1b5a1a
3 changed files with 35 additions and 8 deletions

View File

@ -244,6 +244,28 @@ enum MessageType{
REFRESH_FRIEND_STATE_REQEUST= 11710; //线
REFRESH_FRIEND_STATE_RESPONSE = 11711;
ROOM_MATCH_REQUEST = 11712; //
ROOM_MATCH_RESPONSE = 11713;
ROOM_CANCEL_MATCH_REQUEST = 11714; //
ROOM_CANCEL_MATCH_RESPONSE = 11715;
ROOM_START_GAME_READY_REQUEST = 11716; //
ROOM_START_GAME_READY_RESPONSE = 11717;
ROOM_START_GAME_INDICATION = 11718; //
ROOM_GAME_START_REQUEST = 11720; //
ROOM_GAME_START_RESPONSE = 11721;
ROOM_SYNC_MYSELF_MOVE_REQUEST = 11722; //
ROOM_SYNC_MYSELF_MOVE_RESPONSE = 11723;
ROOM_SYNC_OTHER_MOVE_INDICTION = 11724; //
ROOM_TRIGGER_FIGHT_INDICATION = 11726; //
// S 11800
SUCCESS_RESPONSE = 11800; //

View File

@ -14,11 +14,11 @@ import "CommonProto.proto";
repeated int32 dieList = 8; // (uid)
repeated int32 killList = 9; // (uid)
}
message GameStartRequest{
message RoomGameStartRequest{
//使
optional int64 clientTimestamp = 1;
}
message GameStartResponse{
message RoomGameStartResponse{
optional int64 clientTimestamp = 1; //
optional int64 serverTimestamp = 2; //
optional int32 mapId =3;
@ -34,16 +34,21 @@ import "CommonProto.proto";
optional Drop temporaryItems = 8;
}
message SyncMyselfMoveRequest{
message RoomSyncMyselfMoveRequest{
optional int64 clientTimestamp = 1; //
optional int32 tartXY = 2;
}
message SyncMyselfMoveResponse{
message RoomSyncMyselfMoveResponse{
optional int64 clientTimestamp = 1; //
optional int64 serverTimestamp = 2; //
}
message SyncOtherFightIndication{
message RoomSyncOtherMoveIndiction{
optional int32 uid = 1;
optional int32 tartXY = 2;
}
message RoomTriggerFightIndication{
//ID
optional AgentInfo player1 = 1;
optional AgentInfo player2 = 2;

View File

@ -27,15 +27,15 @@ import "CommonProto.proto";
}
//
message StartGameReadyRequest{
message RoomStartGameReadyRequest{
optional int32 type = 1; //type 1
}
//
message StartGameReadyResponse{
message RoomStartGameReadyResponse{
optional int32 type = 1; //type 1
}
message StartGameIndication{
message RoomStartGameIndication{
optional int32 roomId = 1;
optional int32 type = 2; //type 1
}