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.

35 lines
1.0 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. //=============================================================================//
  4. #ifndef REPLAY_GAMESTATS_H
  5. #define REPLAY_GAMESTATS_H
  6. #ifdef _WIN32
  7. #pragma once
  8. #endif
  9. #include "replay/replayhandle.h"
  10. class CReplayRenderDialog;
  11. struct RenderMovieParams_t;
  12. class CReplayGameStatsHelper
  13. {
  14. public:
  15. CReplayGameStatsHelper();
  16. // Adding "Time" before uploading.
  17. void UploadError( KeyValues *pData, bool bIncludeTimeField );
  18. #if defined( CLIENT_DLL )
  19. void SW_ReplayStats_WriteRenderDataStart( const RenderMovieParams_t& RenderParams, const CReplayRenderDialog *pDlg );
  20. void SW_ReplayStats_WriteRenderDataEnd( const RenderMovieParams_t& RenderParams, const char *pEndReason );
  21. private:
  22. void SW_ReplayStats_WriteRenderData( bool bStarting, const RenderMovieParams_t& RenderParams, const CReplayRenderDialog *pDlg, const char *pEndReason = NULL );
  23. #endif
  24. };
  25. CReplayGameStatsHelper &GetReplayGameStatsHelper();
  26. #endif // REPLAY_GAMESTATS_H