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

Ammo update notification data Server OpCode. More...

#include <Packet.hpp>

Collaboration diagram for rtp::net::AmmoUpdatePayload:

Public Attributes

uint16_t current
 Current ammo.
 
uint16_t max
 Max ammo.
 
uint8_t isReloading
 1 if reloading
 
float cooldownRemaining
 Remaining reload time.
 

Detailed Description

Ammo update notification data Server OpCode.

Definition at line 374 of file Packet.hpp.

Member Data Documentation

◆ cooldownRemaining

float rtp::net::AmmoUpdatePayload::cooldownRemaining

Remaining reload time.

Definition at line 378 of file Packet.hpp.

◆ current

uint16_t rtp::net::AmmoUpdatePayload::current

Current ammo.

Definition at line 375 of file Packet.hpp.

Referenced by rtp::server::PlayerShootSystem::sendAmmoUpdate(), and rtp::server::CollisionSystem::update().

◆ isReloading

uint8_t rtp::net::AmmoUpdatePayload::isReloading

1 if reloading

Definition at line 377 of file Packet.hpp.

◆ max

uint16_t rtp::net::AmmoUpdatePayload::max

Max ammo.

Definition at line 376 of file Packet.hpp.


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