summaryrefslogtreecommitdiffstats
path: root/src/Generating/StructGen.h
diff options
context:
space:
mode:
authormBornand <63592189+mBornand@users.noreply.github.com>2020-05-06 17:31:52 +0200
committerGitHub <noreply@github.com>2020-05-06 17:31:52 +0200
commitb9f441294d0c45bf3e81a0573ad6fad68b1ba600 (patch)
treeef7dc48589a5c14d76bc602ea9851a34974816a8 /src/Generating/StructGen.h
parentFixed various MSVC warnings. (diff)
downloadcuberite-b9f441294d0c45bf3e81a0573ad6fad68b1ba600.tar
cuberite-b9f441294d0c45bf3e81a0573ad6fad68b1ba600.tar.gz
cuberite-b9f441294d0c45bf3e81a0573ad6fad68b1ba600.tar.bz2
cuberite-b9f441294d0c45bf3e81a0573ad6fad68b1ba600.tar.lz
cuberite-b9f441294d0c45bf3e81a0573ad6fad68b1ba600.tar.xz
cuberite-b9f441294d0c45bf3e81a0573ad6fad68b1ba600.tar.zst
cuberite-b9f441294d0c45bf3e81a0573ad6fad68b1ba600.zip
Diffstat (limited to 'src/Generating/StructGen.h')
-rw-r--r--src/Generating/StructGen.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/Generating/StructGen.h b/src/Generating/StructGen.h
index 15671453a..bbbdf9651 100644
--- a/src/Generating/StructGen.h
+++ b/src/Generating/StructGen.h
@@ -18,8 +18,6 @@
-
-
class cStructGenTrees :
public cFinishGen
{
@@ -46,6 +44,7 @@ protected:
*/
void GenerateSingleTree(
int a_ChunkX, int a_ChunkZ, int a_Seq,
+ Vector3i a_Pos,
cChunkDesc & a_ChunkDesc,
sSetBlockVector & a_OutsideLogs,
sSetBlockVector & a_OutsideOther
@@ -59,7 +58,10 @@ protected:
sSetBlockVector & a_Overflow
);
- int GetNumTrees(
+ /** 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.
+ */
+ double GetNumTrees(
int a_ChunkX, int a_ChunkZ,
const cChunkDef::BiomeMap & a_Biomes
);