Air-Trap 1.0.0
A multiplayer R-Type clone game engine built with C++23 and ECS architecture
Loading...
Searching...
No Matches
Ammo.hpp
Go to the documentation of this file.
1
8#ifndef RTYPE_ECS_COMPONENTS_AMMO_HPP_
9#define RTYPE_ECS_COMPONENTS_AMMO_HPP_
10
11#include <cstdint>
12
18struct Ammo {
19 uint16_t current{100};
20 uint16_t max{100};
21 float reloadCooldown{2.0f};
22 float reloadTimer{0.0f};
23 bool isReloading{false};
24 bool dirty{true};
25};
26} // namespace rtp::ecs::components
27
28#endif /* !RTYPE_ECS_COMPONENTS_AMMO_HPP_ */
File : Ammo.hpp License: MIT Author : Elias Josué HAJJAR LLAUQUEN elias-josue.hajjar-llauquen@epitech...
Definition Ammo.hpp:13
Ammo tracking for weapons.
Definition Ammo.hpp:18