[proto] update message names

This commit is contained in:
2018-05-15 15:06:34 +03:00
parent 13c1299bf0
commit 33b0693a4e
69 changed files with 211 additions and 143 deletions

View File

@@ -3,21 +3,35 @@ syntax = "proto3";
package ru.m.tankz.proto.core;
message User {
message UserProto {
string uuid = 1;
string name = 2;
}
enum GameState {
enum GameStateProto {
READY = 0;
STARTED = 1;
ENDED = 2;
}
message Game {
message BrickProto {
string type = 1;
}
message EntityProto {
string type = 1;
}
message GameInfoProto {
int32 id = 1;
string type = 2;
User creator = 3;
repeated User players = 4;
GameState state = 5;
UserProto creator = 3;
repeated UserProto players = 4;
GameStateProto state = 5;
}
message GameProto {
GameInfoProto info = 1;
repeated BrickProto map = 2;
repeated EntityProto entities = 3;
}