| 123456789101112131415161718192021222324252627282930313233 |
- namespace wire_protocol;
- enum Command : short {
- ShiftLeft = 0,
- ShiftRight = 1,
- Rotate = 2,
- Land = 3,
- GetGameState = 4,
- }
- enum CommandResponseError : short {
- OK = 0,
- INVALID_COMMAND = 1,
- UNKNOWN_COMMAND = 2,
- }
- table CommandRequest {
- command:Command;
- }
- table Playfield {
- rows:short;
- cols:short;
- cells:[ubyte];
- }
- table CommandResponse {
- error:CommandResponseError;
- playfield:Playfield;
- }
- root_type CommandRequest;
- root_type CommandResponse;
|