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

Entity spawn notification data. More...

#include <Packet.hpp>

Collaboration diagram for rtp::net::EntitySpawnPayload:

Public Attributes

uint32_t netId
 Network entity identifier.
 
uint8_t type
 Entity type from EntityType.
 
float posX
 Spawn X position.
 
float posY
 Spawn Y position.
 
float sizeX {0.0f}
 Optional width for static entities.
 
float sizeY {0.0f}
 Optional height for static entities.
 
uint8_t weaponKind {0}
 Optional weapon kind for player entities.
 

Detailed Description

Entity spawn notification data.

Definition at line 348 of file Packet.hpp.

Member Data Documentation

◆ netId

uint32_t rtp::net::EntitySpawnPayload::netId

◆ posX

float rtp::net::EntitySpawnPayload::posX

Spawn X position.

Definition at line 351 of file Packet.hpp.

Referenced by rtp::client::NetworkSyncSystem::onSpawnEntityFromServer().

◆ posY

float rtp::net::EntitySpawnPayload::posY

Spawn Y position.

Definition at line 352 of file Packet.hpp.

Referenced by rtp::client::NetworkSyncSystem::onSpawnEntityFromServer().

◆ sizeX

float rtp::net::EntitySpawnPayload::sizeX {0.0f}

Optional width for static entities.

Definition at line 353 of file Packet.hpp.

Referenced by rtp::client::NetworkSyncSystem::onSpawnEntityFromServer().

◆ sizeY

float rtp::net::EntitySpawnPayload::sizeY {0.0f}

Optional height for static entities.

Definition at line 354 of file Packet.hpp.

Referenced by rtp::client::NetworkSyncSystem::onSpawnEntityFromServer().

◆ type

uint8_t rtp::net::EntitySpawnPayload::type

Entity type from EntityType.

Definition at line 350 of file Packet.hpp.

Referenced by rtp::client::NetworkSyncSystem::onSpawnEntityFromServer().

◆ weaponKind

uint8_t rtp::net::EntitySpawnPayload::weaponKind {0}

Optional weapon kind for player entities.

Definition at line 355 of file Packet.hpp.

Referenced by rtp::client::NetworkSyncSystem::onSpawnEntityFromServer(), and rtp::server::PlayerShootSystem::spawnChargedBullet().


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