X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fgamedef.h;h=8117319bc0d29c34c4504b1f8270daace4d4dc1c;hb=de2c40c8fc189eeeeba010a0aaa1d28aed588c68;hp=6cd01305f2638da9597d73d37f76c3496c32a19a;hpb=eb88e5dd4b181a90b382c036cf6c4f42e63e8cc2;p=oweals%2Fminetest.git diff --git a/src/gamedef.h b/src/gamedef.h index 6cd01305f..8117319bc 100644 --- a/src/gamedef.h +++ b/src/gamedef.h @@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef GAMEDEF_HEADER -#define GAMEDEF_HEADER +#pragma once #include #include @@ -34,6 +33,7 @@ class MtEventManager; class IRollbackManager; class EmergeManager; class Camera; +class ModChannel; class ModMetadata; namespace irr { namespace scene { @@ -79,7 +79,10 @@ public: virtual std::string getModStoragePath() const = 0; virtual bool registerModStorage(ModMetadata *storage) = 0; virtual void unregisterModStorage(const std::string &name) = 0; -}; - -#endif + virtual bool joinModChannel(const std::string &channel) = 0; + virtual bool leaveModChannel(const std::string &channel) = 0; + virtual bool sendModChannelMessage(const std::string &channel, + const std::string &message) = 0; + virtual ModChannel *getModChannel(const std::string &channel) = 0; +};