[proto] add game and event proto
This commit is contained in:
30
src/common/proto/game.proto
Normal file
30
src/common/proto/game.proto
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user