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.

40 lines
1.2 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. //=======================================================================================//
  4. #include "cl_recordingsessionblockmanager.h"
  5. #include "cl_recordingsessionblock.h"
  6. #include "cl_recordingsession.h"
  7. #include "cl_replaycontext.h"
  8. // memdbgon must be the last include file in a .cpp file!!!
  9. #include "tier0/memdbgon.h"
  10. //----------------------------------------------------------------------------------------
  11. CClientRecordingSessionBlockManager::CClientRecordingSessionBlockManager( IReplayContext *pContext )
  12. : CBaseRecordingSessionBlockManager( pContext )
  13. {
  14. }
  15. CBaseRecordingSessionBlock *CClientRecordingSessionBlockManager::Create()
  16. {
  17. return new CClientRecordingSessionBlock( m_pContext );
  18. }
  19. IReplayContext *CClientRecordingSessionBlockManager::GetReplayContext() const
  20. {
  21. return g_pClientReplayContextInternal;
  22. }
  23. float CClientRecordingSessionBlockManager::GetNextThinkTime() const
  24. {
  25. return g_pEngine->GetHostTime() + 0.5f;
  26. }
  27. void CClientRecordingSessionBlockManager::Think()
  28. {
  29. BaseClass::Think();
  30. }
  31. //----------------------------------------------------------------------------------------