diff options
author | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-03-16 07:53:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-16 07:53:39 +0100 |
commit | eb88e5dd4b181a90b382c036cf6c4f42e63e8cc2 (patch) | |
tree | 2ba995e0a2f15c0bc50212169f0b5af8addd3f86 /src/gamedef.h | |
parent | 46276414ed51d61dc29879ac85e861dc770d90da (diff) | |
download | minetest-eb88e5dd4b181a90b382c036cf6c4f42e63e8cc2.tar.gz minetest-eb88e5dd4b181a90b382c036cf6c4f42e63e8cc2.tar.bz2 minetest-eb88e5dd4b181a90b382c036cf6c4f42e63e8cc2.zip |
Add ModStorageAPI to client side modding (#5396)
mod storage is located into user_path / client / mod_storage
Diffstat (limited to 'src/gamedef.h')
-rw-r--r-- | src/gamedef.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gamedef.h b/src/gamedef.h index 593d27e30..6cd01305f 100644 --- a/src/gamedef.h +++ b/src/gamedef.h @@ -34,6 +34,7 @@ class MtEventManager; class IRollbackManager; class EmergeManager; class Camera; +class ModMetadata; namespace irr { namespace scene { class IAnimatedMesh; @@ -75,6 +76,9 @@ public: virtual const std::vector<ModSpec> &getMods() const = 0; virtual const ModSpec* getModSpec(const std::string &modname) const = 0; virtual std::string getWorldPath() const { return ""; } + virtual std::string getModStoragePath() const = 0; + virtual bool registerModStorage(ModMetadata *storage) = 0; + virtual void unregisterModStorage(const std::string &name) = 0; }; #endif |