10#ifndef NETWORK_GAMELIST_H
11#define NETWORK_GAMELIST_H
14#include "core/network_game_info.h"
Wrapper for network addresses.
NetworkGame * NetworkGameListAddItem(std::string_view connection_string)
Add a new item to the linked gamelist.
void NetworkGameListRemoveItem(NetworkGame *remove)
Remove an item from the gamelist linked list.
void NetworkGameListRemoveExpired()
Remove all servers that have not recently been updated.
NetworkGameStatus
The status a server can be in.
@ NGLS_ONLINE
Server is online.
@ NGLS_FULL
Server is full and cannot be queried.
@ NGLS_TOO_OLD
Server is too old to query.
@ NGLS_OFFLINE
Server is offline (or cannot be queried).
@ NGLS_BANNED
You are banned from this server.
std::vector< std::unique_ptr< NetworkGame > > _network_game_list
Game list of this client.
int _network_game_list_version
Current version of all items in the list.
Types used for networking.
The game information that is sent from the server to the clients with extra information only required...
Structure with information shown in the game list (GUI)
bool refreshing
Whether this server is being queried.
std::string connection_string
Address of the server.
int version
Used to see which servers are no longer available on the Game Coordinator and can be removed.
NetworkGameInfo info
The game information of this server.
bool manually
True if the server was added manually.
NetworkGameStatus status
Stats of the server.