summaryrefslogtreecommitdiffstats
path: root/source/cWorldGenerator.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-02-16 18:45:26 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-02-16 18:45:26 +0100
commit2928cb6853f1e007e98f174c37d75c793a0c09cc (patch)
tree25865a247f5460f185f7f058e0db54637b487a5d /source/cWorldGenerator.h
parentGot rid of dangerous GetEntity(), not using DoWithEntity() (diff)
downloadcuberite-2928cb6853f1e007e98f174c37d75c793a0c09cc.tar
cuberite-2928cb6853f1e007e98f174c37d75c793a0c09cc.tar.gz
cuberite-2928cb6853f1e007e98f174c37d75c793a0c09cc.tar.bz2
cuberite-2928cb6853f1e007e98f174c37d75c793a0c09cc.tar.lz
cuberite-2928cb6853f1e007e98f174c37d75c793a0c09cc.tar.xz
cuberite-2928cb6853f1e007e98f174c37d75c793a0c09cc.tar.zst
cuberite-2928cb6853f1e007e98f174c37d75c793a0c09cc.zip
Diffstat (limited to 'source/cWorldGenerator.h')
-rw-r--r--source/cWorldGenerator.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/source/cWorldGenerator.h b/source/cWorldGenerator.h
index 933105d24..208178d4a 100644
--- a/source/cWorldGenerator.h
+++ b/source/cWorldGenerator.h
@@ -15,13 +15,16 @@
class cWorldGenerator
{
public:
- cWorldGenerator();
+ cWorldGenerator(cWorld * a_World);
~cWorldGenerator();
- virtual void GenerateChunk( cChunkPtr a_Chunk );
+ virtual void GenerateChunk(int a_ChunkX, int a_ChunkY, int a_ChunkZ);
protected:
+ cWorld * m_World;
+
+ // Thread-unsafe:
MTRand r1;
virtual void GenerateTerrain( cChunkPtr a_Chunk );