format: reformat project

Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
This commit is contained in:
Vyacheslav Ivanov
2024-08-03 19:53:48 +03:00
committed by Pugemon
parent 736cd175d5
commit bbf33e8e4d
202 changed files with 7389 additions and 5609 deletions
+4 -3
View File
@@ -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_