Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.2 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #ifndef IHLTVDIRECTOR_H
  7. #define IHLTVDIRECTOR_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. class IHLTVServer;
  12. class KeyValues;
  13. class Vector;
  14. #define INTERFACEVERSION_HLTVDIRECTOR "HLTVDirector001"
  15. class IHLTVDirector
  16. {
  17. public:
  18. virtual ~IHLTVDirector() {}
  19. virtual bool IsActive( void ) = 0; // true if director is active
  20. virtual void AddHLTVServer( IHLTVServer *hltv ) = 0; // give the director the engine HLTV interface
  21. virtual void RemoveHLTVServer( IHLTVServer *hltv ) = 0; // give the director the engine HLTV interface
  22. virtual IHLTVServer* GetHLTVServer( int nIndex ) = 0; // get current HLTV server interface
  23. virtual int GetHLTVServerCount() = 0;
  24. virtual int GetDirectorTick( void ) = 0; // get current broadcast tick from director
  25. virtual int GetPVSEntity( void ) = 0; // get current view entity (PVS), 0 if coords are used
  26. virtual Vector GetPVSOrigin( void ) = 0; // get current PVS origin
  27. virtual float GetDelay( void ) = 0; // returns current delay in seconds
  28. virtual const char** GetModEvents() = 0;
  29. };
  30. #endif // IHLTVDIRECTOR_H