diff options
author | Dániel Juhász <juhdanad@gmail.com> | 2018-02-10 22:04:16 +0200 |
---|---|---|
committer | SmallJoker <SmallJoker@users.noreply.github.com> | 2018-02-10 21:04:16 +0100 |
commit | 3face01a202040e4feff3b0936b4aa89c051c98d (patch) | |
tree | ccdad6773aa9705cc07fdc9f71f28bae395f353e /src/reflowscan.h | |
parent | 617d94c8038e3ff035eaeef7ccdfa4f442feb873 (diff) | |
download | minetest-3face01a202040e4feff3b0936b4aa89c051c98d.tar.gz minetest-3face01a202040e4feff3b0936b4aa89c051c98d.tar.bz2 minetest-3face01a202040e4feff3b0936b4aa89c051c98d.zip |
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
Diffstat (limited to 'src/reflowscan.h')
-rw-r--r-- | src/reflowscan.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/reflowscan.h b/src/reflowscan.h index e8f70f790..7961432bd 100644 --- a/src/reflowscan.h +++ b/src/reflowscan.h @@ -22,13 +22,13 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "util/container.h" #include "irrlichttypes_bloated.h" -class INodeDefManager; +class NodeDefManager; class Map; class MapBlock; class ReflowScan { public: - ReflowScan(Map *map, INodeDefManager *ndef); + ReflowScan(Map *map, const NodeDefManager *ndef); void scan(MapBlock *block, UniqueQueue<v3s16> *liquid_queue); private: @@ -39,7 +39,7 @@ private: private: Map *m_map = nullptr; - INodeDefManager *m_ndef = nullptr; + const NodeDefManager *m_ndef = nullptr; v3s16 m_block_pos, m_rel_block_pos; UniqueQueue<v3s16> *m_liquid_queue = nullptr; MapBlock *m_lookup[3 * 3 * 3]; |