A Stat component which contains a text and a callback.
Definition: StatComponent.hpp:15
Represent a single component of WAL.
Definition: Component.hpp:17
Definition: AnimationsComponent.cpp:9
An entity of the WAL's ECS.
Definition: Entity.hpp:20
A callback where you can subscribe to and emit it.
Definition: Callback.hpp:16
~StatComponent() override=default
A default destructor.
StatComponent(WAL::Entity &entity, WAL::Callback< Drawable2DComponent & > callback)
Create a new StatComponent with a callback.
Definition: StatComponent.cpp:10
WAL::Component * clone(WAL::Entity &entity) const override
Clone a component for another or the same entity.
Definition: StatComponent.cpp:15
StatComponent & operator=(const StatComponent &)=delete
A color component is not assignable.
WAL::Callback< Drawable2DComponent & > updater
onEvent callback
Definition: StatComponent.hpp:19