|
struct | cConnection |
| The type used for storing a connection from one piece to another, while building the piece tree. More...
|
|
struct | cFreeConnector |
| The type used for storing a pool of connectors that will be attempted to expand by another piece. More...
|
|
|
| cGen (int a_Seed, cBiomeGen &a_BiomeGen, cTerrainHeightGen &a_HeightGen, int a_SeaLevel, const AString &a_Name) |
|
virtual cStructurePtr | CreateStructure (int a_GridX, int a_GridZ, int a_OriginX, int a_OriginZ) override |
| Create a new structure at the specified gridpoint. More...
|
|
bool | LoadFromFile (const AString &a_FileName) |
| Loads the piecepool from a file. More...
|
|
| cGridStructGen (int a_Seed) |
| Creates a new instance that has the generation parameters set to defaults. More...
|
|
| cGridStructGen (int a_Seed, int a_GridSizeX, int a_GridSizeZ, int a_MaxOffsetX, int a_MaxOffsetZ, int a_MaxStructureSizeX, int a_MaxStructureSizeZ, size_t a_MaxCacheSize) |
|
virtual void | GenFinish (cChunkDesc &a_ChunkDesc) override |
|
void | SetGeneratorParams (const AStringMap &a_GeneratorParams) |
| Sets the generator params based on the dictionary passed in. More...
|
|
virtual | ~cFinishGen () |
|
Definition at line 16 of file PieceStructuresGen.cpp.
◆ cConnections
◆ cFreeConnectors
◆ Super
◆ cGen()
◆ CreateStructure()
virtual cStructurePtr cPieceStructuresGen::cGen::CreateStructure |
( |
int |
a_GridX, |
|
|
int |
a_GridZ, |
|
|
int |
a_OriginX, |
|
|
int |
a_OriginZ |
|
) |
| |
|
inlineoverridevirtual |
◆ LoadFromFile()
bool cPieceStructuresGen::cGen::LoadFromFile |
( |
const AString & |
a_FileName | ) |
|
|
inline |
Loads the piecepool from a file.
Returns true on success, logs warning and returns false on failure.
Definition at line 37 of file PieceStructuresGen.cpp.
◆ m_BiomeGen
cBiomeGen& cPieceStructuresGen::cGen::m_BiomeGen |
|
protected |
The underlying biome generator that defines whether the structure is created or not.
Definition at line 98 of file PieceStructuresGen.cpp.
◆ m_HeightGen
The underlying height generator, used to position the prefabs crossing chunk borders if they are set to FitGround.
Definition at line 101 of file PieceStructuresGen.cpp.
◆ m_MaxDepth
int cPieceStructuresGen::cGen::m_MaxDepth |
|
protected |
◆ m_Name
AString cPieceStructuresGen::cGen::m_Name |
|
protected |
◆ m_PiecePool
◆ m_SeaLevel
int cPieceStructuresGen::cGen::m_SeaLevel |
|
protected |
The world's sea level, if available.
Used for some cVerticalStrategy descendants.
Definition at line 104 of file PieceStructuresGen.cpp.
The documentation for this class was generated from the following file: