From 6b69d4b5b648253f894707723af0e2eae9f71445 Mon Sep 17 00:00:00 2001 From: Mel Date: Sat, 29 Jul 2023 03:31:42 +0200 Subject: Move chunk reification to worker threads and set stage for chunk-unbound lighting --- src/World/Chunk.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/World/Chunk.cpp') diff --git a/src/World/Chunk.cpp b/src/World/Chunk.cpp index 31a2c90..8b204c0 100644 --- a/src/World/Chunk.cpp +++ b/src/World/Chunk.cpp @@ -31,6 +31,14 @@ Vector<3> Chunk::position() const { return m_position; } +Bool Chunk::is_damaged() const { + return m_damaged; +} + +void Chunk::damage() { + m_damaged = true; +} + Bool Chunk::is_valid_position(U32 x, U32 y, U32 z) { return x < Width && y < Height && z < Width; } -- cgit 1.4.1