diff options
Diffstat (limited to '')
-rw-r--r-- | torus.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/torus.h b/torus.h index ff9c0e8..9158ef7 100644 --- a/torus.h +++ b/torus.h @@ -47,6 +47,7 @@ enum ServerMessageType { SERVER_TILE, SERVER_MOVE, SERVER_PUT, + SERVER_CURSOR, }; struct ServerMessage { @@ -62,9 +63,17 @@ struct ServerMessage { uint8_t color; char cell; } p; + struct { + uint8_t oldCellX; + uint8_t oldCellY; + uint8_t newCellX; + uint8_t newCellY; + } c; } data; }; +#define CURSOR_NONE UINT8_MAX + enum ClientMessageType { CLIENT_MOVE, CLIENT_PUT, |