Cuberite
A lightweight, fast and extensible game server for Minecraft
|
#include <PieceStructuresGen.h>
Classes | |
class | cGen |
Public Member Functions | |
cPieceStructuresGen (int a_Seed) | |
virtual void | GenFinish (cChunkDesc &a_ChunkDesc) override |
bool | Initialize (const AString &a_Prefabs, int a_SeaLevel, cBiomeGen &a_BiomeGen, cTerrainHeightGen &a_HeightGen) |
Initializes the generator based on the specified prefab sets. More... | |
Public Member Functions inherited from cFinishGen | |
virtual | ~cFinishGen () |
Protected Types | |
typedef std::shared_ptr< cGen > | cGenPtr |
typedef std::vector< cGenPtr > | cGenPtrs |
Protected Attributes | |
cGenPtrs | m_Gens |
The individual structure generators, one per piecepool. More... | |
int | m_Seed |
The seed for the random number generator. More... | |
Private Types | |
using | Super = cFinishGen |
Definition at line 24 of file PieceStructuresGen.h.
|
protected |
Definition at line 47 of file PieceStructuresGen.h.
|
protected |
Definition at line 48 of file PieceStructuresGen.h.
|
private |
Definition at line 27 of file PieceStructuresGen.h.
cPieceStructuresGen::cPieceStructuresGen | ( | int | a_Seed | ) |
Definition at line 123 of file PieceStructuresGen.cpp.
|
overridevirtual |
Implements cFinishGen.
Definition at line 168 of file PieceStructuresGen.cpp.
bool cPieceStructuresGen::Initialize | ( | const AString & | a_Prefabs, |
int | a_SeaLevel, | ||
cBiomeGen & | a_BiomeGen, | ||
cTerrainHeightGen & | a_HeightGen | ||
) |
Initializes the generator based on the specified prefab sets.
a_Prefabs contains the list of prefab sets that should be activated, "|"-separated. All problems are logged to the console and the generator skips over them. Returns true if at least one prefab set is valid (the generator should be kept).
Definition at line 132 of file PieceStructuresGen.cpp.
|
protected |
The individual structure generators, one per piecepool.
Definition at line 52 of file PieceStructuresGen.h.
|
protected |
The seed for the random number generator.
Definition at line 55 of file PieceStructuresGen.h.