mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-09-20 04:26:03 +08:00
Update IHLTVServer and IHLTVDirector
This commit is contained in:
@ -25,6 +25,8 @@ struct netadr_s;
|
|||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
#define INTERFACEVERSION_HLTVSERVER "HLTVServer001"
|
#define INTERFACEVERSION_HLTVSERVER "HLTVServer001"
|
||||||
|
|
||||||
|
class CGameInfo;
|
||||||
|
|
||||||
class IHLTVServer : public IBaseInterface
|
class IHLTVServer : public IBaseInterface
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@ -43,6 +45,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(void) = 0;
|
||||||
|
virtual char *GetRecordingDemoFilename(void) = 0;
|
||||||
|
virtual int StartAutoRecording(void) = 0;
|
||||||
|
virtual void StopRecording(CGameInfo const *info) = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -23,8 +23,11 @@ public:
|
|||||||
|
|
||||||
virtual bool IsActive( void ) = 0; // true if director is active
|
virtual bool IsActive( void ) = 0; // true if director is active
|
||||||
|
|
||||||
virtual void SetHLTVServer( IHLTVServer *hltv ) = 0; // give the director the engine HLTV interface
|
virtual void AddHLTVServer( IHLTVServer *hltv ) = 0; // give the director the engine HLTV interface
|
||||||
virtual IHLTVServer* GetHLTVServer( void ) = 0; // get current HLTV server 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 GetDirectorTick( void ) = 0; // get current broadcast tick from director
|
||||||
virtual int GetPVSEntity( void ) = 0; // get current view entity (PVS), 0 if coords are used
|
virtual int GetPVSEntity( void ) = 0; // get current view entity (PVS), 0 if coords are used
|
||||||
|
Reference in New Issue
Block a user