3 #include "../Defines.h"
EMCSBiome
Biome IDs The first batch corresponds to the clientside biomes, used by MineCraft.
eDimension
Dimension of a world.
Wraps the chunk coords into a single structure.
EMCSBiome BiomeMap[Width *Width]
The type used for any biomemap operations and storage inside Cuberite, using Cuberite biomes (need no...
The interface that all chunk generators must implement to provide the generated chunks.
virtual ~cChunkGenerator()
int GetSeed(void) const
Returns the seed that was read from the INI file.
virtual EMCSBiome GetBiomeAt(int a_BlockX, int a_BlockZ)
Returns the biome at the specified coords.
virtual void Initialize(cIniFile &a_IniFile)
Called to initialize the generator on server startup.
eDimension m_Dimension
The dimension, read from the INI file.
virtual void GenerateBiomes(cChunkCoords a_ChunkCoords, cChunkDef::BiomeMap &a_BiomeMap)=0
Generates the biomes for the specified chunk.
int m_Seed
The main seed, read from the INI file, used for the entire generator.
virtual void Generate(cChunkDesc &a_ChunkDesc)=0
Does the actual chunk generation.
static std::unique_ptr< cChunkGenerator > CreateFromIniFile(cIniFile &a_IniFile)
Creates and initializes the entire generator based on the settings in the INI file.