|
Air-Trap 1.0.0
A multiplayer R-Type clone game engine built with C++23 and ECS architecture
|
Notify clients that an entity's beam started or stopped. More...
#include <Packet.hpp>
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) | |
Notify clients that an entity's beam started or stopped.
Definition at line 385 of file Packet.hpp.
| uint8_t rtp::net::BeamStatePayload::active |
1 if beam active, 0 if stopped
Definition at line 387 of file Packet.hpp.
| float rtp::net::BeamStatePayload::length |
Visual length of the beam in pixels.
Definition at line 389 of file Packet.hpp.
| float rtp::net::BeamStatePayload::offsetY |
Vertical offset relative to owner (px)
Definition at line 390 of file Packet.hpp.
| 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().
| float rtp::net::BeamStatePayload::timeRemaining |
Remaining beam active time (seconds)
Definition at line 388 of file Packet.hpp.