diff options
author | Mattes D <github@xoft.cz> | 2014-09-04 14:09:54 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-09-04 14:09:54 +0200 |
commit | b590eed42fe5a19acd3314610dc6e7fec3160ada (patch) | |
tree | 813d732ba13ae93b796b720a38a693ac790665f4 /src/Generating/BioGen.h | |
parent | Anvil: Cleanly refuse to store data that is too large. (diff) | |
parent | change to linear calculation (diff) | |
download | cuberite-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.h | 26 |
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 |