summaryrefslogtreecommitdiffstats
path: root/src/Generating/BioGen.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-09-04 14:09:54 +0200
committerMattes D <github@xoft.cz>2014-09-04 14:09:54 +0200
commitb590eed42fe5a19acd3314610dc6e7fec3160ada (patch)
tree813d732ba13ae93b796b720a38a693ac790665f4 /src/Generating/BioGen.h
parentAnvil: Cleanly refuse to store data that is too large. (diff)
parentchange to linear calculation (diff)
downloadcuberite-b590eed42fe5a19acd3314610dc6e7fec3160ada.tar
cuberite-b590eed42fe5a19acd3314610dc6e7fec3160ada.tar.gz
cuberite-b590eed42fe5a19acd3314610dc6e7fec3160ada.tar.bz2
cuberite-b590eed42fe5a19acd3314610dc6e7fec3160ada.tar.lz
cuberite-b590eed42fe5a19acd3314610dc6e7fec3160ada.tar.xz
cuberite-b590eed42fe5a19acd3314610dc6e7fec3160ada.tar.zst
cuberite-b590eed42fe5a19acd3314610dc6e7fec3160ada.zip
Diffstat (limited to '')
-rw-r--r--src/Generating/BioGen.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/Generating/BioGen.h b/src/Generating/BioGen.h
index 227ec97d7..a4cf95a72 100644
--- a/src/Generating/BioGen.h
+++ b/src/Generating/BioGen.h
@@ -80,6 +80,32 @@ protected:
+class cBioGenMulticache :
+ public cBiomeGen
+{
+
+ typedef cBiomeGen super;
+
+public:
+ /*
+ a_CacheSize defines the size of each singular cache
+ a_CachesLength defines how many caches are used for the multicache
+ */
+ cBioGenMulticache(cBiomeGen * a_BioGenToCache, size_t a_CacheSize, size_t a_CachesLength); // Doesn't take ownership of a_BioGenToCache
+ ~cBioGenMulticache();
+
+protected:
+ size_t m_CachesLength;
+ std::vector<cBiomeGen*> m_Caches;
+
+ virtual void GenBiomes(int a_ChunkX, int a_ChunkZ, cChunkDef::BiomeMap & a_BiomeMap) override;
+ virtual void InitializeBiomeGen(cIniFile & a_IniFile) override;
+};
+
+
+
+
+
/// Base class for generators that use a list of available biomes. This class takes care of the list.
class cBiomeGenList :
public cBiomeGen