mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 09:05:19 +02:00
Move network protocol implementation behind an interface
This commit is contained in:
@@ -71,7 +71,7 @@ class Camera;
|
||||
struct PlayerControl;
|
||||
class NetworkPacket;
|
||||
namespace con {
|
||||
class Connection;
|
||||
class IConnection;
|
||||
}
|
||||
using sound_handle_t = int;
|
||||
|
||||
@@ -452,8 +452,8 @@ private:
|
||||
void loadMods();
|
||||
|
||||
// Virtual methods from con::PeerHandler
|
||||
void peerAdded(con::Peer *peer) override;
|
||||
void deletingPeer(con::Peer *peer, bool timeout) override;
|
||||
void peerAdded(con::IPeer *peer) override;
|
||||
void deletingPeer(con::IPeer *peer, bool timeout) override;
|
||||
|
||||
void initLocalMapSaving(const Address &address,
|
||||
const std::string &hostname,
|
||||
@@ -493,7 +493,7 @@ private:
|
||||
std::unique_ptr<MeshUpdateManager> m_mesh_update_manager;
|
||||
ClientEnvironment m_env;
|
||||
std::unique_ptr<ParticleManager> m_particle_manager;
|
||||
std::unique_ptr<con::Connection> m_con;
|
||||
std::unique_ptr<con::IConnection> m_con;
|
||||
std::string m_address_name;
|
||||
ELoginRegister m_allow_login_or_register = ELoginRegister::Any;
|
||||
Camera *m_camera = nullptr;
|
||||
|
Reference in New Issue
Block a user