OpenTTD Source 20260421-master-gc2fbc6fdeb
NetworkGame Struct Reference

Structure with information shown in the game list (GUI). More...

#include <network_gamelist.h>

Public Member Functions

 NetworkGame (std::string_view connection_string)
 Create the game.

Data Fields

NetworkGameInfo info {}
 The game information of this server.
std::string connection_string
 Address of the server.
NetworkGameStatus status = NGLS_OFFLINE
 Stats of the server.
bool manually = false
 True if the server was added manually.
bool refreshing = false
 Whether this server is being queried.
int version = 0
 Used to see which servers are no longer available on the Game Coordinator and can be removed.

Detailed Description

Structure with information shown in the game list (GUI).

Definition at line 27 of file network_gamelist.h.

Constructor & Destructor Documentation

◆ NetworkGame()

NetworkGame::NetworkGame ( std::string_view connection_string)
inline

Create the game.

Parameters
connection_stringThe address of the server.

Definition at line 32 of file network_gamelist.h.

References connection_string.

Field Documentation

◆ connection_string

std::string NetworkGame::connection_string

◆ info

◆ manually

bool NetworkGame::manually = false

True if the server was added manually.

Definition at line 37 of file network_gamelist.h.

Referenced by NetworkAddServer().

◆ refreshing

◆ status

◆ version

int NetworkGame::version = 0

Used to see which servers are no longer available on the Game Coordinator and can be removed.

Definition at line 39 of file network_gamelist.h.

Referenced by NetworkAddServer(), and ClientNetworkCoordinatorSocketHandler::ReceiveGameCoordinatorListing().


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