diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-02-18 20:18:16 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-02-18 20:18:16 +0100 |
commit | 76a92a21d11265ad17dffd11101ea87ce5c60e6a (patch) | |
tree | 9e6890042c4157ce1ee85d6e0e0a01a3b8e73efc /source/cWorldGenerator.h | |
parent | Thread-safe chunk generation, storage and generator are queried for progress while initializing server (diff) | |
download | cuberite-76a92a21d11265ad17dffd11101ea87ce5c60e6a.tar cuberite-76a92a21d11265ad17dffd11101ea87ce5c60e6a.tar.gz cuberite-76a92a21d11265ad17dffd11101ea87ce5c60e6a.tar.bz2 cuberite-76a92a21d11265ad17dffd11101ea87ce5c60e6a.tar.lz cuberite-76a92a21d11265ad17dffd11101ea87ce5c60e6a.tar.xz cuberite-76a92a21d11265ad17dffd11101ea87ce5c60e6a.tar.zst cuberite-76a92a21d11265ad17dffd11101ea87ce5c60e6a.zip |
Diffstat (limited to '')
-rw-r--r-- | source/cWorldGenerator.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/cWorldGenerator.h b/source/cWorldGenerator.h index 92c2a1d0c..1852e74d2 100644 --- a/source/cWorldGenerator.h +++ b/source/cWorldGenerator.h @@ -19,6 +19,8 @@ public: ~cWorldGenerator();
virtual void GenerateChunk(int a_ChunkX, int a_ChunkY, int a_ChunkZ, char * a_BlockData, cEntityList & a_Entities, cBlockEntityList & a_BlockEntities);
+
+ virtual void PostGenerateChunk(int a_ChunkX, int a_ChunkY, int a_ChunkZ); // Called when the chunk has been already generated and set valid
protected:
@@ -31,8 +33,10 @@ protected: virtual void GenerateTerrain(int a_ChunkX, int a_ChunkY, int a_ChunkZ, char * a_BlockData);
- virtual void GenerateFoliage(cChunkPtr & a_Chunk );
+ virtual void GenerateFoliage(int a_ChunkX, int a_ChunkY, int a_ChunkZ);
+ /// Checks if the chunk has all 8 neighbors valid, if so, foliage is generated on that chunk
+ void CheckNeighbors(int a_ChunkX, int a_ChunkY, int a_ChunkZ);
};
|