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.

38 lines
1.5 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. //=======================================================================================//
  4. #ifndef ISERVERREPLAYCONTEXT_H
  5. #define ISERVERREPLAYCONTEXT_H
  6. #ifdef _WIN32
  7. #pragma once
  8. #endif
  9. //----------------------------------------------------------------------------------------
  10. #include "replay/ireplaycontext.h"
  11. //----------------------------------------------------------------------------------------
  12. class IGameEvent;
  13. class IReplaySessionRecorder;
  14. //----------------------------------------------------------------------------------------
  15. #define REPLAYHISTORYMANAGER_INTERFACE_VERSION_SERVER "VENGINE_SERVER_REPLAY_HISTORY_MANAGER_001"
  16. //----------------------------------------------------------------------------------------
  17. class IServerReplayContext : public IReplayContext
  18. {
  19. public:
  20. virtual void FlagForConVarSanityCheck() = 0; // Checks replay_enable / replay_local_fileserver_path / replay_downloadurlport / replay_downloadurlpath
  21. virtual IGameEvent *CreateReplaySessionInfoEvent() = 0; // Create "replay_sessioninfo" event w/ appropriate fields filled in
  22. virtual IReplaySessionRecorder *GetSessionRecorder() = 0;
  23. virtual const char *GetLocalFileServerPath() const = 0; // Returns the local path where session blocks and such should be published for download
  24. virtual void CreateSessionOnClient( int nClientSlot ) = 0;
  25. };
  26. //----------------------------------------------------------------------------------------
  27. #endif // ISERVERREPLAYCONTEXT_H