summaryrefslogtreecommitdiffstats
path: root/src/SetChunkData.h
blob: 8a4a8b995fc0b05c120f3b4aab660a03fa62d8a7 (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
30
31
32
33
34
35
36

// SetChunkData.h

// Defines the SetChunkData struct that contains the data for a loaded / generated chunk, ready to be set

#pragma once

#include "ChunkData.h"
#include "BlockEntities/BlockEntity.h"





struct SetChunkData
{
	/** Initialise the structure with chunk coordinates.
	The caller is responsible for initialising the remaining members. */
	SetChunkData(const cChunkCoords a_Chunk) :
		Chunk(a_Chunk)
	{
	}

	cChunkCoords Chunk;

	ChunkBlockData BlockData;
	ChunkLightData LightData;

	cChunkDef::BiomeMap BiomeMap;
	cChunkDef::HeightMap HeightMap;

	cEntityList Entities;
	cBlockEntities BlockEntities;

	bool IsLightValid;
};