From 1537ebed6fa880ca8f9df92e5ac99324375b91a5 Mon Sep 17 00:00:00 2001 From: peterbell10 Date: Fri, 22 Sep 2017 16:55:42 +0100 Subject: cWorld: Move Initialization from Start to the constructor. Start now does nothing more than launch the world's threads. --- src/Generating/ChunkGenerator.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/Generating/ChunkGenerator.h') diff --git a/src/Generating/ChunkGenerator.h b/src/Generating/ChunkGenerator.h index cbbe1d1c7..c4be505da 100644 --- a/src/Generating/ChunkGenerator.h +++ b/src/Generating/ChunkGenerator.h @@ -33,7 +33,7 @@ class cChunkDesc; class cChunkGenerator : - cIsThread + public cIsThread { typedef cIsThread super; @@ -110,7 +110,9 @@ public: cChunkGenerator (void); virtual ~cChunkGenerator() override; - bool Start(cPluginInterface & a_PluginInterface, cChunkSink & a_ChunkSink, cIniFile & a_IniFile); + /** Read settings from the ini file and initialize in preperation for being started. */ + bool Initialize(cPluginInterface & a_PluginInterface, cChunkSink & a_ChunkSink, cIniFile & a_IniFile); + void Stop(void); /** Queues the chunk for generation -- cgit v1.2.3