diff options
| author | Nicolas James <Eele1Ephe7uZahRie@tutanota.com> | 2025-02-12 18:05:18 +1100 |
|---|---|---|
| committer | Nicolas James <Eele1Ephe7uZahRie@tutanota.com> | 2025-02-12 18:05:18 +1100 |
| commit | 1cc08c51eb4b0f95c30c0a98ad1fc5ad3459b2df (patch) | |
| tree | 222dfcd07a1e40716127a347bbfd7119ce3d0984 /src/client/shared.hh | |
initial commit
Diffstat (limited to 'src/client/shared.hh')
| -rw-r--r-- | src/client/shared.hh | 29 |
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 |
