From c0a6c2b533ac8e3478166c4f33224134e172a6b6 Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Thu, 28 Nov 2013 20:15:52 +0100 Subject: Moved BiomeGen creation from INI file data to BioGen.cpp. This way it can be shared between MCServer and BiomeVisualiser. --- src/Generating/ComposableGenerator.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/Generating/ComposableGenerator.h') diff --git a/src/Generating/ComposableGenerator.h b/src/Generating/ComposableGenerator.h index d5e33a439..732f64303 100644 --- a/src/Generating/ComposableGenerator.h +++ b/src/Generating/ComposableGenerator.h @@ -48,6 +48,13 @@ public: /// Reads parameters from the ini file, prepares generator for use. 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 + /// Used in BiomeVisualiser, too. + /// Implemented in BioGen.cpp! + static cBiomeGen * CreateBiomeGen(cIniFile & a_IniFile, int a_Seed, bool & a_CacheOffByDefault); + } ; -- cgit v1.2.3