mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +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:
parent
617d94c803
commit
3face01a20
61 changed files with 583 additions and 457 deletions
|
@ -30,21 +30,21 @@ public:
|
|||
|
||||
void runTests(IGameDef *gamedef);
|
||||
|
||||
void testVoxelLineIterator(INodeDefManager *ndef);
|
||||
void testVoxelLineIterator(const NodeDefManager *ndef);
|
||||
};
|
||||
|
||||
static TestVoxelAlgorithms g_test_instance;
|
||||
|
||||
void TestVoxelAlgorithms::runTests(IGameDef *gamedef)
|
||||
{
|
||||
INodeDefManager *ndef = gamedef->getNodeDefManager();
|
||||
const NodeDefManager *ndef = gamedef->getNodeDefManager();
|
||||
|
||||
TEST(testVoxelLineIterator, ndef);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void TestVoxelAlgorithms::testVoxelLineIterator(INodeDefManager *ndef)
|
||||
void TestVoxelAlgorithms::testVoxelLineIterator(const NodeDefManager *ndef)
|
||||
{
|
||||
// Test some lines
|
||||
// Do not test lines that start or end on the border of
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue