![]() |
Blamite Game Engine - Strings
00395.07.24.23.0009.blamite
A library containing general purpose utilities and classes for use in multiple projects.
|
#include "events.h"#include <algorithm>#include <signal.h>#include <Strings/components/utils/converters/converters.h>#include <mutex>#include "components/logger/logger.h"
Include dependency graph for events.cpp:Functions | |
| void | notify_listener (BlamEvent *event, BlamEventListener *listener) |
| Notifies the specified listener about an event. More... | |
| bool | compare_listener_priority (BlamEventListener *first, BlamEventListener *second) |
| Compares listener priority. More... | |
Variables | |
| std::vector< BlamEventListener * > | listeners |
| List of registered event listeners. More... | |
| std::recursive_mutex | listener_list_lock |
| Lock to ensure that the listener list cannot be modified concurrently. More... | |
| bool compare_listener_priority | ( | BlamEventListener * | first, |
| BlamEventListener * | second | ||
| ) |
Compares listener priority.
Used to sort the list after priority modifications.
| first | - The first listener to check. |
| second | - The second listener to check. |
Here is the call graph for this function:
Here is the caller graph for this function:| void notify_listener | ( | BlamEvent * | event, |
| BlamEventListener * | listener | ||
| ) |
Notifies the specified listener about an event.
Each event type must be added to this in order for the appropriate function(s) to be called.
| event | - Pointer to the event. |
| listener | - Pointer to the listener. |
Here is the call graph for this function:
Here is the caller graph for this function:| std::recursive_mutex listener_list_lock |
Lock to ensure that the listener list cannot be modified concurrently.
| std::vector<BlamEventListener*> listeners |
List of registered event listeners.