diff options
author | madmaxoft <github@xoft.cz> | 2014-05-31 22:06:14 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-05-31 22:06:14 +0200 |
commit | 7672ca7eefc7233b507938d0592d1f565191d0ee (patch) | |
tree | 0647211f12853c4028585b8d2c37f22284db495b /src/Generating/ComposableGenerator.cpp | |
parent | Merge pull request #1018 from mc-server/VillageGen (diff) | |
download | cuberite-7672ca7eefc7233b507938d0592d1f565191d0ee.tar cuberite-7672ca7eefc7233b507938d0592d1f565191d0ee.tar.gz cuberite-7672ca7eefc7233b507938d0592d1f565191d0ee.tar.bz2 cuberite-7672ca7eefc7233b507938d0592d1f565191d0ee.tar.lz cuberite-7672ca7eefc7233b507938d0592d1f565191d0ee.tar.xz cuberite-7672ca7eefc7233b507938d0592d1f565191d0ee.tar.zst cuberite-7672ca7eefc7233b507938d0592d1f565191d0ee.zip |
Diffstat (limited to 'src/Generating/ComposableGenerator.cpp')
-rw-r--r-- | src/Generating/ComposableGenerator.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Generating/ComposableGenerator.cpp b/src/Generating/ComposableGenerator.cpp index 4dd626ed4..cf736ce64 100644 --- a/src/Generating/ComposableGenerator.cpp +++ b/src/Generating/ComposableGenerator.cpp @@ -25,6 +25,7 @@ #include "Noise3DGenerator.h" #include "POCPieceGenerator.h" #include "Ravines.h" +#include "UnderwaterBaseGen.h" #include "VillageGen.h" @@ -406,6 +407,13 @@ void cComposableGenerator::InitFinishGens(cIniFile & a_IniFile) { m_FinishGens.push_back(new cStructGenTrees(Seed, m_BiomeGen, m_HeightGen, m_CompositionGen)); } + else if (NoCaseCompare(*itr, "UnderwaterBases") == 0) + { + int GridSize = a_IniFile.GetValueSetI("Generator", "UnderwaterBaseGridSize", 1024); + int MaxDepth = a_IniFile.GetValueSetI("Generator", "UnderwaterBaseMaxDepth", 7); + int MaxSize = a_IniFile.GetValueSetI("Generator", "UnderwaterBaseMaxSize", 128); + m_FinishGens.push_back(new cUnderwaterBaseGen(Seed, GridSize, MaxDepth, MaxSize, *m_BiomeGen)); + } else if (NoCaseCompare(*itr, "Villages") == 0) { int GridSize = a_IniFile.GetValueSetI("Generator", "VillageGridSize", 384); |