R-Type
Networked shoot'em up built on Aegis2D
Loading...
Searching...
No Matches
rtype::RoomRecord Struct Reference

A room, as a RoomList describes it. More...

#include </__w/project-rtype/project-rtype/protocol/include/rtype/rooms.hpp>

Public Member Functions

bool operator== (const RoomRecord &) const =default
 Field-by-field equality.
 

Public Attributes

std::uint8_t room = 0
 Number of the room, 0 to max_listed_rooms - 1.
 
std::string name
 Name of the room.
 
std::uint8_t players = 0
 Players in the room.
 
std::uint8_t max_players = 0
 Most players the room takes, 1 to 4.
 
std::uint8_t state = 0
 State as sent: a RoomState value, or an unknown one.
 

Detailed Description

A room, as a RoomList describes it.

Member Function Documentation

◆ operator==()

bool rtype::RoomRecord::operator== ( const RoomRecord &  ) const
default

Field-by-field equality.

Returns
true if every field is equal.

Member Data Documentation

◆ max_players

std::uint8_t rtype::RoomRecord::max_players = 0

Most players the room takes, 1 to 4.

◆ name

std::string rtype::RoomRecord::name

Name of the room.

◆ players

std::uint8_t rtype::RoomRecord::players = 0

Players in the room.

◆ room

std::uint8_t rtype::RoomRecord::room = 0

Number of the room, 0 to max_listed_rooms - 1.

◆ state

std::uint8_t rtype::RoomRecord::state = 0

State as sent: a RoomState value, or an unknown one.


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