add on_chunk_present and on_chunk_remove events

This commit is contained in:
MihailRis
2025-01-12 05:41:42 +03:00
parent cfa6b5e578
commit 22c7cb8398
9 changed files with 65 additions and 9 deletions
+5 -3
View File
@@ -6,9 +6,11 @@
class Chunk;
enum LevelEventType {
EVT_CHUNK_SHOWN,
EVT_CHUNK_HIDDEN,
enum class LevelEventType {
CHUNK_SHOWN,
CHUNK_HIDDEN,
CHUNK_PRESENT,
CHUNK_UNLOAD,
};
using ChunkEventFunc = std::function<void(LevelEventType, Chunk*)>;