#include <StructGen.h>
|
void | ApplyTreeImage (int a_ChunkX, int a_ChunkZ, cChunkDesc &a_ChunkDesc, const sSetBlockVector &a_Image, sSetBlockVector &a_Overflow) |
| Applies an image into chunk blockdata; all blocks outside the chunk will be appended to a_Overflow. More...
|
|
void | GenerateSingleTree (int a_ChunkX, int a_ChunkZ, int a_Seq, Vector3i a_Pos, cChunkDesc &a_ChunkDesc, sSetBlockVector &a_OutsideLogs, sSetBlockVector &a_OutsideOther) |
| Generates and applies an image of a single tree. More...
|
|
virtual void | GenFinish (cChunkDesc &a_ChunkDesc) override |
|
double | GetNumTrees (int a_ChunkX, int a_ChunkZ, const cChunkDef::BiomeMap &a_Biomes) |
| Get the the number of trees to generate in a_Chunk If the value is between 0 and 1, it should be interpreted as the probability that a tree should be generated. More...
|
|
Definition at line 21 of file StructGen.h.
◆ cStructGenTrees()
◆ ApplyTreeImage()
Applies an image into chunk blockdata; all blocks outside the chunk will be appended to a_Overflow.
Definition at line 161 of file StructGen.cpp.
◆ GenerateSingleTree()
Generates and applies an image of a single tree.
Parts of the tree inside the chunk are applied to a_ChunkDesc. Parts of the tree outside the chunk are stored in a_OutsideXYZ
Definition at line 96 of file StructGen.cpp.
◆ GenFinish()
void cStructGenTrees::GenFinish |
( |
cChunkDesc & |
a_ChunkDesc | ) |
|
|
overrideprotectedvirtual |
◆ GetNumTrees()
double cStructGenTrees::GetNumTrees |
( |
int |
a_ChunkX, |
|
|
int |
a_ChunkZ, |
|
|
const cChunkDef::BiomeMap & |
a_Biomes |
|
) |
| |
|
protected |
Get the the number of trees to generate in a_Chunk If the value is between 0 and 1, it should be interpreted as the probability that a tree should be generated.
Definition at line 215 of file StructGen.cpp.
◆ m_BiomeGen
◆ m_CompositionGen
◆ m_Noise
cNoise cStructGenTrees::m_Noise |
|
protected |
◆ m_Seed
int cStructGenTrees::m_Seed |
|
protected |
◆ m_ShapeGen
The documentation for this class was generated from the following files: