diff options
author | June McEnroe <programble@gmail.com> | 2017-07-31 21:30:22 -0400 |
---|---|---|
committer | June McEnroe <programble@gmail.com> | 2017-07-31 21:30:22 -0400 |
commit | e2e97511e8b3ff819274b8ea802e20a41e50858f (patch) | |
tree | f9e2c129e18da878366385965ae5c8d9df6e1cd9 /torus.h | |
parent | Perform enter as two moves rather than a loop (diff) | |
download | torus-e2e97511e8b3ff819274b8ea802e20a41e50858f.tar.gz torus-e2e97511e8b3ff819274b8ea802e20a41e50858f.zip |
Show other clients' cursors
Also unfuck removing on send failure.
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, |