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

Update IHLTVServer and IHLTVDirector

This commit is contained in:
Peace-Maker
2016-02-29 10:32:50 +01:00
parent 3bc37cd079
commit f7512485be
2 changed files with 12 additions and 2 deletions

View File

@ -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

View File

@ -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