From ac8db4d16b7c097d31a7952428a499c5cd6ef849 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sat, 27 Apr 2013 19:46:25 +0000 Subject: Noise3D made into Composable - both a HeightGen and a CompositionGen git-svn-id: http://mc-server.googlecode.com/svn/trunk@1419 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Generating/ComposableGenerator.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'source/Generating/ComposableGenerator.h') 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); -- cgit v1.2.3