1
0
cuberite-2a/src/SetChunkData.h
Tiger Wang 868cd94ee9
Prepare ChunkData for BlockState storage (#5105)
* Rename ChunkData Creatable test

* Add missing Y-check in RedstoneWireHandler

* Remove ChunkDef.h dependency in Scoreboard

* Prepare ChunkData for BlockState storage

+ Split chunk block, meta, block & sky light storage
+ Load the height map from disk
- Reduce duplicated code in ChunkData
- Remove saving MCSBiomes, there aren't any
- Remove the allocation pool, ref #4315, #3864

* fixed build

* fixed test

* fixed the debug compile

Co-authored-by: 12xx12 <44411062+12xx12@users.noreply.github.com>
2021-03-05 14:03:55 +01:00

37 lines
642 B
C

// 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;
};