MCPcopy Create free account
hub / github.com/Hopson97/HopsonCraft / Section

Method Section

Source/World/Chunk/Section.cpp:20–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18 const Section::Layer Section::errorLayer;
19
20 Section::Section(const Chunklet_Position& position, Map& map, Full_Chunk& fullChunk)
21 : m_aabb ({CHUNK_SIZE, CHUNK_SIZE, CHUNK_SIZE})
22 , m_position (position)
23 , m_pChunkMap (&map)
24 , m_parentChunk (&fullChunk)
25 {
26 m_aabb.update({ position.x * CHUNK_SIZE,
27 position.y * CHUNK_SIZE,
28 position.z * CHUNK_SIZE});
29 }
30
31 const Section::State& Section::getStates() const
32 {

Callers

nothing calls this directly

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected