[network] added NetworkFrame

This commit is contained in:
2018-02-21 17:46:52 +03:00
parent db2339ab3a
commit dd447656f8
17 changed files with 377 additions and 202 deletions

View File

@@ -3,15 +3,11 @@ syntax = "proto3";
package ru.m.tankz.proto.core;
message Player {
int32 id = 1;
message User {
string uuid = 1;
string name = 2;
}
enum GameType {
CLASSIC = 0;
}
enum GameState {
READY = 0;
STARTED = 1;
@@ -20,8 +16,8 @@ enum GameState {
message Game {
int32 id = 1;
GameType type = 2;
Player creator = 3;
repeated Player players = 4;
string type = 2;
User creator = 3;
repeated User players = 4;
GameState state = 5;
}