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.

41 lines
1.1 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //
  7. //=============================================================================//
  8. #ifndef IREPLAY_H
  9. #define IREPLAY_H
  10. #ifdef _WIN32
  11. #pragma once
  12. #endif
  13. #include "interface.h"
  14. class IServer;
  15. class IReplayDirector;
  16. class IGameEvent;
  17. struct netadr_s;
  18. //-----------------------------------------------------------------------------
  19. // Interface the Replay module exposes to the engine
  20. //-----------------------------------------------------------------------------
  21. #define INTERFACEVERSION_REPLAYSERVER "ReplayServer001"
  22. class IReplayServer : public IBaseInterface
  23. {
  24. public:
  25. virtual ~IReplayServer() {}
  26. virtual IServer *GetBaseServer( void ) = 0; // get Replay base server interface
  27. virtual IReplayDirector *GetDirector( void ) = 0; // get director interface
  28. virtual int GetReplaySlot( void ) = 0; // return entity index-1 of Replay in game
  29. virtual float GetOnlineTime( void ) = 0; // seconds since broadcast started
  30. virtual void BroadcastEvent(IGameEvent *event) = 0; // send a director command to all specs
  31. };
  32. #endif