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