summaryrefslogtreecommitdiffstats
path: root/src/Generating/ComposableGenerator.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-05-31 22:06:14 +0200
committermadmaxoft <github@xoft.cz>2014-05-31 22:06:14 +0200
commit7672ca7eefc7233b507938d0592d1f565191d0ee (patch)
tree0647211f12853c4028585b8d2c37f22284db495b /src/Generating/ComposableGenerator.cpp
parentMerge pull request #1018 from mc-server/VillageGen (diff)
downloadcuberite-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 '')
-rw-r--r--src/Generating/ComposableGenerator.cpp8
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);