Aegis2D
Modular C++26 2D game engine for networked games
Loading...
Searching...
No Matches
aegis2d::ecs::DestroyAfterAnimation Struct Reference

Entity destroyed once its Animation has played to the end: a visual effect that lasts as long as its clip, such as an explosion. More...

#include <aegis2d/ecs/components.hpp>

Detailed Description

Entity destroyed once its Animation has played to the end: a visual effect that lasts as long as its clip, such as an explosion.

ecs::destroy_finished_animations() destroys the entity when its Animation does not loop and is finished(). Effects are made by each client from the gameplay events (e.g. ecs::Explosion), so the server never sends them.


The documentation for this struct was generated from the following file: