aboutsummaryrefslogtreecommitdiff
path: root/src/gamedef.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gamedef.h')
-rw-r--r--src/gamedef.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gamedef.h b/src/gamedef.h
index 91bcc0e65..3b5ad5cae 100644
--- a/src/gamedef.h
+++ b/src/gamedef.h
@@ -28,6 +28,7 @@ class INodeDefManager;
class ICraftDefManager;
class ITextureSource;
class ISoundManager;
+class MtEventManager;
/*
An interface for fetching game-global definitions like tool and
@@ -47,17 +48,19 @@ public:
// pointers in other threads than main thread will make things explode.
virtual ITextureSource* getTextureSource()=0;
- virtual ISoundManager* getSoundManager()=0;
-
// Used for keeping track of names/ids of unknown nodes
virtual u16 allocateUnknownNodeId(const std::string &name)=0;
+ virtual ISoundManager* getSoundManager()=0;
+ virtual MtEventManager* getEventManager()=0;
+
// Shorthands
IItemDefManager* idef(){return getItemDefManager();}
INodeDefManager* ndef(){return getNodeDefManager();}
ICraftDefManager* cdef(){return getCraftDefManager();}
ITextureSource* tsrc(){return getTextureSource();}
ISoundManager* sound(){return getSoundManager();}
+ MtEventManager* event(){return getEventManager();}
};
#endif