proto update

This commit is contained in:
2015-08-11 12:14:46 +03:00
parent 0f7f97fe81
commit 64e1cfdbfc
16 changed files with 202 additions and 91 deletions

View File

@@ -85,4 +85,41 @@ message ExitGameRequest {
message ExitGameResponse {
}
/**
Game
*/
enum GameActionType {
MOVE = 1;
SHOT = 2;
}
message GameActionRequest {
required GameActionType type = 1;
optional int32 directionX = 2;
optional int32 directionY = 3;
}
enum GameObjectType {
TANK = 1;
}
enum GameChangeType {
MOVED = 1;
DESTROED = 2;
MODIFIED = 3;
APPEND = 4;
}
message GameChange {
required GameChangeType type = 1;
required GameObjectType objectType = 2;
required int32 objectId = 3;
optional int32 newX = 4;
optional int32 newY = 5;
}
message GameUpdateResponse {
repeated GameChange changes = 1;
}