[client] add GameListFrame
This commit is contained in:
@@ -14,24 +14,11 @@ enum GameStateProto {
|
||||
ENDED = 2;
|
||||
}
|
||||
|
||||
message BrickProto {
|
||||
string type = 1;
|
||||
}
|
||||
|
||||
message EntityProto {
|
||||
string type = 1;
|
||||
}
|
||||
|
||||
message GameInfoProto {
|
||||
message GameProto {
|
||||
int32 id = 1;
|
||||
string type = 2;
|
||||
UserProto creator = 3;
|
||||
repeated UserProto players = 4;
|
||||
GameStateProto state = 5;
|
||||
int32 level = 3;
|
||||
UserProto creator = 4;
|
||||
repeated UserProto players = 5;
|
||||
GameStateProto state = 6;
|
||||
}
|
||||
|
||||
message GameProto {
|
||||
GameInfoProto info = 1;
|
||||
repeated BrickProto map = 2;
|
||||
repeated EntityProto entities = 3;
|
||||
}
|
||||
@@ -30,16 +30,17 @@ message LogoutResponse {}
|
||||
message ListGameRequest {}
|
||||
|
||||
message ListGameResponse {
|
||||
repeated ru.m.tankz.proto.core.GameInfoProto games = 1;
|
||||
repeated ru.m.tankz.proto.core.GameProto games = 1;
|
||||
}
|
||||
|
||||
// Create Game
|
||||
message CreateGameRequest {
|
||||
string type = 1;
|
||||
int32 level = 2;
|
||||
}
|
||||
|
||||
message CreateGameResponse {
|
||||
ru.m.tankz.proto.core.GameInfoProto game = 1;
|
||||
ru.m.tankz.proto.core.GameProto game = 1;
|
||||
}
|
||||
|
||||
// Join Game
|
||||
@@ -48,41 +49,23 @@ message JoinGameRequest {
|
||||
}
|
||||
|
||||
message JoinGameResponse {
|
||||
ru.m.tankz.proto.core.GameInfoProto game = 1;
|
||||
ru.m.tankz.proto.core.GameProto game = 1;
|
||||
}
|
||||
|
||||
// Leave Game
|
||||
message LeaveGameRequest {}
|
||||
|
||||
message LeaveGameResponse {
|
||||
ru.m.tankz.proto.core.GameInfoProto game = 1;
|
||||
ru.m.tankz.proto.core.GameProto game = 1;
|
||||
}
|
||||
|
||||
// Start Game
|
||||
message StartGameRequest {}
|
||||
|
||||
message StartGameResponse {
|
||||
ru.m.tankz.proto.core.GameInfoProto game = 1;
|
||||
}
|
||||
|
||||
// Game
|
||||
message GameRequest {}
|
||||
|
||||
message GameResponse {
|
||||
ru.m.tankz.proto.core.GameProto game = 1;
|
||||
}
|
||||
|
||||
// Game Update
|
||||
message GameUpdateRequest {
|
||||
ru.m.tankz.proto.game.GameActionTypeProto type = 1;
|
||||
int32 directionX = 2;
|
||||
int32 directionY = 3;
|
||||
}
|
||||
|
||||
message GameUpdateResponse {
|
||||
repeated ru.m.tankz.proto.game.GameChangeProto changes = 1;
|
||||
}
|
||||
|
||||
// Request
|
||||
message Request {
|
||||
oneof content {
|
||||
@@ -93,8 +76,6 @@ message Request {
|
||||
JoinGameRequest joinGame = 5;
|
||||
LeaveGameRequest leaveGame = 6;
|
||||
StartGameRequest startGame = 7;
|
||||
GameRequest game = 8;
|
||||
GameUpdateRequest updateGame = 9;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -108,7 +89,5 @@ message Response {
|
||||
JoinGameResponse joinGame = 5;
|
||||
LeaveGameResponse leaveGame = 6;
|
||||
StartGameResponse startGame = 7;
|
||||
GameResponse game = 8;
|
||||
GameUpdateResponse updateGame = 9;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user