summaryrefslogtreecommitdiff
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, 6 insertions, 1 deletions
diff --git a/src/gamedef.h b/src/gamedef.h
index cb624bd6a..16b53e24f 100644
--- a/src/gamedef.h
+++ b/src/gamedef.h
@@ -39,6 +39,7 @@ namespace irr { namespace scene {
class ISceneManager;
}}
+struct ModSpec;
/*
An interface for fetching game-global definitions like tool and
mapnode properties
@@ -68,7 +69,11 @@ public:
ICraftDefManager *cdef() { return getCraftDefManager(); }
MtEventManager *event() { return getEventManager(); }
- IRollbackManager *rollback() { return getRollbackManager();}
+ IRollbackManager *rollback() { return getRollbackManager(); }
+
+ virtual const std::vector<ModSpec> &getMods() const = 0;
+ virtual const ModSpec* getModSpec(const std::string &modname) const = 0;
+ virtual std::string getWorldPath() const { return ""; }
};
#endif