diff options
author | madmaxoft <github@xoft.cz> | 2014-01-09 10:21:26 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-01-09 10:21:26 +0100 |
commit | 1ef20e858fd5b38ede0e2de2d697cb894e245964 (patch) | |
tree | c33cc07d3eaa2dd15b06343811ff369ca6da4e33 /src/Generating/ComposableGenerator.h | |
parent | Windows nightbuild updated to generate .example.ini files. (diff) | |
download | cuberite-1ef20e858fd5b38ede0e2de2d697cb894e245964.tar cuberite-1ef20e858fd5b38ede0e2de2d697cb894e245964.tar.gz cuberite-1ef20e858fd5b38ede0e2de2d697cb894e245964.tar.bz2 cuberite-1ef20e858fd5b38ede0e2de2d697cb894e245964.tar.lz cuberite-1ef20e858fd5b38ede0e2de2d697cb894e245964.tar.xz cuberite-1ef20e858fd5b38ede0e2de2d697cb894e245964.tar.zst cuberite-1ef20e858fd5b38ede0e2de2d697cb894e245964.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Generating/ComposableGenerator.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/Generating/ComposableGenerator.h b/src/Generating/ComposableGenerator.h index 732f64303..a6b77f7be 100644 --- a/src/Generating/ComposableGenerator.h +++ b/src/Generating/ComposableGenerator.h @@ -50,7 +50,7 @@ public: virtual void InitializeBiomeGen(cIniFile & a_IniFile) {} /// Creates the correct BiomeGen descendant based on the ini file settings and the seed provided. - /// a_CacheOffByDefault gets set to whether the cache should be enabled by default + /// a_CacheOffByDefault gets set to whether the cache should be disabled by default /// Used in BiomeVisualiser, too. /// Implemented in BioGen.cpp! static cBiomeGen * CreateBiomeGen(cIniFile & a_IniFile, int a_Seed, bool & a_CacheOffByDefault); @@ -77,6 +77,13 @@ public: /// Reads parameters from the ini file, prepares generator for use. virtual void InitializeHeightGen(cIniFile & a_IniFile) {} + + /** Creates the correct TerrainHeightGen descendant based on the ini file settings and the seed provided. + a_BiomeGen is the underlying biome generator, some height generators may depend on it to generate more biomes + a_CacheOffByDefault gets set to whether the cache should be disabled by default + Implemented in HeiGen.cpp! + */ + static cTerrainHeightGen * CreateHeightGen(cIniFile & a_IniFile, cBiomeGen & a_BiomeGen, int a_Seed, bool & a_CacheOffByDefault); } ; |