2019-06-13 14:52:12 +08:00
|
|
|
package com.ljsd.jieling.protocols;
|
|
|
|
|
|
|
|
option optimize_for = SPEED;
|
|
|
|
|
|
|
|
import "CommonProto.proto";
|
2019-06-14 18:48:13 +08:00
|
|
|
|
2019-06-13 17:28:11 +08:00
|
|
|
message RoomGameStartRequest{
|
2019-06-13 14:52:12 +08:00
|
|
|
//时间戳,用户客户端修正因网络延时引起的误差,是否使用由实现机制决定,暂时保留
|
|
|
|
optional int64 clientTimestamp = 1;
|
|
|
|
}
|
2019-06-13 17:28:11 +08:00
|
|
|
message RoomGameStartResponse{
|
2019-06-13 14:52:12 +08:00
|
|
|
optional int64 clientTimestamp = 1; //请求中的时间戳,原值返回
|
2019-06-14 18:48:13 +08:00
|
|
|
optional int64 serverTimestamp = 2; //服务器端时间戳
|
|
|
|
|
2019-06-13 14:52:12 +08:00
|
|
|
// 探索地图剩余时间(秒)
|
2019-06-14 18:48:13 +08:00
|
|
|
optional int32 leftTime = 3;
|
2019-06-14 10:00:04 +08:00
|
|
|
}
|
2019-06-14 13:38:03 +08:00
|
|
|
|
2019-06-14 10:00:04 +08:00
|
|
|
message RoomGameEndIndication{
|
2019-06-14 13:38:03 +08:00
|
|
|
optional int32 roomId = 1;
|
2019-06-14 10:00:04 +08:00
|
|
|
|
2019-06-13 14:52:12 +08:00
|
|
|
}
|
2019-06-13 17:28:11 +08:00
|
|
|
message RoomSyncMyselfMoveRequest{
|
2019-06-13 14:52:12 +08:00
|
|
|
optional int64 clientTimestamp = 1; //请求中的时间戳,原值返回
|
2019-06-14 13:38:03 +08:00
|
|
|
repeated int32 tartXYs = 2; //向目标点移动时,最终的寻路格子坐标
|
2019-06-13 14:52:12 +08:00
|
|
|
}
|
2019-06-13 17:28:11 +08:00
|
|
|
message RoomSyncMyselfMoveResponse{
|
2019-06-13 14:52:12 +08:00
|
|
|
optional int64 clientTimestamp = 1; //请求中的时间戳,原值返回
|
|
|
|
optional int64 serverTimestamp = 2; //服务器端时间戳
|
|
|
|
}
|
|
|
|
|
2019-06-13 17:28:11 +08:00
|
|
|
message RoomSyncOtherMoveIndiction{
|
|
|
|
optional int32 uid = 1;
|
2019-06-14 13:38:03 +08:00
|
|
|
//先同步给其他客户端,是客户端模拟走路还是服务器端模拟,依据测试结果确定
|
|
|
|
repeated int32 tartXYs = 2;
|
2019-06-13 17:28:11 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
message RoomTriggerFightIndication{
|
2019-06-13 14:52:12 +08:00
|
|
|
//参与战斗的用户ID
|
2019-06-14 18:48:13 +08:00
|
|
|
optional int32 player1 = 1;
|
|
|
|
optional int32 player2 = 2;
|
2019-06-13 14:52:12 +08:00
|
|
|
optional int32 result = 3; //1 player1胜 2 player2胜
|
|
|
|
}
|
|
|
|
|