add on_chunk_present and on_chunk_remove events
This commit is contained in:
@@ -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*)>;
|
||||
|
||||
Reference in New Issue
Block a user