Cuberite
A lightweight, fast and extensible game server for Minecraft
|
Converts old-style height-generators into new-style shape-generators. More...
Public Member Functions | |
cTerrainHeightToShapeGen (std::unique_ptr< cTerrainHeightGen > a_HeightGen) | |
virtual void | GenShape (cChunkCoords a_ChunkCoords, cChunkDesc::Shape &a_Shape) override |
Generates the shape for the given chunk. More... | |
virtual void | InitializeShapeGen (cIniFile &a_IniFile) override |
Reads parameters from the ini file, prepares generator for use. More... | |
Public Member Functions inherited from cTerrainShapeGen | |
virtual | ~cTerrainShapeGen () |
Protected Attributes | |
std::unique_ptr< cTerrainHeightGen > | m_HeightGen |
The height generator being converted. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from cTerrainShapeGen | |
static std::unique_ptr< cTerrainShapeGen > | CreateShapeGen (cIniFile &a_IniFile, cBiomeGen &a_BiomeGen, int a_Seed, bool &a_CacheOffByDefault) |
Creates the correct TerrainShapeGen descendant based on the ini file settings and the seed provided. More... | |
Converts old-style height-generators into new-style shape-generators.
Definition at line 22 of file ShapeGen.cpp.
|
inline |
Definition at line 26 of file ShapeGen.cpp.
|
inlineoverridevirtual |
Generates the shape for the given chunk.
Implements cTerrainShapeGen.
Definition at line 33 of file ShapeGen.cpp.
|
inlineoverridevirtual |
Reads parameters from the ini file, prepares generator for use.
Reimplemented from cTerrainShapeGen.
Definition at line 59 of file ShapeGen.cpp.
|
protected |
The height generator being converted.
Definition at line 66 of file ShapeGen.cpp.