1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-16 18:01:40 +00:00

Add ModStorageAPI to client side modding (#5396)

mod storage is located into user_path / client / mod_storage
This commit is contained in:
Loïc Blot 2017-03-16 07:53:39 +01:00 committed by GitHub
parent 46276414ed
commit eb88e5dd4b
8 changed files with 68 additions and 11 deletions

View file

@ -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