From 87e515b927d15881e39b73e18ac211164f28b88f Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Mon, 31 Jul 2017 21:30:22 -0400 Subject: Show other clients' cursors Also unfuck removing on send failure. --- torus.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'torus.h') 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, -- cgit 1.4.1