[common] update for network

This commit is contained in:
2019-05-28 17:03:04 +03:00
parent ba13111a8e
commit 1d95de02e1
21 changed files with 130 additions and 20 deletions

View File

@@ -68,6 +68,17 @@ message StartGameResponse {
ru.m.tankz.proto.core.GameProto game = 1;
}
// Game
message GameEventRequest {
int32 frame = 1;
string event = 2;
}
message GameEventResponse {
int32 frame = 1;
string event = 2;
}
// Request
message Request {
oneof content {
@@ -78,6 +89,7 @@ message Request {
JoinGameRequest joinGame = 5;
LeaveGameRequest leaveGame = 6;
StartGameRequest startGame = 7;
GameEventRequest gameEvent = 8;
}
}
@@ -91,6 +103,7 @@ message Response {
JoinGameResponse joinGame = 5;
LeaveGameResponse leaveGame = 6;
StartGameResponse startGame = 7;
GameEventResponse gameEvent = 8;
ErrorResponse error = 999;
}