[proto] update message names
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user