1
0
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:
sfan5
2023-01-25 18:32:32 +01:00
parent 32ff832108
commit 20b10b5691
4 changed files with 10 additions and 10 deletions

View File

@@ -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;