mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02: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:
committed by
SmallJoker
parent
617d94c803
commit
3face01a20
@@ -36,7 +36,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
}
|
||||
|
||||
class EmergeThread;
|
||||
class INodeDefManager;
|
||||
class NodeDefManager;
|
||||
class Settings;
|
||||
|
||||
class BiomeManager;
|
||||
@@ -53,7 +53,7 @@ struct BlockMakeData {
|
||||
v3s16 blockpos_max;
|
||||
v3s16 blockpos_requested;
|
||||
UniqueQueue<v3s16> transforming_liquid;
|
||||
INodeDefManager *nodedef = nullptr;
|
||||
const NodeDefManager *nodedef = nullptr;
|
||||
|
||||
BlockMakeData() = default;
|
||||
|
||||
@@ -88,7 +88,7 @@ struct BlockEmergeData {
|
||||
|
||||
class EmergeManager {
|
||||
public:
|
||||
INodeDefManager *ndef;
|
||||
const NodeDefManager *ndef;
|
||||
bool enable_mapgen_debug_info;
|
||||
|
||||
// Generation Notify
|
||||
|
Reference in New Issue
Block a user