diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-11-16 13:03:28 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-11-29 19:13:46 +0200 |
commit | c0f6395cf09f658eb95365c60f67b8a89104cb23 (patch) | |
tree | 045d2e1713acc39948280b9ca29dc474b8807418 /src/gamedef.h | |
parent | 50d63e4b0ac15ded5a9fb684586a88a91366d067 (diff) | |
download | minetest-c0f6395cf09f658eb95365c60f67b8a89104cb23.tar.gz minetest-c0f6395cf09f658eb95365c60f67b8a89104cb23.tar.bz2 minetest-c0f6395cf09f658eb95365c60f67b8a89104cb23.zip |
Node definition names
Diffstat (limited to 'src/gamedef.h')
-rw-r--r-- | src/gamedef.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gamedef.h b/src/gamedef.h index 79f5d188e..6708f887d 100644 --- a/src/gamedef.h +++ b/src/gamedef.h @@ -20,6 +20,8 @@ with this program; if not, write to the Free Software Foundation, Inc., #ifndef GAMEDEF_HEADER #define GAMEDEF_HEADER +#include <string> + class IToolDefManager; class INodeDefManager; //class IItemDefManager; //TODO @@ -43,6 +45,9 @@ public: // This is always thread-safe, but referencing the irrlicht texture // pointers in other threads than main thread will make things explode. virtual ITextureSource* getTextureSource()=0; + + // Used for keeping track of names/ids of unknown nodes + virtual u16 allocateUnknownNodeId(const std::string &name)=0; // Shorthands IToolDefManager* tdef(){return getToolDefManager();} |