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

Information about a game room Server OpCode. More...

#include <Packet.hpp>

Collaboration diagram for rtp::net::RoomInfo:

Public Attributes

uint32_t roomId
 Room identifier.
 
char roomName [64]
 Room name.
 
uint32_t currentPlayers
 Current number of players.
 
uint32_t maxPlayers
 Maximum number of players.
 
uint8_t inGame
 Is the game in progress.
 
float difficulty
 Difficulty level.
 
float speed
 Speed multiplier.
 
uint32_t duration
 Duration of the game session.
 
uint32_t seed
 Seed for random generation.
 
uint32_t levelId
 Level identifier.
 
uint8_t roomType
 Room type (public/private)
 

Detailed Description

Information about a game room Server OpCode.

Definition at line 244 of file Packet.hpp.

Member Data Documentation

◆ currentPlayers

uint32_t rtp::net::RoomInfo::currentPlayers

Current number of players.

Definition at line 247 of file Packet.hpp.

◆ difficulty

float rtp::net::RoomInfo::difficulty

Difficulty level.

Definition at line 250 of file Packet.hpp.

◆ duration

uint32_t rtp::net::RoomInfo::duration

Duration of the game session.

Definition at line 252 of file Packet.hpp.

◆ inGame

uint8_t rtp::net::RoomInfo::inGame

Is the game in progress.

Definition at line 249 of file Packet.hpp.

◆ levelId

uint32_t rtp::net::RoomInfo::levelId

Level identifier.

Definition at line 254 of file Packet.hpp.

◆ maxPlayers

uint32_t rtp::net::RoomInfo::maxPlayers

Maximum number of players.

Definition at line 248 of file Packet.hpp.

◆ roomId

uint32_t rtp::net::RoomInfo::roomId

Room identifier.

Definition at line 245 of file Packet.hpp.

Referenced by rtp::server::RoomSystem::listAllRooms().

◆ roomName

char rtp::net::RoomInfo::roomName[64]

Room name.

Definition at line 246 of file Packet.hpp.

◆ roomType

uint8_t rtp::net::RoomInfo::roomType

Room type (public/private)

Definition at line 255 of file Packet.hpp.

◆ seed

uint32_t rtp::net::RoomInfo::seed

Seed for random generation.

Definition at line 253 of file Packet.hpp.

◆ speed

float rtp::net::RoomInfo::speed

Speed multiplier.

Definition at line 251 of file Packet.hpp.


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