This file contains the component definitions.
This file contains the Registry class declaration.
Manages weapon firing and charging.
void reset()
Reset weapon state.
WeaponSystem & operator=(WeaponSystem &&)=delete
WeaponSystem(const WeaponSystem &)=delete
void update(ecs::Registry ®istry, float dt, bool spacePressed)
Update weapon system.
bool tryFireSupercharged(ecs::Registry ®istry, float x, float y)
Try to fire supercharged projectile.
void hideLoadingAnimation(ecs::Registry ®istry, ecs::Entity playerEntity)
Hide loading animation.
void showLoadingAnimation(ecs::Registry ®istry, ecs::Entity playerEntity, const ecs::Transform *playerTransform)
Show loading animation in front of the player.
WeaponSystem(WeaponSystem &&)=delete
WeaponSystem & operator=(const WeaponSystem &)=delete
bool tryFireBasic(ecs::Registry ®istry, float x, float y)
Try to fire basic projectile.
void update(ecs::Registry ®istry, float dt) override
~WeaponSystem() override=default
Class for managing entities and their components.