summaryrefslogtreecommitdiff
path: root/include/net
diff options
context:
space:
mode:
authorhovertank3d <[email protected]>2026-02-26 03:04:00 +0100
committerhovertank3d <[email protected]>2026-02-26 03:05:39 +0100
commit5e46ccbf67be0202030bbb203461bd4b6cad15f9 (patch)
tree78d7e8f72a18add18b1f515f65a7eca088432d4f /include/net
parent30eb23ffe5f7b9e8c3b4267457d0aa3bd02665e7 (diff)
downloadogurec-5e46ccbf67be0202030bbb203461bd4b6cad15f9.tar.gz
ogurec-5e46ccbf67be0202030bbb203461bd4b6cad15f9.zip
fix `accept` and add docs for player_info
Diffstat (limited to 'include/net')
-rw-r--r--include/net/types.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/net/types.hpp b/include/net/types.hpp
index 5301021..c16ca36 100644
--- a/include/net/types.hpp
+++ b/include/net/types.hpp
@@ -87,6 +87,15 @@ struct disconnect {
};
struct accept {
+ static constexpr uint8_t packet_id = 3;
+
+ uint8_t slot;
+ uint8_t server_flags = 0;
+};
+
+struct player_info {
+ static constexpr uint8_t packet_id = 4;
+
uint8_t slot;
uint8_t server_flags = 0;
};