1
0
cuberite-2a/Tools/QtBiomeVisualiser/ChunkLoader.cpp
Mattes D e3a2dc5a13 Added new Qt-based biome visualiser.
Compile with Qt 5.1+
2014-09-14 01:33:05 +02:00

30 lines
406 B
C++

#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);
}