]> git.lizzy.rs Git - minetest.git/blobdiff - src/gamedef.h
Fix and tune stars
[minetest.git] / src / gamedef.h
index 6708f887db314ac61b1bae0290a953a9a801714e..10ab0b0bcfb57e4ecd9cc71516366ca81302d950 100644 (file)
@@ -21,11 +21,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #define GAMEDEF_HEADER
 
 #include <string>
+#include "irrlichttypes.h"
 
-class IToolDefManager;
+class IItemDefManager;
 class INodeDefManager;
-//class IItemDefManager; //TODO
-// Mineral too?
+class ICraftDefManager;
 class ITextureSource;
 
 /*
@@ -38,9 +38,9 @@ class IGameDef
 public:
        // These are thread-safe IF they are not edited while running threads.
        // Thus, first they are set up and then they are only read.
-       virtual IToolDefManager* getToolDefManager()=0;
+       virtual IItemDefManager* getItemDefManager()=0;
        virtual INodeDefManager* getNodeDefManager()=0;
-       //virtual IItemDefManager* getItemDefManager()=0;
+       virtual ICraftDefManager* getCraftDefManager()=0;
 
        // This is always thread-safe, but referencing the irrlicht texture
        // pointers in other threads than main thread will make things explode.
@@ -50,8 +50,9 @@ class IGameDef
        virtual u16 allocateUnknownNodeId(const std::string &name)=0;
 
        // Shorthands
-       IToolDefManager* tdef(){return getToolDefManager();}
+       IItemDefManager* idef(){return getItemDefManager();}
        INodeDefManager* ndef(){return getNodeDefManager();}
+       ICraftDefManager* cdef(){return getCraftDefManager();}
        ITextureSource* tsrc(){return getTextureSource();}
 };