2014-07-24 12:32:05 -04:00
|
|
|
|
|
|
|
// SetChunkData.h
|
|
|
|
|
2021-03-05 08:03:55 -05:00
|
|
|
// Defines the SetChunkData struct that contains the data for a loaded / generated chunk, ready to be set
|
2014-07-24 12:32:05 -04:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2018-07-23 14:12:51 -04:00
|
|
|
#include "ChunkData.h"
|
2020-04-03 17:23:38 -04:00
|
|
|
#include "BlockEntities/BlockEntity.h"
|
2018-07-23 14:12:51 -04:00
|
|
|
|
2014-07-24 12:32:05 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-03-05 08:03:55 -05:00
|
|
|
struct SetChunkData
|
2014-07-24 12:32:05 -04:00
|
|
|
{
|
2021-03-05 08:03:55 -05: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 12:32:05 -04:00
|
|
|
|
2021-03-05 08:03:55 -05:00
|
|
|
cChunkCoords Chunk;
|
2016-02-05 16:45:45 -05:00
|
|
|
|
2021-03-05 08:03:55 -05:00
|
|
|
ChunkBlockData BlockData;
|
|
|
|
ChunkLightData LightData;
|
2016-02-05 16:45:45 -05:00
|
|
|
|
2021-03-05 08:03:55 -05:00
|
|
|
cChunkDef::BiomeMap BiomeMap;
|
|
|
|
cChunkDef::HeightMap HeightMap;
|
2016-02-05 16:45:45 -05:00
|
|
|
|
2021-03-05 08:03:55 -05:00
|
|
|
cEntityList Entities;
|
|
|
|
cBlockEntities BlockEntities;
|
2016-02-05 16:45:45 -05:00
|
|
|
|
2021-03-05 08:03:55 -05:00
|
|
|
bool IsLightValid;
|
2014-07-24 12:32:05 -04:00
|
|
|
};
|