summaryrefslogtreecommitdiffstats
path: root/source/Generating/ComposableGenerator.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-03-29 17:46:58 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-03-29 17:46:58 +0100
commita4963b69efff3bffeac40b1d22624f72007ac3b2 (patch)
tree108f01213c8296659f9e696f2063ae571aa1a7d2 /source/Generating/ComposableGenerator.cpp
parentCuboid: Added the DifX/Y/Z functions (diff)
downloadcuberite-a4963b69efff3bffeac40b1d22624f72007ac3b2.tar
cuberite-a4963b69efff3bffeac40b1d22624f72007ac3b2.tar.gz
cuberite-a4963b69efff3bffeac40b1d22624f72007ac3b2.tar.bz2
cuberite-a4963b69efff3bffeac40b1d22624f72007ac3b2.tar.lz
cuberite-a4963b69efff3bffeac40b1d22624f72007ac3b2.tar.xz
cuberite-a4963b69efff3bffeac40b1d22624f72007ac3b2.tar.zst
cuberite-a4963b69efff3bffeac40b1d22624f72007ac3b2.zip
Diffstat (limited to '')
-rw-r--r--source/Generating/ComposableGenerator.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/source/Generating/ComposableGenerator.cpp b/source/Generating/ComposableGenerator.cpp
index b809b249d..d08135afa 100644
--- a/source/Generating/ComposableGenerator.cpp
+++ b/source/Generating/ComposableGenerator.cpp
@@ -16,8 +16,10 @@
#include "CompoGen.h"
#include "StructGen.h"
#include "FinishGen.h"
-#include "Ravines.h"
+
#include "Caves.h"
+#include "MineShafts.h"
+#include "Ravines.h"
@@ -322,6 +324,12 @@ void cComposableGenerator::InitStructureGens(cIniFile & a_IniFile)
{
m_StructureGens.push_back(new cStructGenMarbleCaves(Seed));
}
+ else if (NoCaseCompare(*itr, "MineShafts") == 0)
+ {
+ int GridSize = a_IniFile.GetValueSetI("Generator", "MineShaftsGridSize", 96);
+ int MaxSystemSize = a_IniFile.GetValueSetI("Generator", "MineShaftsMaxSystemSize", 128);
+ m_StructureGens.push_back(new cStructGenMineShafts(Seed, GridSize, MaxSystemSize));
+ }
else if (NoCaseCompare(*itr, "OreNests") == 0)
{
m_StructureGens.push_back(new cStructGenOreNests(Seed));