blob: 557d13a2ef47ef68a387378c8ab66b7d20b610aa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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
|