group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
LobbyUIConfig Struct Reference

Input data consumed by lobby_ui::buildPlayerList each frame. More...

#include <LobbyUI.hpp>

Collaboration diagram for LobbyUIConfig:
[legend]

Public Attributes

const std::vector< LobbyPlayer > & players
 Current snapshot of all connected players.
ClientId localId
 This client's own ID, used to label the local player.
bool isHost
 True if the local client is the lobby host.
bool canStartMatch
 True when the host is allowed to start the match.
bool startCountdownActive
 True while the pre-match countdown is running.
float startCountdownRemaining
 Seconds remaining in the countdown.
std::optional< MatchConfigmatchConfig
 Current match settings, if received from the server.
std::string_view serverName
 Display name for the connected server.
bool isHosting
 True if this client owns a local hosted server process.
std::string_view hostLanIp
 Address shown to other players while this client is lobby host.
uint16_t hostPort
 Port shown to other players while this client is lobby host.
bool hostAddressesVisible
 True if the host address strip is currently visible.

Detailed Description

Input data consumed by lobby_ui::buildPlayerList each frame.

Member Data Documentation

◆ canStartMatch

bool LobbyUIConfig::canStartMatch

True when the host is allowed to start the match.

◆ hostAddressesVisible

bool LobbyUIConfig::hostAddressesVisible

True if the host address strip is currently visible.

◆ hostLanIp

std::string_view LobbyUIConfig::hostLanIp

Address shown to other players while this client is lobby host.

◆ hostPort

uint16_t LobbyUIConfig::hostPort

Port shown to other players while this client is lobby host.

◆ isHost

bool LobbyUIConfig::isHost

True if the local client is the lobby host.

◆ isHosting

bool LobbyUIConfig::isHosting

True if this client owns a local hosted server process.

◆ localId

ClientId LobbyUIConfig::localId

This client's own ID, used to label the local player.

◆ matchConfig

std::optional<MatchConfig> LobbyUIConfig::matchConfig

Current match settings, if received from the server.

◆ players

const std::vector<LobbyPlayer>& LobbyUIConfig::players

Current snapshot of all connected players.

◆ serverName

std::string_view LobbyUIConfig::serverName

Display name for the connected server.

◆ startCountdownActive

bool LobbyUIConfig::startCountdownActive

True while the pre-match countdown is running.

◆ startCountdownRemaining

float LobbyUIConfig::startCountdownRemaining

Seconds remaining in the countdown.


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