Cuberite
A lightweight, fast and extensible game server for Minecraft
|
The interface that a biome generator must implement A biome generator takes chunk coords on input and outputs an array of biome indices for that chunk on output. More...
#include <ComposableGenerator.h>
Public Member Functions | |
virtual void | GenBiomes (cChunkCoords a_ChunkCoords, cChunkDef::BiomeMap &a_BiomeMap)=0 |
Generates biomes for the given chunk. More... | |
virtual void | InitializeBiomeGen (cIniFile &a_IniFile) |
Reads parameters from the ini file, prepares generator for use. More... | |
virtual | ~cBiomeGen () |
Static Public Member Functions | |
static std::unique_ptr< cBiomeGen > | CreateBiomeGen (cIniFile &a_IniFile, int a_Seed, bool &a_CacheOffByDefault) |
Creates the correct BiomeGen descendant based on the ini file settings. More... | |
The interface that a biome generator must implement A biome generator takes chunk coords on input and outputs an array of biome indices for that chunk on output.
The output array is sequenced in the same way as the MapChunk packet's biome data.
Definition at line 42 of file ComposableGenerator.h.
|
inlinevirtual |
Definition at line 45 of file ComposableGenerator.h.
|
static |
Creates the correct BiomeGen descendant based on the ini file settings.
a_Seed is the seed read from the INI file. a_CacheOffByDefault gets set to whether the cache should be disabled by default. Used in BiomeVisualiser, too. Implemented in BioGen.cpp!
Definition at line 1136 of file BioGen.cpp.
|
pure virtual |
Generates biomes for the given chunk.
Implemented in cBioGenProtGrown, cBioGenGrown, cBioGenTwoLevel, cBioGenMultiStepMap, cBioGenDistortedVoronoi, cBioGenVoronoi, cBioGenCheckerboard, cBioGenMulticache, cBioGenCache, and cBioGenConstant.
|
inlinevirtual |
Reads parameters from the ini file, prepares generator for use.
Reimplemented in cBioGenTwoLevel, cBioGenMultiStepMap, cBioGenDistortedVoronoi, cBioGenVoronoi, cBioGenCheckerboard, cBioGenMulticache, cBioGenCache, and cBioGenConstant.
Definition at line 51 of file ComposableGenerator.h.