summaryrefslogtreecommitdiffstats
path: root/source/Generating/ComposableGenerator.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-04-27 21:46:25 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-04-27 21:46:25 +0200
commitac8db4d16b7c097d31a7952428a499c5cd6ef849 (patch)
treefd88aa0355091567e7cc22caa25c232bc2d524d0 /source/Generating/ComposableGenerator.h
parentFixed a few possible crashes upon server stop (diff)
downloadcuberite-ac8db4d16b7c097d31a7952428a499c5cd6ef849.tar
cuberite-ac8db4d16b7c097d31a7952428a499c5cd6ef849.tar.gz
cuberite-ac8db4d16b7c097d31a7952428a499c5cd6ef849.tar.bz2
cuberite-ac8db4d16b7c097d31a7952428a499c5cd6ef849.tar.lz
cuberite-ac8db4d16b7c097d31a7952428a499c5cd6ef849.tar.xz
cuberite-ac8db4d16b7c097d31a7952428a499c5cd6ef849.tar.zst
cuberite-ac8db4d16b7c097d31a7952428a499c5cd6ef849.zip
Diffstat (limited to 'source/Generating/ComposableGenerator.h')
-rw-r--r--source/Generating/ComposableGenerator.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/source/Generating/ComposableGenerator.h b/source/Generating/ComposableGenerator.h
index fca2c26c6..fb8e4fdc6 100644
--- a/source/Generating/ComposableGenerator.h
+++ b/source/Generating/ComposableGenerator.h
@@ -24,6 +24,13 @@ See http://forum.mc-server.org/showthread.php?tid=409 for details.
+// fwd: Noise3DGenerator.h
+class cNoise3DComposable;
+
+
+
+
+
/** The interface that a biome generator must implement
A biome generator takes chunk coords on input and outputs an array of biome indices for that chunk on output.
The output array is sequenced in the same way as the MapChunk packet's biome data.
@@ -137,6 +144,10 @@ protected:
cTerrainCompositionGen * m_CompositionGen;
cStructureGenList m_StructureGens;
cFinishGenList m_FinishGens;
+
+ // Specific generators that can be reused for different purposes - we don't want to create multiple objects for them
+ cNoise3DComposable * m_Noise3DComposable;
+ int m_NumNoise3DComposableUses; // How many times is it actually used?
/// Reads the biome gen settings from the ini and initializes m_BiomeGen accordingly
void InitBiomeGen(cIniFile & a_IniFile);