aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/EventManager.h
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-11-20 20:30:33 +0100
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-11-20 20:30:33 +0100
commit5ec30d8915debef409f6db6f8ee9b822fb24d46b (patch)
tree6ed1f32c90b6464047c9e43134d1511cd3030af4 /src/crepe/api/EventManager.h
parent397da65e03ec681922aeea3881918026d36068a7 (diff)
make format
Diffstat (limited to 'src/crepe/api/EventManager.h')
-rw-r--r--src/crepe/api/EventManager.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/crepe/api/EventManager.h b/src/crepe/api/EventManager.h
index 93e9ca2..bd9772a 100644
--- a/src/crepe/api/EventManager.h
+++ b/src/crepe/api/EventManager.h
@@ -48,7 +48,8 @@ public:
* \return A unique subscription ID associated with the registered callback.
*/
template <typename EventType>
- subscription_t subscribe(const EventHandler<EventType> & callback, int channel = CHANNEL_ALL);
+ subscription_t subscribe(const EventHandler<EventType> & callback,
+ int channel = CHANNEL_ALL);
/**
* \brief Unsubscribe a previously registered callback.
@@ -112,8 +113,8 @@ private:
*/
struct QueueEntry {
std::unique_ptr<Event> event; ///< The event instance.
- int channel = CHANNEL_ALL; ///< The channel associated with the event.
- std::type_index type; ///< The type of the event.
+ int channel = CHANNEL_ALL; ///< The channel associated with the event.
+ std::type_index type; ///< The type of the event.
};
/**
@@ -122,8 +123,8 @@ private:
*/
struct CallbackEntry {
std::unique_ptr<IEventHandlerWrapper> callback; ///< The callback function wrapper.
- int channel = CHANNEL_ALL; ///< The channel this callback listens to.
- subscription_t id = -1; ///< Unique subscription ID.
+ int channel = CHANNEL_ALL; ///< The channel this callback listens to.
+ subscription_t id = -1; ///< Unique subscription ID.
};
//! The queue of events to be processed during dispatch.