aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/EventManager.h
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-11-18 15:40:11 +0100
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-11-18 15:40:11 +0100
commit71a614e1f87141c4d062a2a466377322fc3d9ff0 (patch)
tree018f9007cfbe04d95716c5bde3ce3d5c73659fe1 /src/crepe/api/EventManager.h
parentb92da3c729c8fc7c002cb3acbb75c56cb63bd89e (diff)
make format
Diffstat (limited to 'src/crepe/api/EventManager.h')
-rw-r--r--src/crepe/api/EventManager.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/crepe/api/EventManager.h b/src/crepe/api/EventManager.h
index 783db62..c7c4744 100644
--- a/src/crepe/api/EventManager.h
+++ b/src/crepe/api/EventManager.h
@@ -94,17 +94,14 @@ private:
EventManager() = default;
//! The queue of events to be processed.
- std::vector<std::tuple<std::unique_ptr<Event>, int, std::type_index>>
- events_queue;
+ std::vector<std::tuple<std::unique_ptr<Event>, int, std::type_index>> events_queue;
//! Registered event handlers.
- std::unordered_map<std::type_index,
- std::vector<std::unique_ptr<IEventHandlerWrapper>>>
+ std::unordered_map<std::type_index, std::vector<std::unique_ptr<IEventHandlerWrapper>>>
subscribers;
//! Event handlers indexed by event ID.
std::unordered_map<
std::type_index,
- std::unordered_map<int,
- std::vector<std::unique_ptr<IEventHandlerWrapper>>>>
+ std::unordered_map<int, std::vector<std::unique_ptr<IEventHandlerWrapper>>>>
subscribers_by_event_id;
};