summaryrefslogtreecommitdiffstats
path: root/source/StructGen.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-07-15 15:33:43 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-07-15 15:33:43 +0200
commiteddc360bd7f82aa8e45d1ff2c9de5a3767dea782 (patch)
tree04d589ea268bd3be1efb560e344dd4fd7b0efe39 /source/StructGen.h
parentSquirrel: removed CLR from dependencies (we're not in C#) (diff)
downloadcuberite-eddc360bd7f82aa8e45d1ff2c9de5a3767dea782.tar
cuberite-eddc360bd7f82aa8e45d1ff2c9de5a3767dea782.tar.gz
cuberite-eddc360bd7f82aa8e45d1ff2c9de5a3767dea782.tar.bz2
cuberite-eddc360bd7f82aa8e45d1ff2c9de5a3767dea782.tar.lz
cuberite-eddc360bd7f82aa8e45d1ff2c9de5a3767dea782.tar.xz
cuberite-eddc360bd7f82aa8e45d1ff2c9de5a3767dea782.tar.zst
cuberite-eddc360bd7f82aa8e45d1ff2c9de5a3767dea782.zip
Diffstat (limited to 'source/StructGen.h')
-rw-r--r--source/StructGen.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/source/StructGen.h b/source/StructGen.h
index 8b799d013..c422069b1 100644
--- a/source/StructGen.h
+++ b/source/StructGen.h
@@ -40,15 +40,29 @@ protected:
cTerrainHeightGen * m_HeightGen;
cTerrainCompositionGen * m_CompositionGen;
+ /** Generates and applies an image of a single tree.
+ Parts of the tree inside the chunk are applied to a_BlockX.
+ Parts of the tree outside the chunk are stored in a_OutsideX
+ */
void GenerateSingleTree(
int a_ChunkX, int a_ChunkZ, int a_Seq,
cChunkDef::BlockTypes & a_BlockTypes,
cChunkDef::BlockNibbles & a_BlockMetas,
const cChunkDef::HeightMap & a_Height,
const cChunkDef::BiomeMap & a_Biomes,
- sSetBlockVector & a_Blocks
+ sSetBlockVector & a_OutsideLogs,
+ sSetBlockVector & a_OutsideOther
) ;
+ /// Applies an image into chunk blockdata; all blocks outside the chunk will be appended to a_Overflow
+ void cStructGenTrees::ApplyTreeImage(
+ int a_ChunkX, int a_ChunkZ,
+ cChunkDef::BlockTypes & a_BlockTypes,
+ cChunkDef::BlockNibbles & a_BlockMetas,
+ const sSetBlockVector & a_Image,
+ sSetBlockVector & a_Overflow
+ );
+
int GetNumTrees(
int a_ChunkX, int a_ChunkZ,
const cChunkDef::BiomeMap & a_Biomes