Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
MapBlockFlags Class Reference
+ Collaboration diagram for MapBlockFlags:

Classes

class  Chunk
 

Public Member Functions

 MapBlockFlags (v3s16 min_pos, v3s16 max_pos)
 
ChunkgetChunk (v3s16 pos)
 

Static Public Attributes

static constexpr u16 CHUNK_EDGE = 8
 
static constexpr u16 CHUNK_MASK = CHUNK_EDGE - 1
 
static constexpr std::size_t CHUNK_VOLUME = CHUNK_EDGE * CHUNK_EDGE * CHUNK_EDGE
 

Private Attributes

std::vector< std::unique_ptr< Chunk > > chunks
 
v3s16 min_pos
 
v3s16 volume
 

Constructor & Destructor Documentation

◆ MapBlockFlags()

MapBlockFlags::MapBlockFlags ( v3s16 min_pos,
v3s16 max_pos )
inline

References chunks, and volume.

Member Function Documentation

◆ getChunk()

Chunk & MapBlockFlags::getChunk ( v3s16 pos)
inline

References CHUNK_EDGE, chunks, min_pos, and volume.

Referenced by ClientMap::updateDrawList().

+ Here is the caller graph for this function:

Member Data Documentation

◆ CHUNK_EDGE

u16 MapBlockFlags::CHUNK_EDGE = 8
staticconstexpr

◆ CHUNK_MASK

u16 MapBlockFlags::CHUNK_MASK = CHUNK_EDGE - 1
staticconstexpr

◆ CHUNK_VOLUME

std::size_t MapBlockFlags::CHUNK_VOLUME = CHUNK_EDGE * CHUNK_EDGE * CHUNK_EDGE
staticconstexpr

◆ chunks

std::vector<std::unique_ptr<Chunk> > MapBlockFlags::chunks
private

Referenced by MapBlockFlags(), and getChunk().

◆ min_pos

v3s16 MapBlockFlags::min_pos
private

Referenced by getChunk().

◆ volume

v3s16 MapBlockFlags::volume
private

Referenced by MapBlockFlags(), and getChunk().


The documentation for this class was generated from the following file: