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
|
@ -178,7 +178,7 @@ public:
|
|||
virtual MapBlock * emergeBlock(v3s16 p, bool create_blank=true)
|
||||
{ return getBlockNoCreateNoEx(p); }
|
||||
|
||||
inline INodeDefManager * getNodeDefManager() { return m_nodedef; }
|
||||
inline const NodeDefManager * getNodeDefManager() { return m_nodedef; }
|
||||
|
||||
// Returns InvalidPositionException if not found
|
||||
bool isNodeUnderground(v3s16 p);
|
||||
|
@ -311,7 +311,7 @@ protected:
|
|||
UniqueQueue<v3s16> m_transforming_liquid;
|
||||
|
||||
// This stores the properties of the nodes on the map.
|
||||
INodeDefManager *m_nodedef;
|
||||
const NodeDefManager *m_nodedef;
|
||||
|
||||
bool isOccluded(v3s16 p0, v3s16 p1, float step, float stepfac,
|
||||
float start_off, float end_off, u32 needed_count);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue