diff options
author | Samuel Barney <sbarney@instructure.com> | 2016-07-18 22:39:11 +0200 |
---|---|---|
committer | Samuel Barney <samjbarney@gmail.com> | 2016-08-15 19:13:03 +0200 |
commit | 24e89bbb2c656224d06aed084b952bbc885e3914 (patch) | |
tree | ba75a68cce6ea868acba60ae08efeeccf003736d /src/Server.h | |
parent | Switch out long download/compile links. (#3278) (diff) | |
download | cuberite-24e89bbb2c656224d06aed084b952bbc885e3914.tar cuberite-24e89bbb2c656224d06aed084b952bbc885e3914.tar.gz cuberite-24e89bbb2c656224d06aed084b952bbc885e3914.tar.bz2 cuberite-24e89bbb2c656224d06aed084b952bbc885e3914.tar.lz cuberite-24e89bbb2c656224d06aed084b952bbc885e3914.tar.xz cuberite-24e89bbb2c656224d06aed084b952bbc885e3914.tar.zst cuberite-24e89bbb2c656224d06aed084b952bbc885e3914.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Server.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/Server.h b/src/Server.h index 600e7ca97..6dbbafd11 100644 --- a/src/Server.h +++ b/src/Server.h @@ -40,6 +40,7 @@ typedef std::list<cClientHandlePtr> cClientHandlePtrs; typedef std::list<cClientHandle *> cClientHandles; class cCommandOutputCallback; class cSettingsRepositoryInterface; +class cChannelManager; namespace Json @@ -57,7 +58,7 @@ class cServer public: // tolua_end - virtual ~cServer() {} + virtual ~cServer(); bool InitServer(cSettingsRepositoryInterface & a_Settings, bool a_ShouldAuth); // tolua_begin @@ -143,6 +144,9 @@ public: from the settings. */ bool ShouldAllowMultiWorldTabCompletion(void) const { return m_ShouldAllowMultiWorldTabCompletion; } + /** Returns the channel manager. */ + cChannelManager * GetChannelManager(); // tolua_export + private: friend class cRoot; // so cRoot can create and destroy cServer @@ -241,6 +245,8 @@ private: Initialized in InitServer(), used in Start(). */ AStringVector m_Ports; + UniquePtr<cChannelManager> m_ChannelManager; + cServer(void); @@ -256,7 +262,3 @@ private: /** Ticks the clients in m_Clients, manages the list in respect to removing clients */ void TickClients(float a_Dt); }; // tolua_export - - - - |