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

Data for joining an existing room Client OpCode. More...

#include <Packet.hpp>

Collaboration diagram for rtp::net::JoinRoomPayload:

Public Attributes

uint32_t roomId
 Room identifier to join.
 
uint8_t isSpectator
 1 if joining as spectator
 

Detailed Description

Data for joining an existing room Client OpCode.

Definition at line 281 of file Packet.hpp.

Member Data Documentation

◆ isSpectator

uint8_t rtp::net::JoinRoomPayload::isSpectator

1 if joining as spectator

Definition at line 283 of file Packet.hpp.

Referenced by rtp::server::GameManager::handleJoinRoom().

◆ roomId

uint32_t rtp::net::JoinRoomPayload::roomId

Room identifier to join.

Definition at line 282 of file Packet.hpp.

Referenced by rtp::server::GameManager::handleJoinRoom(), and rtp::client::NetworkSyncSystem::tryJoinRoom().


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