在匹配成功创建房间后,发送地图信息

master_huanxiang
王永芳 2019-06-14 18:48:13 +08:00
parent db35c69068
commit d1a6e38869
2 changed files with 25 additions and 24 deletions

View File

@ -3,35 +3,17 @@ package com.ljsd.jieling.protocols;
option optimize_for = SPEED;
import "CommonProto.proto";
message AgentInfo {
optional int32 playerUid = 1;
optional int32 curHp = 2;
optional int32 maxHp =3;
optional int32 camp =4; //
optional int32 curXY =5; //
repeated FoodBuffer foodBuffers = 6; // buff
optional int32 reviveTime = 7; //
repeated int32 dieList = 8; // (uid)
repeated int32 killList = 9; // (uid)
}
message RoomGameStartRequest{
//使
optional int64 clientTimestamp = 1;
}
message RoomGameStartResponse{
optional int64 clientTimestamp = 1; //
optional int64 serverTimestamp = 2; //
optional int32 mapId =3;
//
repeated Cell mapList = 4;
//
optional AgentInfo agentInfo = 5;
//
repeated AgentInfo otherAgentInfos = 6;
optional int64 serverTimestamp = 2; //
//
optional int32 leftTime = 7;
//
optional Drop temporaryItems = 8;
optional int32 leftTime = 3;
}
message RoomGameEndIndication{
@ -55,8 +37,8 @@ import "CommonProto.proto";
message RoomTriggerFightIndication{
//ID
optional AgentInfo player1 = 1;
optional AgentInfo player2 = 2;
optional int32 player1 = 1;
optional int32 player2 = 2;
optional int32 result = 3; //1 player1 2 player2
}

View File

@ -3,6 +3,18 @@ package com.ljsd.jieling.protocols;
option optimize_for = SPEED;
import "CommonProto.proto";
message AgentInfo {
optional int32 playerUid = 1;
optional int32 curHp = 2;
optional int32 maxHp =3;
optional int32 camp =4; //
optional int32 curXY =5; //
repeated FoodBuffer foodBuffers = 6; // buff
optional int32 reviveTime = 7; //
repeated int32 dieList = 8; // (uid)
repeated int32 killList = 9; // (uid)
}
//
//
@ -29,6 +41,13 @@ import "CommonProto.proto";
message RoomMatchSuccessIndication{
optional int32 roomId = 1;
optional int32 type = 2; //type 1
optional int32 mapId =3;
//
repeated Cell mapList = 4;
//
repeated AgentInfo agentInfos = 5; //playerUid
//
optional Drop temporaryItems = 6;
}
//