diff --git a/public/eiface.h b/public/eiface.h index abdf3fd3..df94bd63 100644 --- a/public/eiface.h +++ b/public/eiface.h @@ -63,6 +63,7 @@ class ISPSharedMemory; class CGamestatsData; class CEngineHltvInfo_t; class INetMessage; +class HltvReplayParams_t; namespace google { @@ -487,6 +488,15 @@ public: // Update counts of external viewers (Twitch.tv) virtual void UpdateHltvExternalViewers( uint32 totalSpectators, uint32 spectatorsLinkedToSteam) = 0; + + virtual bool WasShutDownRequested( void ) const = 0; + virtual void *StartClientHltvReplay( int client , const HltvReplayParams_t & ) = 0; + virtual void *StopClientHltvReplay( int client ) = 0; + virtual int GetClientHltvReplayDelay( int client ) = 0; + virtual bool HasHltvReplay( void ) = 0; + virtual bool ClientCanStartHltvReplay( int client ) = 0; + virtual int ClientResetReplayRequestTime( int client ) = 0; + virtual bool AnyClientsInHltvReplayMode( void ) = 0; }; #define INTERFACEVERSION_SERVERGAMEDLL "ServerGameDLL005" @@ -625,7 +635,10 @@ public: virtual bool OnPureServerFileValidationFailure( edict_t *pPlayer, const char *pszPathID, const char *pszFileName, CRC32_t crcIOSequence, int eFileHashType, int cbFileLen, int nPackFileNumber, int nPackFileID ) = 0; virtual void PrecacheParticleSystemFile( const char *pszFilename ) = 0; + virtual void ClientConnectionValidatePreNetChan( bool, const char *, int, unsigned long long ) = 0; + virtual void OnEngineClientNetworkEvent( edict_t *, unsigned long long, int, void * ) = 0; virtual void GetNewestSubscribedFiles() = 0; + virtual bool ValidateAndAddActiveCaster( const CSteamID & ) = 0; }; //----------------------------------------------------------------------------- diff --git a/public/iclient.h b/public/iclient.h index f289d509..1828892e 100644 --- a/public/iclient.h +++ b/public/iclient.h @@ -19,6 +19,7 @@ class INetMessage; struct NetMessageCvar_t; struct USERID_t; class CMsg_CVars; +class HltvReplayParams_t; enum CrossPlayPlatform_t { @@ -108,6 +109,13 @@ public: virtual bool IsHumanPlayer() const = 0; virtual CrossPlayPlatform_t GetClientPlatform() const = 0; + + virtual bool StartHltvReplay( const HltvReplayParams_t & ) = 0; + virtual void StopHltvReplay( void ) = 0; + virtual int GetHltvReplayDelay( void ) = 0; + virtual const char *GetHltvReplayStatus( void ) const = 0; + virtual bool CanStartHltvReplay( void ) = 0; + virtual void ResetReplayRequestTime( void ) = 0; }; #endif // ICLIENT_H diff --git a/public/inetmsghandler.h b/public/inetmsghandler.h index 422fb870..31f1b100 100644 --- a/public/inetmsghandler.h +++ b/public/inetmsghandler.h @@ -25,6 +25,8 @@ public: virtual ~INetChannelHandler( void ) {}; virtual void ConnectionStart(INetChannel *chan) = 0; // called first time network channel is established + + virtual void ConnectionStop() = 0; virtual void ConnectionClosing(const char *reason) = 0; // network channel is being closed by remote site