From f7512485bec059b8b5e8613f50ab6bcc1d5a1239 Mon Sep 17 00:00:00 2001 From: Peace-Maker Date: Mon, 29 Feb 2016 10:32:50 +0100 Subject: [PATCH] Update IHLTVServer and IHLTVDirector --- public/ihltv.h | 7 +++++++ public/ihltvdirector.h | 7 +++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/public/ihltv.h b/public/ihltv.h index b9475ffe..3f3e0d6b 100644 --- a/public/ihltv.h +++ b/public/ihltv.h @@ -25,6 +25,8 @@ struct netadr_s; //----------------------------------------------------------------------------- #define INTERFACEVERSION_HLTVSERVER "HLTVServer001" +class CGameInfo; + class IHLTVServer : public IBaseInterface { public: @@ -43,6 +45,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(void) = 0; + virtual char *GetRecordingDemoFilename(void) = 0; + virtual int StartAutoRecording(void) = 0; + virtual void StopRecording(CGameInfo const *info) = 0; }; #endif diff --git a/public/ihltvdirector.h b/public/ihltvdirector.h index b8ee107d..09e65ad3 100644 --- a/public/ihltvdirector.h +++ b/public/ihltvdirector.h @@ -23,8 +23,11 @@ public: virtual bool IsActive( void ) = 0; // true if director is active - virtual void SetHLTVServer( IHLTVServer *hltv ) = 0; // give the director the engine HLTV interface - virtual IHLTVServer* GetHLTVServer( void ) = 0; // get current HLTV server interface + virtual void AddHLTVServer( IHLTVServer *hltv ) = 0; // give the director the engine HLTV interface + virtual void RemoveHLTVServer( IHLTVServer *hltv ) = 0; + + virtual IHLTVServer* GetHLTVServer( int instance ) = 0; // get HLTV server interface of instance + virtual int GetHLTVServerCount( void ) = 0; virtual int GetDirectorTick( void ) = 0; // get current broadcast tick from director virtual int GetPVSEntity( void ) = 0; // get current view entity (PVS), 0 if coords are used