mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 12:31:51 +00:00
memory related refactor
This commit is contained in:
parent
8054d4ba55
commit
017c8722ae
25 changed files with 336 additions and 320 deletions
|
|
@ -11,7 +11,7 @@ enum lvl_event_type {
|
|||
EVT_CHUNK_HIDDEN,
|
||||
};
|
||||
|
||||
typedef std::function<void(lvl_event_type, Chunk*)> chunk_event_func;
|
||||
using chunk_event_func = std::function<void(lvl_event_type, Chunk*)>;
|
||||
|
||||
class LevelEvents {
|
||||
std::unordered_map<lvl_event_type, std::vector<chunk_event_func>> chunk_callbacks;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue