summaryrefslogtreecommitdiffstats
path: root/source/cWorldGenerator.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-02-18 18:53:22 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-02-18 18:53:22 +0100
commit499745c1c7a865941b3c102532777c19dfb92ca4 (patch)
treedeccb8ffdafe6dbb85e8e630eaca0a6e5a66c5ed /source/cWorldGenerator.h
parentLogging: added thread ID to the log output in debug builds (diff)
downloadcuberite-499745c1c7a865941b3c102532777c19dfb92ca4.tar
cuberite-499745c1c7a865941b3c102532777c19dfb92ca4.tar.gz
cuberite-499745c1c7a865941b3c102532777c19dfb92ca4.tar.bz2
cuberite-499745c1c7a865941b3c102532777c19dfb92ca4.tar.lz
cuberite-499745c1c7a865941b3c102532777c19dfb92ca4.tar.xz
cuberite-499745c1c7a865941b3c102532777c19dfb92ca4.tar.zst
cuberite-499745c1c7a865941b3c102532777c19dfb92ca4.zip
Diffstat (limited to 'source/cWorldGenerator.h')
-rw-r--r--source/cWorldGenerator.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/source/cWorldGenerator.h b/source/cWorldGenerator.h
index 208178d4a..92c2a1d0c 100644
--- a/source/cWorldGenerator.h
+++ b/source/cWorldGenerator.h
@@ -18,7 +18,7 @@ public:
cWorldGenerator(cWorld * a_World);
~cWorldGenerator();
- virtual void GenerateChunk(int a_ChunkX, int a_ChunkY, int a_ChunkZ);
+ virtual void GenerateChunk(int a_ChunkX, int a_ChunkY, int a_ChunkZ, char * a_BlockData, cEntityList & a_Entities, cBlockEntityList & a_BlockEntities);
protected:
@@ -27,8 +27,11 @@ protected:
// Thread-unsafe:
MTRand r1;
- virtual void GenerateTerrain( cChunkPtr a_Chunk );
- virtual void GenerateFoliage( cChunkPtr a_Chunk );
+ static unsigned int MakeIndex(int x, int y, int z );
+
+ virtual void GenerateTerrain(int a_ChunkX, int a_ChunkY, int a_ChunkZ, char * a_BlockData);
+
+ virtual void GenerateFoliage(cChunkPtr & a_Chunk );
};