2018-01-19 18:00:32 +01:00
|
|
|
//========= Copyright (c) 1996-2002, Valve LLC, All rights reserved. ============
|
2016-06-04 15:24:23 +02:00
|
|
|
//
|
|
|
|
// Purpose:
|
|
|
|
//
|
|
|
|
// $NoKeywords: $
|
|
|
|
//=============================================================================
|
|
|
|
|
|
|
|
#if !defined( HUD_SERVERSH )
|
|
|
|
#define HUD_SERVERSH
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#define NET_CALLBACK /* */
|
|
|
|
|
|
|
|
// Dispatchers
|
|
|
|
void NET_CALLBACK ListResponse( struct net_response_s *response );
|
|
|
|
void NET_CALLBACK ServerResponse( struct net_response_s *response );
|
|
|
|
void NET_CALLBACK PingResponse( struct net_response_s *response );
|
|
|
|
void NET_CALLBACK RulesResponse( struct net_response_s *response );
|
|
|
|
void NET_CALLBACK PlayersResponse( struct net_response_s *response );
|
|
|
|
|
|
|
|
void ServersInit( void );
|
|
|
|
void ServersShutdown( void );
|
|
|
|
void ServersThink( double time );
|
|
|
|
void ServersCancel( void );
|
|
|
|
|
|
|
|
// Get list and get server info from each
|
|
|
|
void ServersList( void );
|
|
|
|
|
|
|
|
// Query for IP / IPX LAN servers
|
|
|
|
void BroadcastServersList( int clearpending );
|
|
|
|
|
|
|
|
void ServerPing( int server );
|
|
|
|
void ServerRules( int server );
|
|
|
|
void ServerPlayers( int server );
|
|
|
|
|
2016-07-03 15:39:55 +02:00
|
|
|
int ServersGetCount( void );
|
2016-06-04 15:24:23 +02:00
|
|
|
const char *ServersGetInfo( int server );
|
2016-07-03 15:39:55 +02:00
|
|
|
int ServersIsQuerying( void );
|
2016-06-04 15:24:23 +02:00
|
|
|
void SortServers( const char *fieldname );
|
2016-07-03 15:39:55 +02:00
|
|
|
#endif // HUD_SERVERSH
|