diff options
| author | Nicolas James <Eele1Ephe7uZahRie@tutanota.com> | 2025-02-12 21:57:46 +1100 |
|---|---|---|
| committer | Nicolas James <Eele1Ephe7uZahRie@tutanota.com> | 2025-02-12 21:57:46 +1100 |
| commit | e4483eca01b48b943cd0461e24a74ae1a3139ed4 (patch) | |
| tree | ed58c3c246e3af1af337697695d780aa31f6ad9a /src/client/shared.hh | |
| parent | 1cc08c51eb4b0f95c30c0a98ad1fc5ad3459b2df (diff) | |
Update to most recent version (old initial commit)
Diffstat (limited to 'src/client/shared.hh')
| -rw-r--r-- | src/client/shared.hh | 24 |
1 files changed, 5 insertions, 19 deletions
diff --git a/src/client/shared.hh b/src/client/shared.hh index 557d13a..31c0ded 100644 --- a/src/client/shared.hh +++ b/src/client/shared.hh @@ -1,28 +1,14 @@ #ifndef CLIENT_SHARED_HH_ #define CLIENT_SHARED_HH_ -#include <cstdint> -#include <string_view> - -#include "shared/net/connection.hh" +#include "client/entity/player.hh" +#include "client/state/entities.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; +entities_t::iterator get_entity_it(const std::uint32_t& index) noexcept; +shared::entity& get_entity(const std::uint32_t index) noexcept; +client::player& get_localplayer() noexcept; }; // namespace client |
