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/client.h | |
parent | 46276414ed51d61dc29879ac85e861dc770d90da (diff) | |
download | hax-minetest-server-eb88e5dd4b181a90b382c036cf6c4f42e63e8cc2.tar.gz hax-minetest-server-eb88e5dd4b181a90b382c036cf6c4f42e63e8cc2.zip |
Add ModStorageAPI to client side modding (#5396)
mod storage is located into user_path / client / mod_storage
Diffstat (limited to 'src/client.h')
-rw-r--r-- | src/client.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/client.h b/src/client.h index 7f9cc559b..d72249315 100644 --- a/src/client.h +++ b/src/client.h @@ -554,6 +554,10 @@ public: { return checkPrivilege(priv); } virtual scene::IAnimatedMesh* getMesh(const std::string &filename); + virtual std::string getModStoragePath() const; + virtual bool registerModStorage(ModMetadata *meta); + virtual void unregisterModStorage(const std::string &name); + // The following set of functions is used by ClientMediaDownloader // Insert a media file appropriately into the appropriate manager bool loadMedia(const std::string &data, const std::string &filename); @@ -724,6 +728,8 @@ private: ClientScripting *m_script; bool m_modding_enabled; + UNORDERED_MAP<std::string, ModMetadata *> m_mod_storages; + float m_mod_storage_save_timer; DISABLE_CLASS_COPY(Client); }; |