|
Air-Trap 1.0.0
A multiplayer R-Type clone game engine built with C++23 and ECS architecture
|
Entity spawn notification data. More...
#include <Packet.hpp>
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. | |
Entity spawn notification data.
Definition at line 348 of file Packet.hpp.
| uint32_t rtp::net::EntitySpawnPayload::netId |
Network entity identifier.
Definition at line 349 of file Packet.hpp.
Referenced by rtp::client::NetworkSyncSystem::onSpawnEntityFromServer(), and rtp::server::CollisionSystem::spawnPowerup().
| float rtp::net::EntitySpawnPayload::posX |
Spawn X position.
Definition at line 351 of file Packet.hpp.
Referenced by rtp::client::NetworkSyncSystem::onSpawnEntityFromServer().
| float rtp::net::EntitySpawnPayload::posY |
Spawn Y position.
Definition at line 352 of file Packet.hpp.
Referenced by rtp::client::NetworkSyncSystem::onSpawnEntityFromServer().
| 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().
| 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().
| uint8_t rtp::net::EntitySpawnPayload::type |
Entity type from EntityType.
Definition at line 350 of file Packet.hpp.
Referenced by rtp::client::NetworkSyncSystem::onSpawnEntityFromServer().
| 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().