miduo_protocol/protos/RoomFightProto.proto

44 lines
1.4 KiB
Protocol Buffer
Raw Normal View History

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