summaryrefslogtreecommitdiffstats
path: root/source/cWorldGenerator.h
diff options
context:
space:
mode:
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 );
};