aboutsummaryrefslogtreecommitdiff
path: root/src/client/shared.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/shared.hh')
-rw-r--r--src/client/shared.hh29
1 files changed, 29 insertions, 0 deletions
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 <cstdint>
+#include <string_view>
+
+#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