summaryrefslogtreecommitdiffstats
path: root/Tools/QtBiomeVisualiser/ChunkLoader.cpp
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.cpp
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 'Tools/QtBiomeVisualiser/ChunkLoader.cpp')
-rw-r--r--Tools/QtBiomeVisualiser/ChunkLoader.cpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/Tools/QtBiomeVisualiser/ChunkLoader.cpp b/Tools/QtBiomeVisualiser/ChunkLoader.cpp
new file mode 100644
index 000000000..3d0123b23
--- /dev/null
+++ b/Tools/QtBiomeVisualiser/ChunkLoader.cpp
@@ -0,0 +1,29 @@
+#include "Globals.h"
+#include "ChunkLoader.h"
+#include "ChunkSource.h"
+
+
+
+
+
+ChunkLoader::ChunkLoader(int a_ChunkX, int a_ChunkZ, ChunkPtr a_Chunk, ChunkSourcePtr a_ChunkSource) :
+ m_ChunkX(a_ChunkX),
+ m_ChunkZ(a_ChunkZ),
+ m_Chunk(a_Chunk),
+ m_ChunkSource(a_ChunkSource)
+{
+}
+
+
+
+
+
+void ChunkLoader::run()
+{
+ m_ChunkSource->getChunkBiomes(m_ChunkX, m_ChunkZ, m_Chunk);
+ emit loaded(m_ChunkX, m_ChunkZ);
+}
+
+
+
+