mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Add function to get server info.
This commit is contained in:
parent
468eeb618e
commit
ae0d8f74d7
7 changed files with 53 additions and 21 deletions
|
@ -58,6 +58,7 @@ Client::Client(
|
|||
IrrlichtDevice *device,
|
||||
const char *playername,
|
||||
const std::string &password,
|
||||
const std::string &address_name,
|
||||
MapDrawControl &control,
|
||||
IWritableTextureSource *tsrc,
|
||||
IWritableShaderSource *shsrc,
|
||||
|
@ -89,6 +90,7 @@ Client::Client(
|
|||
),
|
||||
m_particle_manager(&m_env),
|
||||
m_con(PROTOCOL_ID, 512, CONNECTION_TIMEOUT, ipv6, this),
|
||||
m_address_name(address_name),
|
||||
m_device(device),
|
||||
m_camera(NULL),
|
||||
m_minimap_disabled_by_server(false),
|
||||
|
@ -253,13 +255,11 @@ Client::~Client()
|
|||
delete m_minimap;
|
||||
}
|
||||
|
||||
void Client::connect(Address address,
|
||||
const std::string &address_name,
|
||||
bool is_local_server)
|
||||
void Client::connect(Address address, bool is_local_server)
|
||||
{
|
||||
DSTACK(FUNCTION_NAME);
|
||||
|
||||
initLocalMapSaving(address, address_name, is_local_server);
|
||||
initLocalMapSaving(address, m_address_name, is_local_server);
|
||||
|
||||
m_con.SetTimeoutMs(0);
|
||||
m_con.Connect(address);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue