diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-12-11 16:49:40 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-12-11 16:49:40 +0200 |
commit | bd21f00f0a1bb23d4503d58a502a796dbe3fd5b4 (patch) | |
tree | ba1e29a21fafe612bdb05bd2a5bfbf8466f92ee0 /src/server.h | |
parent | 012bcbcb4852c78e803485a4fc6fe6628ce0dcd3 (diff) | |
download | minetest-bd21f00f0a1bb23d4503d58a502a796dbe3fd5b4.tar.gz minetest-bd21f00f0a1bb23d4503d58a502a796dbe3fd5b4.tar.bz2 minetest-bd21f00f0a1bb23d4503d58a502a796dbe3fd5b4.zip |
Add minetest.get_modpath(modname)
Diffstat (limited to 'src/server.h')
-rw-r--r-- | src/server.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/server.h b/src/server.h index f775f3391..ac8938175 100644 --- a/src/server.h +++ b/src/server.h @@ -32,6 +32,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "gamedef.h" #include "serialization.h" // For SER_FMT_VER_INVALID #include "serverremoteplayer.h" +#include "mods.h" struct LuaState; typedef struct lua_State lua_State; class IWritableToolDefManager; @@ -502,6 +503,8 @@ public: IWritableCraftDefManager* getWritableCraftDefManager(); IWritableCraftItemDefManager* getWritableCraftItemDefManager(); + const ModSpec* getModSpec(const std::string &modname); + private: // con::PeerHandler implementation. @@ -646,6 +649,9 @@ private: // CraftItem definition manager IWritableCraftItemDefManager *m_craftitemdef; + // Mods + core::list<ModSpec> m_mods; + /* Threads */ |