Team Fortress 2 Source Code as on 22/4/2020
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.4 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. //=======================================================================================//
  4. #ifndef IREPLAYDEMOPLAYER_H
  5. #define IREPLAYDEMOPLAYER_H
  6. #ifdef _WIN32
  7. #pragma once
  8. #endif
  9. //----------------------------------------------------------------------------------------
  10. #include "interface.h"
  11. #include "replay/replay.h"
  12. //----------------------------------------------------------------------------------------
  13. #define INTERFACEVERSION_REPLAYDEMOPLAYER "ReplayDemoPlayer001"
  14. //----------------------------------------------------------------------------------------
  15. //
  16. // Interface for replay demo player
  17. //
  18. class IReplayDemoPlayer : public IBaseInterface
  19. {
  20. public:
  21. virtual void PlayReplay( ReplayHandle_t hReplay, int iPerformance ) = 0;
  22. virtual void PlayNextReplay() = 0;
  23. virtual void ClearReplayList() = 0;
  24. virtual void AddReplayToList( ReplayHandle_t hReplay, int iPerformance ) = 0;
  25. virtual CReplay *GetCurrentReplay() = 0;
  26. virtual CReplayPerformance *GetCurrentPerformance() = 0; // The playing replay, or NULL if playing the original replay
  27. virtual void PauseReplay() = 0;
  28. virtual bool IsReplayPaused() = 0;
  29. virtual void ResumeReplay() = 0;
  30. virtual void OnSignonStateFull() = 0;
  31. };
  32. //----------------------------------------------------------------------------------------
  33. #endif // IREPLAYDEMOPLAYER_H