summaryrefslogtreecommitdiffstats
path: root/Tools/QtBiomeVisualiser/ChunkLoader.cpp
blob: 3d0123b236bd78586d8d11885f79746ca894447c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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);
}