[proto] add game and event proto

This commit is contained in:
2020-05-26 14:25:37 +03:00
parent f7f6423938
commit b7b1ac3871
13 changed files with 135 additions and 70 deletions

View File

@@ -0,0 +1,30 @@
syntax = "proto3";
import "core.proto";
package ru.m.puzzlez.proto.game;
message PartProto {
}
message GridProto {
int32 width = 1;
int32 height = 2;
}
message GamePresetProto {
string imageId = 1;
GridProto grid = 2;
}
message GameStateProto {
string id = 1;
GamePresetProto preset = 2;
repeated PartProto parts = 3;
}
message GameProto {
GameStateProto state = 2;
repeated ru.m.puzzlez.proto.core.UserProto users = 3;
}