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

Content of a CreateRoom. More...

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

Public Member Functions

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

Public Attributes

std::string name
 Name of the room, not checked yet: see valid_player_name(), whose rules apply.
 
std::uint8_t max_players = 0
 Most players the room takes, not checked yet: 1 to 4 are valid.
 
RoomRules rules {}
 How the room plays, not checked yet.
 

Detailed Description

Content of a CreateRoom.

Member Function Documentation

◆ operator==()

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

Field-by-field equality.

Returns
true if every field is equal.

Member Data Documentation

◆ max_players

std::uint8_t rtype::CreateRoomRequest::max_players = 0

Most players the room takes, not checked yet: 1 to 4 are valid.

◆ name

std::string rtype::CreateRoomRequest::name

Name of the room, not checked yet: see valid_player_name(), whose rules apply.

◆ rules

RoomRules rtype::CreateRoomRequest::rules {}

How the room plays, not checked yet.


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