format: reformat project
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
This commit is contained in:
@@ -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_
|
||||
|
||||
Reference in New Issue
Block a user