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::BeamStatePayload Struct Reference

Notify clients that an entity's beam started or stopped. More...

#include <Packet.hpp>

Collaboration diagram for rtp::net::BeamStatePayload:

Public Attributes

uint32_t ownerNetId
 Network id of the player owning the beam.
 
uint8_t active
 1 if beam active, 0 if stopped
 
float timeRemaining
 Remaining beam active time (seconds)
 
float length
 Visual length of the beam in pixels.
 
float offsetY
 Vertical offset relative to owner (px)
 

Detailed Description

Notify clients that an entity's beam started or stopped.

Definition at line 385 of file Packet.hpp.

Member Data Documentation

◆ active

uint8_t rtp::net::BeamStatePayload::active

1 if beam active, 0 if stopped

Definition at line 387 of file Packet.hpp.

◆ length

float rtp::net::BeamStatePayload::length

Visual length of the beam in pixels.

Definition at line 389 of file Packet.hpp.

◆ offsetY

float rtp::net::BeamStatePayload::offsetY

Vertical offset relative to owner (px)

Definition at line 390 of file Packet.hpp.

◆ ownerNetId

uint32_t rtp::net::BeamStatePayload::ownerNetId

Network id of the player owning the beam.

Definition at line 386 of file Packet.hpp.

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

◆ timeRemaining

float rtp::net::BeamStatePayload::timeRemaining

Remaining beam active time (seconds)

Definition at line 388 of file Packet.hpp.


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