20 #include "../Noise/Noise.h"
118 cCompoGenCache(std::unique_ptr<cTerrainCompositionGen> a_Underlying,
int a_CacheSize);
unsigned char BLOCKTYPE
The datatype used by blockdata.
BLOCKTYPE BlockTypes[NumBlocks]
The type used for block type operations and storage, AXIS_ORDER ordering.
HEIGHTTYPE HeightMap[Width *Width]
The type used for any heightmap operations and storage; idx = x + Width * z; Height points to the hig...
Byte Shape[256 *16 *16]
The datatype used to represent the entire chunk worth of shape.
NIBBLETYPE BlockNibbleBytes[cChunkDef::NumBlocks]
Uncompressed block metas, 1 meta per byte.
virtual void ComposeTerrain(cChunkDesc &a_ChunkDesc, const cChunkDesc::Shape &a_Shape) override
Generates the chunk's composition into a_ChunkDesc, using the terrain shape provided in a_Shape.
virtual void InitializeCompoGen(cIniFile &a_IniFile) override
Reads parameters from the ini file, prepares generator for use.
cCompoGenDebugBiomes(void)
virtual void ComposeTerrain(cChunkDesc &a_ChunkDesc, const cChunkDesc::Shape &a_Shape) override
Generates the chunk's composition into a_ChunkDesc, using the terrain shape provided in a_Shape.
virtual void ComposeTerrain(cChunkDesc &a_ChunkDesc, const cChunkDesc::Shape &a_Shape) override
Generates the chunk's composition into a_ChunkDesc, using the terrain shape provided in a_Shape.
BLOCKTYPE m_BlockBeachBottom
virtual void InitializeCompoGen(cIniFile &a_IniFile) override
Reads parameters from the ini file, prepares generator for use.
cCompoGenNether(int a_Seed)
virtual void ComposeTerrain(cChunkDesc &a_ChunkDesc, const cChunkDesc::Shape &a_Shape) override
Generates the chunk's composition into a_ChunkDesc, using the terrain shape provided in a_Shape.
virtual void InitializeCompoGen(cIniFile &a_IniFile) override
Reads parameters from the ini file, prepares generator for use.
Caches most-recently-used chunk composition of another composition generator.
virtual ~cCompoGenCache() override
virtual void InitializeCompoGen(cIniFile &a_IniFile) override
Reads parameters from the ini file, prepares generator for use.
virtual void ComposeTerrain(cChunkDesc &a_ChunkDesc, const cChunkDesc::Shape &a_Shape) override
Generates the chunk's composition into a_ChunkDesc, using the terrain shape provided in a_Shape.
cCompoGenCache(std::unique_ptr< cTerrainCompositionGen > a_Underlying, int a_CacheSize)
std::unique_ptr< cTerrainCompositionGen > m_Underlying
cChunkDef::BlockTypes m_BlockTypes
cChunkDesc::BlockNibbleBytes m_BlockMetas
cChunkDef::HeightMap m_HeightMap
The interface that a terrain composition generator must implement Terrain composition takes chunk coo...