mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
format: reformat project
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
This commit is contained in:
parent
736cd175d5
commit
bbf33e8e4d
202 changed files with 7389 additions and 5609 deletions
|
|
@ -2,8 +2,8 @@
|
|||
#define WORLD_LEVEL_EVENTS_HPP_
|
||||
|
||||
#include <functional>
|
||||
#include <vector>
|
||||
#include <unordered_map>
|
||||
#include <vector>
|
||||
|
||||
class Chunk;
|
||||
|
||||
|
|
@ -14,10 +14,11 @@ enum lvl_event_type {
|
|||
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;
|
||||
std::unordered_map<lvl_event_type, std::vector<chunk_event_func>>
|
||||
chunk_callbacks;
|
||||
public:
|
||||
void listen(lvl_event_type type, const chunk_event_func& func);
|
||||
void trigger(lvl_event_type type, Chunk* chunk);
|
||||
};
|
||||
|
||||
#endif // WORLD_LEVEL_EVENTS_HPP_
|
||||
#endif // WORLD_LEVEL_EVENTS_HPP_
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue