#include <ecsm.hpp>
Public Types | |
using | Subscribers = std::vector<std::function<void()>> |
Public Member Functions | |
Event (std::string_view name, bool isOrdered=true) | |
bool | hasSubscribers () const noexcept |
Returns true if this event has subscribers. | |
void | run () const |
Calls all event subscribers. | |
Public Attributes | |
std::string | name |
Subscribers | subscribers |
bool | isOrdered = false |
Event data container.