|
Aegis2D
Modular C++26 2D game engine for networked games
|
One hit that removed health points. More...
#include <aegis2d/ecs/damage.hpp>
Public Attributes | |
| Entity | attacker |
| Entity that dealt the damage (its Damage component). | |
| Entity | target |
| Entity that lost health points (its Health component). | |
| std::int32_t | amount = 0 |
| Points removed by the hit. | |
Friends | |
| constexpr bool | operator== (const Hit &, const Hit &) noexcept=default |
| Compares the hits. | |
One hit that removed health points.
| std::int32_t aegis2d::ecs::Hit::amount = 0 |
Points removed by the hit.