From 3face01a202040e4feff3b0936b4aa89c051c98d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1niel=20Juh=C3=A1sz?= Date: Sat, 10 Feb 2018 22:04:16 +0200 Subject: Node definition manager refactor (#7016) * Rename IWritableNodeDefManager to NodeDefManager * Make INodeDefManager functions const * Use "const *NodeDefManager" instead of "*INodeDefManager" * Remove unused INodeDefManager class * Merge NodeDefManager and CNodeDefManager * Document NodeDefManager --- src/gamedef.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gamedef.h') diff --git a/src/gamedef.h b/src/gamedef.h index 8117319bc..9d3b889a0 100644 --- a/src/gamedef.h +++ b/src/gamedef.h @@ -24,7 +24,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "irrlichttypes.h" class IItemDefManager; -class INodeDefManager; +class NodeDefManager; class ICraftDefManager; class ITextureSource; class ISoundManager; @@ -53,7 +53,7 @@ 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 IItemDefManager* getItemDefManager()=0; - virtual INodeDefManager* getNodeDefManager()=0; + virtual const NodeDefManager* getNodeDefManager()=0; virtual ICraftDefManager* getCraftDefManager()=0; // Used for keeping track of names/ids of unknown nodes @@ -67,7 +67,7 @@ public: // Shorthands IItemDefManager *idef() { return getItemDefManager(); } - INodeDefManager *ndef() { return getNodeDefManager(); } + const NodeDefManager *ndef() { return getNodeDefManager(); } ICraftDefManager *cdef() { return getCraftDefManager(); } MtEventManager *event() { return getEventManager(); } -- cgit v1.2.3