update
This commit is contained in:
@@ -93,6 +93,7 @@ message ExitGameResponse {
|
||||
enum GameActionType {
|
||||
MOVE = 1;
|
||||
SHOT = 2;
|
||||
STOP = 3;
|
||||
}
|
||||
|
||||
message GameActionRequest {
|
||||
@@ -103,6 +104,7 @@ message GameActionRequest {
|
||||
|
||||
enum GameObjectType {
|
||||
TANK = 1;
|
||||
BULLET = 2;
|
||||
}
|
||||
|
||||
enum GameChangeType {
|
||||
@@ -110,14 +112,18 @@ enum GameChangeType {
|
||||
DESTROED = 2;
|
||||
MODIFIED = 3;
|
||||
APPEND = 4;
|
||||
DIRECTION = 5;
|
||||
}
|
||||
|
||||
message GameChange {
|
||||
required GameChangeType type = 1;
|
||||
required GameObjectType objectType = 2;
|
||||
required int32 objectId = 3;
|
||||
optional int32 newX = 4;
|
||||
optional int32 newY = 5;
|
||||
optional int32 parentObjectId = 4;
|
||||
optional float x = 5;
|
||||
optional float y = 6;
|
||||
optional int32 directionX = 7;
|
||||
optional int32 directionY = 8;
|
||||
}
|
||||
|
||||
message GameUpdateResponse {
|
||||
|
||||
Reference in New Issue
Block a user