1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-01-03 16:13:22 +08:00

Add new IServer member.

This commit is contained in:
Nick Hastings 2021-09-16 20:06:29 -04:00
parent 54a1c6d203
commit 713b342171

View File

@ -13,6 +13,7 @@
#include <inetmsghandler.h>
#include <bitvec.h>
#include <const.h>
#include <netadr.h>
class INetMessage;
class IRecipientFilter;
@ -31,7 +32,8 @@ public:
virtual int GetMaxClients( void ) const = 0; // returns current client limit
virtual IClient *GetClient( int index ) = 0; // returns interface to client
virtual int GetClientCount() const = 0; // returns number of clients slots (used & unused)
virtual int GetUDPPort( void ) const = 0; // returns current used UDP port
virtual netadr_t GetPublicAddress() = 0;
virtual int GetLocalUDPPort( void ) const = 0; // returns current used UDP port
virtual float GetTime( void ) const = 0; // returns game world time
virtual int GetTick( void ) const = 0; // returns game world tick
virtual float GetTickInterval( void ) const = 0; // tick interval in seconds