QuasarEngine
Cross-platform 3D engine and editor
Loading...
Searching...
No Matches
Quasar::EventClass Concept Reference

An event class: a class derived from Event that gives its type with GetStaticType(). More...

#include <quasar/events/EventDispatcher.h>

Concept definition

template<typename T>
concept EventClass = std::derived_from<T, Event> && requires {
{ T::GetStaticType() } -> std::same_as<EventType>;
}
An event class: a class derived from Event that gives its type with GetStaticType().
Definition EventDispatcher.h:20

Detailed Description

An event class: a class derived from Event that gives its type with GetStaticType().

Every class derived from EventOf satisfies this concept.