mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
Node definition names
This commit is contained in:
@@ -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();}
|
||||
|
Reference in New Issue
Block a user