OpenTTD Source 20241224-master-gf74b0cf984
NetworkGameList Struct Reference

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

#include <network_gamelist.h>

Public Member Functions

 NetworkGameList (const std::string &connection_string)
 

Data Fields

NetworkGameInfo info = {}
 The game information of this server.
 
std::string connection_string
 Address of the server.
 
NetworkGameListStatus 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.
 
NetworkGameListnext = nullptr
 Next pointer to make a linked game list.
 

Detailed Description

Structure with information shown in the game list (GUI)

Definition at line 27 of file network_gamelist.h.

Constructor & Destructor Documentation

◆ NetworkGameList()

NetworkGameList::NetworkGameList ( const std::string &  connection_string)
inline

Definition at line 28 of file network_gamelist.h.

Field Documentation

◆ connection_string

std::string NetworkGameList::connection_string

Address of the server.

Definition at line 31 of file network_gamelist.h.

Referenced by NetworkGameListAddItem(), NetworkGameWindow::NGameNameSorter(), and NetworkGameWindow::OnClick().

◆ info

◆ manually

bool NetworkGameList::manually = false

True if the server was added manually.

Definition at line 33 of file network_gamelist.h.

Referenced by NetworkAddServer().

◆ next

NetworkGameList* NetworkGameList::next = nullptr

◆ refreshing

◆ status

◆ version

int NetworkGameList::version = 0

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

Definition at line 35 of file network_gamelist.h.

Referenced by NetworkAddServer(), NetworkGameListAddItem(), and ClientNetworkCoordinatorSocketHandler::Receive_GC_LISTING().


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