VOX
A little voxel engine
|
#include <Chunk.hpp>
Public Member Functions | |
ChunkData ()=default | |
ChunkData (const Chunk &chunk) | |
ChunkData (ChunkData &&other)=default | |
ChunkData & | operator= (ChunkData &&other)=default |
ChunkData (const ChunkData &other)=default | |
ChunkData & | operator= (const ChunkData &other)=default |
std::vector< char > | serialize () const |
void | deserialize (const char *data, const size_t &size) |
Public Attributes | |
Chunk::BlockArray | blocks |
Chunk::LightArray | light |
Chunk::BiomeArray | biome |
Chunk::HeightArray | height |
Chunk::genLevel | gen_level |
glm::ivec3 | position |
Static Public Attributes | |
static constexpr size_t | DATA_SIZE = sizeof(blocks) + sizeof(light) + sizeof(biome) + sizeof(height) + sizeof(gen_level) + sizeof(position) |
|
default |
ChunkData::ChunkData | ( | const Chunk & | chunk | ) |
|
default |
|
default |
void ChunkData::deserialize | ( | const char * | data, |
const size_t & | size | ||
) |
std::vector< char > ChunkData::serialize | ( | ) | const |
Chunk::BiomeArray ChunkData::biome |
Chunk::BlockArray ChunkData::blocks |
|
staticconstexpr |
Chunk::genLevel ChunkData::gen_level |
Chunk::HeightArray ChunkData::height |
Chunk::LightArray ChunkData::light |
glm::ivec3 ChunkData::position |