27 lines
380 B
Protocol Buffer
27 lines
380 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package ru.m.tankz.proto.core;
|
|
|
|
|
|
message Player {
|
|
int32 id = 1;
|
|
string name = 2;
|
|
}
|
|
|
|
enum GameType {
|
|
CLASSIC = 0;
|
|
}
|
|
|
|
enum GameState {
|
|
READY = 0;
|
|
STARTED = 1;
|
|
ENDED = 2;
|
|
}
|
|
|
|
message Game {
|
|
int32 id = 1;
|
|
GameType type = 2;
|
|
Player creator = 3;
|
|
repeated Player players = 4;
|
|
GameState state = 5;
|
|
} |