summaryrefslogtreecommitdiffstats
path: root/Tools/QtBiomeVisualiser/ChunkLoader.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-09-14 01:32:00 +0200
committerMattes D <github@xoft.cz>2014-09-14 01:33:05 +0200
commite3a2dc5a1391d8aaaa3fdb83e946838540a07e75 (patch)
tree1a665fcc4ae0ea097ba476f70dddb5ef03539a28 /Tools/QtBiomeVisualiser/ChunkLoader.h
parentOSSupport: Fixed UNICODE Windows builds. (diff)
downloadcuberite-e3a2dc5a1391d8aaaa3fdb83e946838540a07e75.tar
cuberite-e3a2dc5a1391d8aaaa3fdb83e946838540a07e75.tar.gz
cuberite-e3a2dc5a1391d8aaaa3fdb83e946838540a07e75.tar.bz2
cuberite-e3a2dc5a1391d8aaaa3fdb83e946838540a07e75.tar.lz
cuberite-e3a2dc5a1391d8aaaa3fdb83e946838540a07e75.tar.xz
cuberite-e3a2dc5a1391d8aaaa3fdb83e946838540a07e75.tar.zst
cuberite-e3a2dc5a1391d8aaaa3fdb83e946838540a07e75.zip
Diffstat (limited to '')
-rw-r--r--Tools/QtBiomeVisualiser/ChunkLoader.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/Tools/QtBiomeVisualiser/ChunkLoader.h b/Tools/QtBiomeVisualiser/ChunkLoader.h
new file mode 100644
index 000000000..3565434b9
--- /dev/null
+++ b/Tools/QtBiomeVisualiser/ChunkLoader.h
@@ -0,0 +1,43 @@
+#pragma once
+#include <QObject>
+#include <QRunnable>
+
+
+
+
+// fwd:
+class Chunk;
+typedef std::shared_ptr<Chunk> ChunkPtr;
+
+class ChunkSource;
+typedef std::shared_ptr<ChunkSource> ChunkSourcePtr;
+
+
+
+
+
+class ChunkLoader :
+ public QObject,
+ public QRunnable
+{
+ Q_OBJECT
+
+public:
+ ChunkLoader(int a_ChunkX, int a_ChunkZ, ChunkPtr a_Chunk, ChunkSourcePtr a_ChunkSource);
+ virtual ~ChunkLoader() {}
+
+signals:
+ void loaded(int a_ChunkX, int a_ChunkZ);
+
+protected:
+ virtual void run() override;
+
+private:
+ int m_ChunkX, m_ChunkZ;
+ ChunkPtr m_Chunk;
+ ChunkSourcePtr m_ChunkSource;
+};
+
+
+
+