Go to the source code of this file.
Data Structures | |
struct | serverList_s |
Defines | |
#define | MAX_BOOKMARKS 16 |
Typedefs | |
typedef struct serverList_s | serverList_t |
Functions | |
void | CL_PingServers_f (void) |
The first function called when entering the multiplayer menu, then CL_Frame takes over. | |
void | CL_PrintServerList_f (void) |
Prints all the servers on the list to game console. | |
void | CL_ParseTeamInfoMessage (struct dbuffer *msg) |
Team selection text. | |
void | CL_ParseServerInfoMessage (struct dbuffer *msg, const char *hostname) |
Serverbrowser text. | |
void | MP_ServerListInit (void) |
void | MP_ServerListShutdown (void) |
Variables | |
serverList_t * | selectedServer |
#define MAX_BOOKMARKS 16 |
Definition at line 29 of file mp_serverlist.h.
Referenced by CL_BookmarkAdd_f(), CL_CompleteNetworkAddress(), and MP_ServerListInit().
typedef struct serverList_s serverList_t |
void CL_ParseServerInfoMessage | ( | struct dbuffer * | msg, | |
const char * | hostname | |||
) |
Serverbrowser text.
Definition at line 271 of file mp_serverlist.c.
References _, COLORED_GREEN, Com_DPrintf(), Com_Parse(), Com_Printf(), Com_sprintf(), Cvar_Set(), DEBUG_CLIENT, FS_CheckFile(), Info_BoolForKey(), Info_ValueForKey(), MAX_INFO_STRING, NET_ReadString(), Q_strncpyz(), serverInfoText, TEXT_LIST, TEXT_STANDARD, UI_PushWindow(), UI_RegisterText(), userInfoText, and va().
Referenced by CL_ServerInfoCallback().
void CL_ParseTeamInfoMessage | ( | struct dbuffer * | msg | ) |
Team selection text.
This function fills the multiplayer_selectteam menu with content
Definition at line 204 of file mp_serverlist.c.
References _, Com_DPrintf(), Cvar_SetValue(), DEBUG_CLIENT, Info_IntegerForKey(), Info_ValueForKey(), LIST_AddString(), MAX_TEAMS, teamData_s::maxPlayersPerTeam, teamData_s::maxteams, NET_ReadString(), TEAM_NO_ACTIVE, teamData_s::teamCount, teamData, TEXT_MULTIPLAYER_USERLIST, TEXT_MULTIPLAYER_USERTEAM, UI_ExecuteConfunc(), UI_RegisterLinkedListText(), UI_ResetData(), and va().
Referenced by CL_ConnectionlessPacket().
void CL_PingServers_f | ( | void | ) |
The first function called when entering the multiplayer menu, then CL_Frame takes over.
Definition at line 546 of file mp_serverlist.c.
References CL_Milliseconds(), CL_QueryMasterServer(), CL_ServerListDiscoveryCallback(), cls, Cmd_Argc(), Cmd_Argv(), Com_DPrintf(), DEBUG_CLIENT, DOUBLEQUOTE, i, lastServerQuery, Mem_Free, NET_DatagramBroadcast(), NET_DatagramSocketNew(), client_static_s::netDatagramSocket, PORT_CLIENT, PORT_SERVER, qfalse, qtrue, serverListLength, serverListPos, SERVERQUERYTIMEOUT, serversAlreadyQueried, serverText, TEXT_LIST, and UI_RegisterText().
Referenced by MP_CallbacksInit().
void CL_PrintServerList_f | ( | void | ) |
Prints all the servers on the list to game console.
Definition at line 162 of file mp_serverlist.c.
References Com_Printf(), i, and serverListLength.
Referenced by MP_ServerListInit().
void MP_ServerListInit | ( | void | ) |
Definition at line 594 of file mp_serverlist.c.
References CL_BookmarkAdd_f(), CL_PrintServerList_f(), CL_ServerInfo_f(), CL_ServerListClick_f(), Cmd_AddCommand(), CVAR_ARCHIVE, Cvar_Get(), i, MAX_BOOKMARKS, and va().
Referenced by GAME_MP_InitStartup().
void MP_ServerListShutdown | ( | void | ) |
Definition at line 610 of file mp_serverlist.c.
References Cmd_RemoveCommand(), and masterServerQueryThread.
Referenced by GAME_MP_Shutdown().
Definition at line 39 of file mp_serverlist.c.
Referenced by CL_Connect_f().