Air-Trap 1.0.0
A multiplayer R-Type clone game engine built with C++23 and ECS architecture
Loading...
Searching...
No Matches
rtp::ecs::components::Ammo Struct Reference

Ammo tracking for weapons. More...

#include <Ammo.hpp>

Collaboration diagram for rtp::ecs::components::Ammo:

Public Attributes

uint16_t current {100}
 
uint16_t max {100}
 
float reloadCooldown {2.0f}
 
float reloadTimer {0.0f}
 
bool isReloading {false}
 
bool dirty {true}
 

Detailed Description

Ammo tracking for weapons.

Definition at line 18 of file Ammo.hpp.

Member Data Documentation

◆ current

uint16_t rtp::ecs::components::Ammo::current {100}

Definition at line 19 of file Ammo.hpp.

Referenced by rtp::server::PlayerShootSystem::sendAmmoUpdate().

◆ dirty

bool rtp::ecs::components::Ammo::dirty {true}

Definition at line 24 of file Ammo.hpp.

◆ isReloading

bool rtp::ecs::components::Ammo::isReloading {false}

Definition at line 23 of file Ammo.hpp.

Referenced by rtp::server::PlayerShootSystem::sendAmmoUpdate().

◆ max

uint16_t rtp::ecs::components::Ammo::max {100}

◆ reloadCooldown

float rtp::ecs::components::Ammo::reloadCooldown {2.0f}

Definition at line 21 of file Ammo.hpp.

Referenced by rtp::server::PlayerShootSystem::sendAmmoUpdate().

◆ reloadTimer

float rtp::ecs::components::Ammo::reloadTimer {0.0f}

Definition at line 22 of file Ammo.hpp.

Referenced by rtp::server::PlayerShootSystem::sendAmmoUpdate().


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