summaryrefslogtreecommitdiffstats
path: root/Tools/QtBiomeVisualiser/ChunkCache.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-09-15 17:29:34 +0200
committerMattes D <github@xoft.cz>2014-09-15 17:29:34 +0200
commit21b70f17c264de4f7c216cfca580e8254df5cbee (patch)
treeab513d7146904bfdfa88943c787548311997cfdd /Tools/QtBiomeVisualiser/ChunkCache.h
parentQtBiomeVisualiser: removed multithreading. (diff)
downloadcuberite-21b70f17c264de4f7c216cfca580e8254df5cbee.tar
cuberite-21b70f17c264de4f7c216cfca580e8254df5cbee.tar.gz
cuberite-21b70f17c264de4f7c216cfca580e8254df5cbee.tar.bz2
cuberite-21b70f17c264de4f7c216cfca580e8254df5cbee.tar.lz
cuberite-21b70f17c264de4f7c216cfca580e8254df5cbee.tar.xz
cuberite-21b70f17c264de4f7c216cfca580e8254df5cbee.tar.zst
cuberite-21b70f17c264de4f7c216cfca580e8254df5cbee.zip
Diffstat (limited to 'Tools/QtBiomeVisualiser/ChunkCache.h')
-rw-r--r--Tools/QtBiomeVisualiser/ChunkCache.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/Tools/QtBiomeVisualiser/ChunkCache.h b/Tools/QtBiomeVisualiser/ChunkCache.h
index 0efa7fc39..0134bc7af 100644
--- a/Tools/QtBiomeVisualiser/ChunkCache.h
+++ b/Tools/QtBiomeVisualiser/ChunkCache.h
@@ -36,7 +36,10 @@ public:
void setChunkSource(std::shared_ptr<ChunkSource> a_ChunkSource);
/** Returns true iff the chunk source has been initialized. */
- bool hasData(void) const { return (m_ChunkSource.get() != nullptr); }
+ bool hasData() const { return (m_ChunkSource.get() != nullptr); }
+
+ /** Reloads the current chunk source. */
+ void reload();
signals:
void chunkAvailable(int a_ChunkX, int a_ChunkZ);