| 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 | { |