2014-07-24 16:32:05 +00:00
|
|
|
|
|
|
|
// SetChunkData.h
|
|
|
|
|
2021-03-05 13:03:55 +00:00
|
|
|
// Defines the SetChunkData struct that contains the data for a loaded / generated chunk, ready to be set
|
2014-07-24 16:32:05 +00:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2018-07-23 18:12:51 +00:00
|
|
|
#include "ChunkData.h"
|
2020-04-03 21:23:38 +00:00
|
|
|
#include "BlockEntities/BlockEntity.h"
|
2018-07-23 18:12:51 +00:00
|
|
|
|
2014-07-24 16:32:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-03-05 13:03:55 +00:00
|
|
|
struct SetChunkData
|
2014-07-24 16:32:05 +00:00
|
|
|
{
|
2021-03-05 13:03:55 +00:00
|
|
|
/** Initialise the structure with chunk coordinates.
|
|
|
|
The caller is responsible for initialising the remaining members. */
|
|
|
|
SetChunkData(const cChunkCoords a_Chunk) :
|
|
|
|
Chunk(a_Chunk)
|
|
|
|
{
|
|
|
|
}
|
2014-07-24 16:32:05 +00:00
|
|
|
|
2021-03-05 13:03:55 +00:00
|
|
|
cChunkCoords Chunk;
|
2016-02-05 21:45:45 +00:00
|
|
|
|
2021-03-05 13:03:55 +00:00
|
|
|
ChunkBlockData BlockData;
|
|
|
|
ChunkLightData LightData;
|
2016-02-05 21:45:45 +00:00
|
|
|
|
2021-03-05 13:03:55 +00:00
|
|
|
cChunkDef::BiomeMap BiomeMap;
|
|
|
|
cChunkDef::HeightMap HeightMap;
|
2016-02-05 21:45:45 +00:00
|
|
|
|
2021-03-05 13:03:55 +00:00
|
|
|
cEntityList Entities;
|
|
|
|
cBlockEntities BlockEntities;
|
2016-02-05 21:45:45 +00:00
|
|
|
|
2021-03-05 13:03:55 +00:00
|
|
|
bool IsLightValid;
|
2014-07-24 16:32:05 +00:00
|
|
|
};
|