11 if (lif->time_left <= 0.f){
@ P_KILL
Represents a kill event.
void lifetime_system(Registry &r, ComponentContainer< Lifetime > &lifetimes)
Manages the lifetime of entities by decreasing their time left.
Manages a collection of components associated with entities in an ECS (Entity-Component-System) archi...
Represents an entity in an Entity-Component-System (ECS) architecture.
void notify(const GameMessage &event)
Notifies the subscribed listener of an event.
Combines multiple containers into a single iterable unit, iterating over corresponding elements from ...
Manages entities and their associated components, enabling the creation, deletion,...
void kill_entity(const Entity &entity)
Deletes an entity and removes all its components.
EventDispatcher * dispatcher
float deltaTime
The time difference between the current frame and the last frame.