1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-11 17:51:04 +00:00

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
This commit is contained in:
Dániel Juhász 2018-02-10 22:04:16 +02:00 committed by SmallJoker
parent 617d94c803
commit 3face01a20
61 changed files with 583 additions and 457 deletions

View file

@ -31,7 +31,7 @@ public:
void runTests(IGameDef *gamedef);
void testNodeProperties(INodeDefManager *nodedef);
void testNodeProperties(const NodeDefManager *nodedef);
};
static TestMapNode g_test_instance;
@ -43,7 +43,7 @@ void TestMapNode::runTests(IGameDef *gamedef)
////////////////////////////////////////////////////////////////////////////////
void TestMapNode::testNodeProperties(INodeDefManager *nodedef)
void TestMapNode::testNodeProperties(const NodeDefManager *nodedef)
{
MapNode n(CONTENT_AIR);