From 8b449e764b5c91cd3cb0c4fa404a290ab295a7ef Mon Sep 17 00:00:00 2001 From: WBoerenkamps Date: Mon, 18 Nov 2024 15:33:48 +0100 Subject: restored mwe/events to master --- mwe/events/include/event.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'mwe') diff --git a/mwe/events/include/event.h b/mwe/events/include/event.h index e1b220b..16c75bf 100644 --- a/mwe/events/include/event.h +++ b/mwe/events/include/event.h @@ -20,7 +20,9 @@ public: \ static std::uint32_t typeID = UUIDGenerator::getUniqueID(); \ return typeID; \ } \ - virtual std::uint32_t getEventType() const override { return getStaticEventType(); } + virtual std::uint32_t getEventType() const override { \ + return getStaticEventType(); \ + } class Event { public: Event(std::string eventType); @@ -30,14 +32,16 @@ public: void addArgument(const std::string & key, const std::variant & value); - std::variant getArgument(const std::string & key) const; + std::variant + getArgument(const std::string & key) const; std::string getType() const; bool getHandled() const; void markHandled(); private: - std::unordered_map> eventData; + std::unordered_map> + eventData; bool isHandled = false; }; @@ -148,7 +152,7 @@ private: }; class ShutDownEvent : public Event { public: - ShutDownEvent() : Event("ShutDownEvent"){}; + ShutDownEvent() : Event("ShutDownEvent") {}; REGISTER_EVENT_TYPE(ShutDownEvent) -- cgit v1.2.3