Apply physics overrides correctly during anticheat calculations (#6970)
[oweals/minetest.git] / src / gamedef.h
index 6cd01305f2638da9597d73d37f76c3496c32a19a..8117319bc0d29c34c4504b1f8270daace4d4dc1c 100644 (file)
@@ -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 <string>
 #include <vector>
@@ -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;
+};