Go to the documentation of this file.
30 void onSelfUpdate(std::chrono::nanoseconds dtime)
override;
std::list< std::function< void(WAL::Wal &)> > _globalEvents
The list of events that occurred in the last update.
Definition: EventSystem.hpp:19
Definition: AnimationsComponent.cpp:9
The main WAL class, it is used to setup and run the ECS.
Definition: Wal.hpp:27
An entity of the WAL's ECS.
Definition: Entity.hpp:20
void onSelfUpdate(std::chrono::nanoseconds dtime) override
A method called after all entities that this system manage has been updated.
Definition: EventSystem.cpp:29
EventSystem(WAL::Wal &wal)
A default constructor.
Definition: EventSystem.cpp:9
EventSystem & operator=(const EventSystem &)=delete
An event system is not assignable.
A base system of WAL.
Definition: System.hpp:22
~EventSystem() override=default
A default destructor.
std::list< std::function< void(WAL::Entity &)> > _events
The list of events that occurred in the last update.
Definition: EventSystem.hpp:17
void dispatchEvent(const std::function< void(WAL::Entity &)> &event)
Inform the system that a new event has occurred and it should run the given method on every entities.
Definition: EventSystem.cpp:13
Definition: EventSystem.hpp:13
void onUpdate(WAL::ViewEntity<> &entity, std::chrono::nanoseconds dtime) override
Definition: EventSystem.cpp:23