Cuberite
A lightweight, fast and extensible game server for Minecraft
|
#include <ChunkData.h>
Public Types | |
using | LightArray = decltype(m_BlockLights)::Type |
using | SectionType = NIBBLETYPE[SectionLightCount] |
Public Member Functions | |
void | Assign (const ChunkLightData &a_Other) |
NIBBLETYPE | GetBlockLight (Vector3i a_Position) const |
LightArray * | GetBlockLightSection (size_t a_Y) const |
NIBBLETYPE | GetSkyLight (Vector3i a_Position) const |
LightArray * | GetSkyLightSection (size_t a_Y) const |
void | SetAll (const cChunkDef::BlockNibbles &a_BlockLightSource, const cChunkDef::BlockNibbles &a_SkyLightSource) |
void | SetSection (const SectionType &a_BlockLightSource, const SectionType &a_SkyLightSource, size_t a_Y) |
Static Public Attributes | |
static constexpr NIBBLETYPE | DefaultBlockLightValue = 0x00 |
static constexpr NIBBLETYPE | DefaultSkyLightValue = 0xFF |
static constexpr size_t | SectionLightCount = (cChunkDef::SectionHeight * cChunkDef::Width * cChunkDef::Width) / 2 |
Private Attributes | |
ChunkDataStore< NIBBLETYPE, SectionLightCount, DefaultBlockLightValue > | m_BlockLights |
ChunkDataStore< NIBBLETYPE, SectionLightCount, DefaultSkyLightValue > | m_SkyLights |
Definition at line 97 of file ChunkData.h.
using ChunkLightData::LightArray = decltype(m_BlockLights)::Type |
Definition at line 115 of file ChunkData.h.
Definition at line 106 of file ChunkData.h.
void ChunkLightData::Assign | ( | const ChunkLightData & | a_Other | ) |
Definition at line 202 of file ChunkData.cpp.
|
inline |
Definition at line 119 of file ChunkData.h.
|
inline |
Definition at line 122 of file ChunkData.h.
|
inline |
Definition at line 120 of file ChunkData.h.
|
inline |
Definition at line 123 of file ChunkData.h.
void ChunkLightData::SetAll | ( | const cChunkDef::BlockNibbles & | a_BlockLightSource, |
const cChunkDef::BlockNibbles & | a_SkyLightSource | ||
) |
Definition at line 212 of file ChunkData.cpp.
void ChunkLightData::SetSection | ( | const SectionType & | a_BlockLightSource, |
const SectionType & | a_SkyLightSource, | ||
size_t | a_Y | ||
) |
Definition at line 222 of file ChunkData.cpp.
|
staticconstexpr |
Definition at line 103 of file ChunkData.h.
|
staticconstexpr |
Definition at line 104 of file ChunkData.h.
|
private |
Definition at line 110 of file ChunkData.h.
|
private |
Definition at line 111 of file ChunkData.h.
|
staticconstexpr |
Definition at line 101 of file ChunkData.h.