血战到底的协议预定义

master_huanxiang
王永芳 2019-06-13 12:36:40 +08:00
parent c80e81288e
commit 3e43c06dae
1 changed files with 91 additions and 0 deletions

View File

@ -0,0 +1,91 @@
package com.ljsd.jieling.protocols;
option optimize_for = SPEED;
import "CommonProto.proto";
//
//
message RoomMatchRequest{
//使
optional int64 clientTimestamp = 1;
}
//
message RoomMatchResponse{
optional int64 clientTimestamp = 1; //
optional int64 serverTimestamp = 1; //
}
//退
//退
message RoomCancelMatchRequest{
}
message RoomCancelMatchResponse{
optional bool result; //true false
}
message MatchSuccessIndication{
optional int32 roomId;
//
repeated Cell mapList = 1;
//
optional int32 curXY = 2;
//
repeated HeroInfo heroInfos = 3;
//
optional int32 leftTime = 4;
//
optional Drop temporaryItems = 5;
// buff
repeated FoodBuffer foodBuffers = 6;
//
repeated int32 wakeCells = 7;
//
optional Mission missions = 8;
//
optional int32 reviveTime = 9;
//
optional int32 dieCount = 10;
}
//
message StartGameReadyRequest{
//使
optional int64 clientTimestamp = 1;
}
//
message StartGameReadyResponse{
optional int64 clientTimestamp = 1; //
optional int64 serverTimestamp = 1; //
}
message StartGameIndication{
optional int32 roomId;
}
message SyncMyselfMoveRequest{
optional int64 clientTimestamp = 1; //
optional int32 tartX;
optional int32 tartY;
}
message SyncMyselfMoveResponse{
optional int64 clientTimestamp = 1; //
optional int64 serverTimestamp = 1; //
}
message SyncOtherMoveIndication{
optional int32 tartX;
optional int32 tartY;
}
message SyncOtherMoveIndication{
//ID
optional int32 player1Uid;
optional int32 player2Uid;
optional int32 successUid; //-1
//
optional int32 player1X;
optional int32 player1Y;
optional int32 player2X;
optional int32 player2Y;
}