mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-16 18:05:22 +02:00
Refactor EmergeParams owner
This commit is contained in:
@@ -163,6 +163,9 @@ public:
|
||||
int id = -1;
|
||||
|
||||
MMVManip *vm = nullptr;
|
||||
// Note that this contains various things the mapgens *can* use, so biomegen
|
||||
// might be NULL while m_emerge->biomegen is not.
|
||||
EmergeParams *m_emerge = nullptr;
|
||||
const NodeDefManager *ndef = nullptr;
|
||||
|
||||
u32 blockseed;
|
||||
@@ -175,7 +178,7 @@ public:
|
||||
|
||||
Mapgen() = default;
|
||||
Mapgen(int mapgenid, MapgenParams *params, EmergeParams *emerge);
|
||||
virtual ~Mapgen() = default;
|
||||
virtual ~Mapgen();
|
||||
DISABLE_CLASS_COPY(Mapgen);
|
||||
|
||||
virtual MapgenType getType() const { return MAPGEN_INVALID; }
|
||||
@@ -289,7 +292,6 @@ public:
|
||||
virtual void generateDungeons(s16 max_stone_y);
|
||||
|
||||
protected:
|
||||
EmergeParams *m_emerge;
|
||||
BiomeManager *m_bmgr;
|
||||
|
||||
Noise *noise_filler_depth;
|
||||
|
Reference in New Issue
Block a user