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

Persistent host-screen options used when launching a local server. More...

#include <HostedServer.hpp>

Public Attributes

int port
 Requested port when useSpecificPort is true; 0 means auto.
bool useSpecificPort
 True when the user explicitly selected a port.
bool useLegacyTcp
 True to force the hosted server to legacy TCP transport.
bool persistAfterClientExit
 True to detach the hosted server after launch so it survives client exit.
bool advertiseGlobal
 Initial global-directory visibility for the hosted server.
bool advertiseLan
 Initial LAN-discovery visibility for the hosted server.
std::string serverName
 Name advertised in LAN/global server browsers for this hosted session.
int killsToWin
 Match config: kill threshold to win, sent to the server on launch and update.
int maxPlayers
 Match config: maximum number of connected players accepted by the server.
float powerupInitialSpawnDelaySeconds
 Match config: seconds before powerups first appear.
float powerupRespawnCooldownSeconds
 Match config: seconds before picked-up powerups reappear.

Detailed Description

Persistent host-screen options used when launching a local server.

Member Data Documentation

◆ advertiseGlobal

bool HostConfigState::advertiseGlobal

Initial global-directory visibility for the hosted server.

◆ advertiseLan

bool HostConfigState::advertiseLan

Initial LAN-discovery visibility for the hosted server.

◆ killsToWin

int HostConfigState::killsToWin

Match config: kill threshold to win, sent to the server on launch and update.

◆ maxPlayers

int HostConfigState::maxPlayers

Match config: maximum number of connected players accepted by the server.

◆ persistAfterClientExit

bool HostConfigState::persistAfterClientExit

True to detach the hosted server after launch so it survives client exit.

◆ port

int HostConfigState::port

Requested port when useSpecificPort is true; 0 means auto.

◆ powerupInitialSpawnDelaySeconds

float HostConfigState::powerupInitialSpawnDelaySeconds

Match config: seconds before powerups first appear.

◆ powerupRespawnCooldownSeconds

float HostConfigState::powerupRespawnCooldownSeconds

Match config: seconds before picked-up powerups reappear.

◆ serverName

std::string HostConfigState::serverName

Name advertised in LAN/global server browsers for this hosted session.

◆ useLegacyTcp

bool HostConfigState::useLegacyTcp

True to force the hosted server to legacy TCP transport.

◆ useSpecificPort

bool HostConfigState::useSpecificPort

True when the user explicitly selected a port.


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