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:
@ -25,7 +25,7 @@ public:
|
|||||||
virtual ~IClient() {}
|
virtual ~IClient() {}
|
||||||
|
|
||||||
// connect client
|
// 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
|
// set the client in a pending state waiting for a new game
|
||||||
virtual void Inactivate( void ) = 0;
|
virtual void Inactivate( void ) = 0;
|
||||||
|
@ -19,6 +19,7 @@ class IServer;
|
|||||||
class IHLTVDirector;
|
class IHLTVDirector;
|
||||||
class IGameEvent;
|
class IGameEvent;
|
||||||
struct netadr_s;
|
struct netadr_s;
|
||||||
|
class CGameInfo;
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// Interface the HLTV module exposes to the engine
|
// 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 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 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
|
#endif
|
||||||
|
@ -86,13 +86,11 @@ public:
|
|||||||
virtual void SetFileTransmissionMode(bool bBackgroundMode) = 0;
|
virtual void SetFileTransmissionMode(bool bBackgroundMode) = 0;
|
||||||
virtual void SetCompressionMode( bool bUseCompression ) = 0;
|
virtual void SetCompressionMode( bool bUseCompression ) = 0;
|
||||||
virtual unsigned int RequestFile(const char *filename, bool isReplayDemoFile) = 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 void SetMaxBufferSize(bool bReliable, int nBytes, bool bVoice = false ) = 0;
|
||||||
|
|
||||||
virtual bool IsNull() const = 0;
|
virtual bool IsNull() const = 0;
|
||||||
virtual int GetNumBitsWritten( bool bReliable ) = 0;
|
virtual void SetInterpolationAmount( float flInterpolationAmount, float ) = 0;
|
||||||
virtual void SetInterpolationAmount( float flInterpolationAmount ) = 0;
|
|
||||||
virtual void SetRemoteFramerate( float flFrameTime, float flFrameTimeStdDeviation ) = 0;
|
virtual void SetRemoteFramerate( float flFrameTime, float flFrameTimeStdDeviation ) = 0;
|
||||||
|
|
||||||
// Max # of payload bytes before we must split/fragment the packet
|
// Max # of payload bytes before we must split/fragment the packet
|
||||||
@ -105,6 +103,12 @@ public:
|
|||||||
virtual void DetachSplitPlayer( int nSplitPlayerSlot ) = 0;
|
virtual void DetachSplitPlayer( int nSplitPlayerSlot ) = 0;
|
||||||
|
|
||||||
virtual bool IsRemoteDisconnected() const = 0;
|
virtual bool IsRemoteDisconnected() const = 0;
|
||||||
|
|
||||||
|
virtual int GetNumBitsWritten(int bufferType) = 0;
|
||||||
|
|
||||||
|
virtual void SetUsesMaxRoutablePlayload(bool useMax) = 0;
|
||||||
|
|
||||||
|
virtual bool WasLastMessageReliable() = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ class IKeyValuesSystem
|
|||||||
public:
|
public:
|
||||||
// allocates/frees a KeyValues object from the shared mempool
|
// allocates/frees a KeyValues object from the shared mempool
|
||||||
virtual void *AllocKeyValuesMemory() = 0;
|
virtual void *AllocKeyValuesMemory() = 0;
|
||||||
virtual void FreeKeyValuesMemory(void *pMem) = 0;
|
virtual void FreeKeyValuesMemory(KeyValues *pKV) = 0;
|
||||||
|
|
||||||
// symbol table access (used for key names)
|
// symbol table access (used for key names)
|
||||||
virtual HKeySymbol GetSymbolForString( const char *name, bool bCreate = true ) = 0;
|
virtual HKeySymbol GetSymbolForString( const char *name, bool bCreate = true ) = 0;
|
||||||
|
Reference in New Issue
Block a user