[refactoring] #1

This commit is contained in:
2020-09-09 14:09:38 +03:00
parent edbc587e2e
commit 9a8f171552
52 changed files with 423 additions and 1019 deletions

View File

@@ -4,6 +4,11 @@ import "core.proto";
package ru.m.puzzlez.proto.game;
message ImageId {
string source = 1;
string id = 2;
}
enum BoundType {
NONE = 0;
OUT = 1;
@@ -39,7 +44,7 @@ message Part {
}
message GamePreset {
string imageId = 1;
ImageId image = 1;
ru.m.puzzlez.proto.core.IntPoint grid = 2;
ru.m.puzzlez.proto.core.Rectangle tableRect = 3;
ru.m.puzzlez.proto.core.Rectangle imageRect = 4;
@@ -53,9 +58,9 @@ enum GameStatus {
message GameState {
string id = 1;
GameStatus status = 2;
GamePreset preset = 3;
repeated ru.m.puzzlez.proto.core.User users = 4;
repeated Part parts = 5;
bool online = 6;
GameStatus status = 3;
GamePreset preset = 4;
repeated ru.m.puzzlez.proto.core.User users = 5;
repeated Part parts = 6;
bool online = 7;
}