diff options
Diffstat (limited to '')
-rw-r--r-- | src/client.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/client.h b/src/client.h index 420d18895..36f564086 100644 --- a/src/client.h +++ b/src/client.h @@ -52,6 +52,7 @@ class IWritableNodeDefManager; //class IWritableCraftDefManager; class ClientMediaDownloader; struct MapDrawControl; +class ModChannelMgr; class MtEventManager; struct PointedThing; class MapDatabase; @@ -224,6 +225,8 @@ public: void handleCommand_LocalPlayerAnimations(NetworkPacket* pkt); void handleCommand_EyeOffset(NetworkPacket* pkt); void handleCommand_UpdatePlayerList(NetworkPacket* pkt); + void handleCommand_ModChannelMsg(NetworkPacket *pkt); + void handleCommand_ModChannelSignal(NetworkPacket *pkt); void handleCommand_SrpBytesSandB(NetworkPacket* pkt); void handleCommand_CSMFlavourLimits(NetworkPacket *pkt); @@ -424,6 +427,11 @@ public: return m_csm_noderange_limit; } + bool joinModChannel(const std::string &channel); + bool leaveModChannel(const std::string &channel); + bool sendModChannelMessage(const std::string &channel, const std::string &message); + ModChannel *getModChannel(const std::string &channel); + private: // Virtual methods from con::PeerHandler @@ -580,4 +588,6 @@ private: // CSM flavour limits byteflag u64 m_csm_flavour_limits = CSMFlavourLimit::CSM_FL_NONE; u32 m_csm_noderange_limit = 8; + + std::unique_ptr<ModChannelMgr> m_modchannel_mgr; }; |