OpenTTD Source
20240919-master-gdf0233f4c2
|
Go to the documentation of this file.
10 #ifndef NETWORK_GAMELIST_H
11 #define NETWORK_GAMELIST_H
14 #include "core/network_game_info.h"
std::string connection_string
Address of the server.
The game information that is sent from the server to the clients with extra information only required...
int _network_game_list_version
Current version of all items in the list.
@ NGLS_TOO_OLD
Server is too old to query.
void NetworkGameListRemoveItem(NetworkGameList *remove)
Remove an item from the gamelist linked list.
NetworkGameListStatus
The status a server can be in.
bool manually
True if the server was added manually.
int version
Used to see which servers are no longer available on the Game Coordinator and can be removed.
NetworkGameList * _network_game_list
Game list of this client.
NetworkGameList * NetworkGameListAddItem(const std::string &connection_string)
Add a new item to the linked gamelist.
@ NGLS_BANNED
You are banned from this server.
@ NGLS_ONLINE
Server is online.
Structure with information shown in the game list (GUI)
@ NGLS_OFFLINE
Server is offline (or cannot be queried).
void NetworkGameListRemoveExpired()
Remove all servers that have not recently been updated.
NetworkGameList * next
Next pointer to make a linked game list.
bool refreshing
Whether this server is being queried.
NetworkGameInfo info
The game information of this server.
@ NGLS_FULL
Server is full and cannot be queried.
NetworkGameListStatus status
Stats of the server.