summaryrefslogtreecommitdiffstats
path: root/Tools/QtBiomeVisualiser/ChunkSource.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-10-28 22:29:46 +0100
committerMattes D <github@xoft.cz>2014-10-28 22:29:46 +0100
commit791f8912125b8b522b8ba197f34c9e2ffb286911 (patch)
treeeae9d305bd7ad06e988a6db4a03d760ded42a6ef /Tools/QtBiomeVisualiser/ChunkSource.h
parentcIntGen: Added a virtual destructor. (diff)
parentQtBiomeVisualiser: Added quick shutdown to region loaders. (diff)
downloadcuberite-791f8912125b8b522b8ba197f34c9e2ffb286911.tar
cuberite-791f8912125b8b522b8ba197f34c9e2ffb286911.tar.gz
cuberite-791f8912125b8b522b8ba197f34c9e2ffb286911.tar.bz2
cuberite-791f8912125b8b522b8ba197f34c9e2ffb286911.tar.lz
cuberite-791f8912125b8b522b8ba197f34c9e2ffb286911.tar.xz
cuberite-791f8912125b8b522b8ba197f34c9e2ffb286911.tar.zst
cuberite-791f8912125b8b522b8ba197f34c9e2ffb286911.zip
Diffstat (limited to 'Tools/QtBiomeVisualiser/ChunkSource.h')
-rw-r--r--Tools/QtBiomeVisualiser/ChunkSource.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/Tools/QtBiomeVisualiser/ChunkSource.h b/Tools/QtBiomeVisualiser/ChunkSource.h
index 5332c5d3f..a6bc3849b 100644
--- a/Tools/QtBiomeVisualiser/ChunkSource.h
+++ b/Tools/QtBiomeVisualiser/ChunkSource.h
@@ -10,7 +10,7 @@
// fwd:
class cBiomeGen;
-typedef std::shared_ptr<cBiomeGen> cBiomeGenPtr;
+typedef SharedPtr<cBiomeGen> cBiomeGenPtr;
class cIniFile;
typedef std::shared_ptr<cIniFile> cIniFilePtr;
@@ -26,7 +26,7 @@ public:
/** Fills the a_DestChunk with the biomes for the specified coords.
It is expected to be thread-safe and re-entrant. Usually QThread::idealThreadCount() threads are used. */
- virtual void getChunkBiomes(int a_ChunkX, int a_ChunkZ, ChunkPtr a_DestChunk) = 0;
+ virtual void getChunkBiomes(int a_ChunkX, int a_ChunkZ, Chunk & a_DestChunk) = 0;
/** Forces a fresh reload of the source. Useful mainly for the generator, whose underlying definition file may have been changed. */
virtual void reload() = 0;
@@ -45,7 +45,7 @@ public:
BioGenSource(cIniFilePtr a_IniFile);
// ChunkSource overrides:
- virtual void getChunkBiomes(int a_ChunkX, int a_ChunkZ, ChunkPtr a_DestChunk) override;
+ virtual void getChunkBiomes(int a_ChunkX, int a_ChunkZ, Chunk & a_DestChunk) override;
virtual void reload(void) override;
protected:
@@ -70,7 +70,7 @@ public:
AnvilSource(QString a_WorldRegionFolder);
// ChunkSource overrides:
- virtual void getChunkBiomes(int a_ChunkX, int a_ChunkZ, ChunkPtr a_DestChunk) override;
+ virtual void getChunkBiomes(int a_ChunkX, int a_ChunkZ, Chunk & a_DestChunk) override;
virtual void reload() override;
protected: