Go to the source code of this file.
|
| namespace | Cori |
| | Global engine namespace.
|
| namespace | Cori::Core |
| | Core systems of the engine are here.
|
|
| #define | EVENT_CLASS_TYPE(type) |
| | Assigns an EventType to the custom event type derived from the Event class. Use it in the public field of the derived class.
|
| #define | EVENT_CLASS_CATEGORY(category) |
| | Assigns an EventCategory to the custom event type derived from the Event class. Use it in the public field of the derived class.
|
◆ EVENT_CLASS_CATEGORY
| #define EVENT_CLASS_CATEGORY |
( |
| category | ) |
|
Value:uint32_t GetCategoryFlags() const override { return category; }
Assigns an EventCategory to the custom event type derived from the Event class. Use it in the public field of the derived class.
- Note
- Several EventCategories can be assigned to the derived class using an bitwise or operator.
- Parameters
-
| category | EventCategories to be assigned. |
Definition at line 132 of file Event.hpp.
◆ EVENT_CLASS_TYPE
| #define EVENT_CLASS_TYPE |
( |
| type | ) |
|
Value: constexpr std::type_index GetEventType() const override { return std::type_index(typeid(type)); }\
#define CORI_CLEAN_TYPE_NAME(tn)
Assigns an EventType to the custom event type derived from the Event class. Use it in the public field of the derived class.
- Parameters
-
Definition at line 124 of file Event.hpp.