From c0f6395cf09f658eb95365c60f67b8a89104cb23 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Wed, 16 Nov 2011 13:03:28 +0200 Subject: Node definition names --- src/gamedef.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gamedef.h') 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 + 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();} -- cgit v1.2.3