mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 04:21:50 +00:00
add on_chunk_present and on_chunk_remove events
This commit is contained in:
parent
cfa6b5e578
commit
22c7cb8398
9 changed files with 65 additions and 9 deletions
|
|
@ -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*)>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue