ECSM v0.4.0
Manager::Eventfinal

Event data container. More...

#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

Detailed Description

Event data container.