Cuberite
A lightweight, fast and extensible game server for Minecraft
|
#include <ChunkData.h>
Public Types | |
using | BlockArray = decltype(m_Blocks)::Type |
using | MetaArray = decltype(m_Metas)::Type |
using | SectionMetaType = NIBBLETYPE[SectionMetaCount] |
using | SectionType = BLOCKTYPE[SectionBlockCount] |
Public Member Functions | |
void | Assign (const ChunkBlockData &a_Other) |
BLOCKTYPE | GetBlock (Vector3i a_Position) const |
NIBBLETYPE | GetMeta (Vector3i a_Position) const |
MetaArray * | GetMetaSection (size_t a_Y) const |
BlockArray * | GetSection (size_t a_Y) const |
void | SetAll (const cChunkDef::BlockTypes &a_BlockSource, const cChunkDef::BlockNibbles &a_MetaSource) |
void | SetBlock (Vector3i a_Position, BLOCKTYPE a_Block) |
void | SetMeta (Vector3i a_Position, NIBBLETYPE a_Meta) |
void | SetSection (const SectionType &a_BlockSource, const SectionMetaType &a_MetaSource, size_t a_Y) |
Static Public Attributes | |
static constexpr NIBBLETYPE | DefaultMetaValue = 0x00 |
static constexpr BLOCKTYPE | DefaultValue = 0x00 |
static constexpr size_t | SectionBlockCount = cChunkDef::SectionHeight * cChunkDef::Width * cChunkDef::Width |
static constexpr size_t | SectionMetaCount = SectionBlockCount / 2 |
Private Attributes | |
ChunkDataStore< BLOCKTYPE, SectionBlockCount, DefaultValue > | m_Blocks |
ChunkDataStore< NIBBLETYPE, SectionMetaCount, DefaultMetaValue > | m_Metas |
Definition at line 55 of file ChunkData.h.
using ChunkBlockData::BlockArray = decltype(m_Blocks)::Type |
Definition at line 75 of file ChunkData.h.
using ChunkBlockData::MetaArray = decltype(m_Metas)::Type |
Definition at line 76 of file ChunkData.h.
Definition at line 66 of file ChunkData.h.
Definition at line 65 of file ChunkData.h.
void ChunkBlockData::Assign | ( | const ChunkBlockData & | a_Other | ) |
Definition at line 172 of file ChunkData.cpp.
Definition at line 80 of file ChunkData.h.
|
inline |
Definition at line 81 of file ChunkData.h.
|
inline |
Definition at line 84 of file ChunkData.h.
|
inline |
Definition at line 83 of file ChunkData.h.
void ChunkBlockData::SetAll | ( | const cChunkDef::BlockTypes & | a_BlockSource, |
const cChunkDef::BlockNibbles & | a_MetaSource | ||
) |
Definition at line 182 of file ChunkData.cpp.
Definition at line 86 of file ChunkData.h.
|
inline |
Definition at line 87 of file ChunkData.h.
void ChunkBlockData::SetSection | ( | const SectionType & | a_BlockSource, |
const SectionMetaType & | a_MetaSource, | ||
size_t | a_Y | ||
) |
Definition at line 192 of file ChunkData.cpp.
|
staticconstexpr |
Definition at line 63 of file ChunkData.h.
|
staticconstexpr |
Definition at line 62 of file ChunkData.h.
|
private |
Definition at line 70 of file ChunkData.h.
|
private |
Definition at line 71 of file ChunkData.h.
|
staticconstexpr |
Definition at line 59 of file ChunkData.h.
|
staticconstexpr |
Definition at line 60 of file ChunkData.h.