X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fclientiface.h;h=ca2af65fea203f03be10e92ad022249607624513;hb=707c8c1e95d8db2d84909e7957b4dc9138e05599;hp=2b0ccfbb1c75cb8636706246eb0a475cb540ff43;hpb=d73e458db6ab7748fcc7fd485f246971725ea48a;p=minetest.git diff --git a/src/clientiface.h b/src/clientiface.h index 2b0ccfbb1..ca2af65fe 100644 --- a/src/clientiface.h +++ b/src/clientiface.h @@ -338,12 +338,19 @@ class RemoteClient u8 getMajor() const { return m_version_major; } u8 getMinor() const { return m_version_minor; } u8 getPatch() const { return m_version_patch; } + const std::string &getFull() const { return m_full_version; } + + void setLangCode(const std::string &code) { m_lang_code = code; } + const std::string &getLangCode() const { return m_lang_code; } private: // Version is stored in here after INIT before INIT2 u8 m_pending_serialization_version = SER_FMT_VER_INVALID; /* current state of client */ ClientState m_state = CS_Created; + + // Client sent language code + std::string m_lang_code; /* Blocks that have been sent to client. @@ -357,7 +364,6 @@ class RemoteClient std::set m_blocks_sent; s16 m_nearest_unsent_d = 0; v3s16 m_last_center; - float m_nearest_unsent_reset_timer = 0.0f; const u16 m_max_simul_sends; const float m_min_time_from_building;