mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-22 17:18:39 +00:00
Add minetest.get_player_window_information() (#12367)
This commit is contained in:
parent
fbbdae93ee
commit
39f4d26177
23 changed files with 345 additions and 35 deletions
|
@ -28,6 +28,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
#include "network/address.h"
|
||||
#include "porting.h"
|
||||
#include "threading/mutex_auto_lock.h"
|
||||
#include "clientdynamicinfo.h"
|
||||
|
||||
#include <list>
|
||||
#include <vector>
|
||||
|
@ -350,6 +351,9 @@ public:
|
|||
void setCachedAddress(const Address &addr) { m_addr = addr; }
|
||||
const Address &getAddress() const { return m_addr; }
|
||||
|
||||
void setDynamicInfo(const ClientDynamicInfo &info) { m_dynamic_info = info; }
|
||||
const ClientDynamicInfo &getDynamicInfo() const { return m_dynamic_info; }
|
||||
|
||||
private:
|
||||
// Version is stored in here after INIT before INIT2
|
||||
u8 m_pending_serialization_version = SER_FMT_VER_INVALID;
|
||||
|
@ -360,9 +364,12 @@ private:
|
|||
// Cached here so retrieval doesn't have to go to connection API
|
||||
Address m_addr;
|
||||
|
||||
// Client sent language code
|
||||
// Client-sent language code
|
||||
std::string m_lang_code;
|
||||
|
||||
// Client-sent dynamic info
|
||||
ClientDynamicInfo m_dynamic_info{};
|
||||
|
||||
/*
|
||||
Blocks that have been sent to client.
|
||||
- These don't have to be sent again.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue