1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-09-19 20:16:10 +08:00

Tidied up a few more things.

This commit is contained in:
Nicholas Hastings
2013-07-12 12:15:03 -04:00
parent 334e8f97b8
commit 91ecba685a
4 changed files with 15 additions and 5 deletions

View File

@ -25,7 +25,7 @@ public:
virtual ~IClient() {}
// connect client
virtual void Connect( const char * szName, int nUserID, INetChannel *pNetChannel, bool bFakePlayer, CUtlVector< NetMessageCvar_t > *pVecCvars = NULL ) = 0;
virtual void Connect( const char * szName, int nUserID, INetChannel *pNetChannel, bool bFakePlayer, int, const CMsg_CVars *cvars ) = 0;
// set the client in a pending state waiting for a new game
virtual void Inactivate( void ) = 0;

View File

@ -19,6 +19,7 @@ class IServer;
class IHLTVDirector;
class IGameEvent;
struct netadr_s;
class CGameInfo;
//-----------------------------------------------------------------------------
// Interface the HLTV module exposes to the engine
@ -43,6 +44,11 @@ public:
virtual bool IsDemoPlayback( void ) = 0; // true if this is a HLTV demo
virtual void BroadcastEvent(IGameEvent *event) = 0; // send a director command to all specs
virtual bool IsRecording() = 0;
virtual const char *GetRecordingDemoFilename ( void ) = 0;
virtual void StartAutoRecording( void ) = 0;
virtual void StopAutoRecording( const CGameInfo *pInfo ) = 0;
};
#endif

View File

@ -86,13 +86,11 @@ public:
virtual void SetFileTransmissionMode(bool bBackgroundMode) = 0;
virtual void SetCompressionMode( bool bUseCompression ) = 0;
virtual unsigned int RequestFile(const char *filename, bool isReplayDemoFile) = 0;
virtual float GetTimeSinceLastReceived( void ) const = 0; // get time since last received packet in seconds
virtual void SetMaxBufferSize(bool bReliable, int nBytes, bool bVoice = false ) = 0;
virtual bool IsNull() const = 0;
virtual int GetNumBitsWritten( bool bReliable ) = 0;
virtual void SetInterpolationAmount( float flInterpolationAmount ) = 0;
virtual void SetInterpolationAmount( float flInterpolationAmount, float ) = 0;
virtual void SetRemoteFramerate( float flFrameTime, float flFrameTimeStdDeviation ) = 0;
// Max # of payload bytes before we must split/fragment the packet
@ -105,6 +103,12 @@ public:
virtual void DetachSplitPlayer( int nSplitPlayerSlot ) = 0;
virtual bool IsRemoteDisconnected() const = 0;
virtual int GetNumBitsWritten(int bufferType) = 0;
virtual void SetUsesMaxRoutablePlayload(bool useMax) = 0;
virtual bool WasLastMessageReliable() = 0;
};

View File

@ -25,7 +25,7 @@ class IKeyValuesSystem
public:
// allocates/frees a KeyValues object from the shared mempool
virtual void *AllocKeyValuesMemory() = 0;
virtual void FreeKeyValuesMemory(void *pMem) = 0;
virtual void FreeKeyValuesMemory(KeyValues *pKV) = 0;
// symbol table access (used for key names)
virtual HKeySymbol GetSymbolForString( const char *name, bool bCreate = true ) = 0;