diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-11-17 02:28:46 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-11-29 19:13:48 +0200 |
commit | 9d5b458479a4eac14acb5af28f51ad23432264ab (patch) | |
tree | 76c90e2f88be617ca4fc8e1c0772f27207f8eacd /src/gamedef.h | |
parent | 8dd3622c6d3c85adbb293eacf61f76c1118c9255 (diff) | |
download | minetest-9d5b458479a4eac14acb5af28f51ad23432264ab.tar.gz minetest-9d5b458479a4eac14acb5af28f51ad23432264ab.tar.bz2 minetest-9d5b458479a4eac14acb5af28f51ad23432264ab.zip |
Crafting definition in scripts
Diffstat (limited to 'src/gamedef.h')
-rw-r--r-- | src/gamedef.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gamedef.h b/src/gamedef.h index 6708f887d..bca27a21a 100644 --- a/src/gamedef.h +++ b/src/gamedef.h @@ -24,6 +24,7 @@ with this program; if not, write to the Free Software Foundation, Inc., class IToolDefManager; class INodeDefManager; +class ICraftDefManager; //class IItemDefManager; //TODO // Mineral too? class ITextureSource; @@ -40,6 +41,7 @@ public: // Thus, first they are set up and then they are only read. virtual IToolDefManager* getToolDefManager()=0; virtual INodeDefManager* getNodeDefManager()=0; + virtual ICraftDefManager* getCraftDefManager()=0; //virtual IItemDefManager* getItemDefManager()=0; // This is always thread-safe, but referencing the irrlicht texture @@ -52,6 +54,7 @@ public: // Shorthands IToolDefManager* tdef(){return getToolDefManager();} INodeDefManager* ndef(){return getNodeDefManager();} + ICraftDefManager* cdef(){return getCraftDefManager();} ITextureSource* tsrc(){return getTextureSource();} }; |