From 1cc08c51eb4b0f95c30c0a98ad1fc5ad3459b2df Mon Sep 17 00:00:00 2001 From: Nicolas James Date: Wed, 12 Feb 2025 18:05:18 +1100 Subject: initial commit --- src/client/shared.hh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/client/shared.hh (limited to 'src/client/shared.hh') diff --git a/src/client/shared.hh b/src/client/shared.hh new file mode 100644 index 0000000..557d13a --- /dev/null +++ b/src/client/shared.hh @@ -0,0 +1,29 @@ +#ifndef CLIENT_SHARED_HH_ +#define CLIENT_SHARED_HH_ + +#include +#include + +#include "shared/net/connection.hh" + +namespace client { + +struct state { + std::string_view address; + std::string_view port; + std::uint64_t seed; + std::uint32_t localplayer; + std::size_t player_count; + std::size_t requested_chunk_count; + std::size_t networked_chunk_count; + std::int32_t draw_distance; + std::uint16_t latency; + + shared::net::connection* connection = nullptr; +}; + +inline state state; + +}; // namespace client + +#endif -- cgit v1.2.3