|
Aegis2D
Modular C++26 2D game engine for networked games
|
An entity fired: one shot leaves it during the tick. More...
#include <aegis2d/shmup/weapons.hpp>
Public Attributes | |
| ecs::Entity | shooter |
| Entity that fired. | |
| Vec2 | position {} |
| Where it was (its Transform), the origin if it has none. | |
| bool | player = false |
true for a player's ship (it has a PlayerInput), false for an enemy. | |
Friends | |
| bool | operator== (const ShotFired &, const ShotFired &)=default |
| Compares the events. | |
An entity fired: one shot leaves it during the tick.
| bool aegis2d::shmup::ShotFired::player = false |
true for a player's ship (it has a PlayerInput), false for an enemy.
| Vec2 aegis2d::shmup::ShotFired::position {} |
Where it was (its Transform), the origin if it has none.
| ecs::Entity aegis2d::shmup::ShotFired::shooter |
Entity that fired.