summaryrefslogtreecommitdiffstats
path: root/source/cChunkGenerator.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-02-17 18:56:25 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-02-17 18:56:25 +0100
commit510133bd35cad951a02f7d102f27badded7683a4 (patch)
tree3c995df9f2fd07806f053f6b57bd67686661a84c /source/cChunkGenerator.h
parentRemoved useless log messages (diff)
downloadcuberite-510133bd35cad951a02f7d102f27badded7683a4.tar
cuberite-510133bd35cad951a02f7d102f27badded7683a4.tar.gz
cuberite-510133bd35cad951a02f7d102f27badded7683a4.tar.bz2
cuberite-510133bd35cad951a02f7d102f27badded7683a4.tar.lz
cuberite-510133bd35cad951a02f7d102f27badded7683a4.tar.xz
cuberite-510133bd35cad951a02f7d102f27badded7683a4.tar.zst
cuberite-510133bd35cad951a02f7d102f27badded7683a4.zip
Diffstat (limited to '')
-rw-r--r--source/cChunkGenerator.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/source/cChunkGenerator.h b/source/cChunkGenerator.h
index 5de056572..8b0efc9e8 100644
--- a/source/cChunkGenerator.h
+++ b/source/cChunkGenerator.h
@@ -42,19 +42,21 @@ public:
bool Start(cWorld * a_World, const AString & a_WorldGeneratorName);
void Stop(void);
- void GenerateChunk(int a_ChunkX, int a_ChunkZ); // Queues the chunk for generation; removes duplicate requests
+ void GenerateChunk(int a_ChunkX, int a_ChunkY, int a_ChunkZ); // Queues the chunk for generation; removes duplicate requests
private:
- // cIsThread override:
- virtual void Execute(void) override;
-
cWorld * m_World;
cWorldGenerator * m_pWorldGenerator;
cCriticalSection m_CS;
cChunkCoordsList m_Queue;
cEvent m_Event; // Set when an item is added to the queue or the thread should terminate
+
+ // cIsThread override:
+ virtual void Execute(void) override;
+
+ void DoGenerate(int a_ChunkX, int a_ChunkY, int a_ChunkZ);
};