[proto] add rooms and slots

This commit is contained in:
2019-06-04 12:13:27 +03:00
parent 4c8ae66624
commit 78bbf5264e
25 changed files with 405 additions and 403 deletions

View File

@@ -7,23 +7,9 @@ message UserProto {
string name = 2;
}
enum GameStateProto {
READY = 0;
STARTED = 1;
ENDED = 2;
}
message PlayerProto {
UserProto user = 1;
string team = 2;
int32 index = 3;
}
message GameProto {
int32 id = 1;
string type = 2;
int32 level = 3;
UserProto creator = 4;
repeated PlayerProto players = 5;
GameStateProto state = 6;
bool started = 4;
}