mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
Cavegen y biome check (#13472)
This commit is contained in:
parent
1ef9fc9d1f
commit
29b7aea38b
5 changed files with 83 additions and 7 deletions
|
@ -26,6 +26,8 @@ typedef u16 biome_t; // copy from mg_biome.h to avoid an unnecessary include
|
|||
|
||||
class GenerateNotifier;
|
||||
|
||||
class BiomeGen;
|
||||
|
||||
/*
|
||||
CavesNoiseIntersection is a cave digging algorithm that carves smooth,
|
||||
web-like, continuous tunnels at points where the density of the intersection
|
||||
|
@ -42,7 +44,7 @@ class CavesNoiseIntersection
|
|||
{
|
||||
public:
|
||||
CavesNoiseIntersection(const NodeDefManager *nodedef,
|
||||
BiomeManager *biomemgr, v3s16 chunksize, NoiseParams *np_cave1,
|
||||
BiomeManager *biomemgr, BiomeGen *biomegen, v3s16 chunksize, NoiseParams *np_cave1,
|
||||
NoiseParams *np_cave2, s32 seed, float cave_width);
|
||||
~CavesNoiseIntersection();
|
||||
|
||||
|
@ -52,6 +54,8 @@ private:
|
|||
const NodeDefManager *m_ndef;
|
||||
BiomeManager *m_bmgr;
|
||||
|
||||
BiomeGen *m_bmgn;
|
||||
|
||||
// configurable parameters
|
||||
v3s16 m_csize;
|
||||
float m_cave_width;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue