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.

22 lines
705 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. #include "cbase.h"
  3. #if defined( REPLAY_ENABLED )
  4. #include "replay/iserverreplay.h"
  5. #include "replay_gamestats_shared.h"
  6. //----------------------------------------------------------------------------------------
  7. class CServerReplayImp : public IServerReplay
  8. {
  9. public:
  10. virtual void UploadOgsData( KeyValues *pData, bool bIncludeTimeField )
  11. {
  12. GetReplayGameStatsHelper().UploadError( pData, bIncludeTimeField );
  13. }
  14. };
  15. static CServerReplayImp s_ServerReplayImp;
  16. EXPOSE_SINGLE_INTERFACE_GLOBALVAR( CServerReplayImp, IServerReplay, SERVER_REPLAY_INTERFACE_VERSION, s_ServerReplayImp );
  17. #endif // #if defined( REPLAY_ENABLED )