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.

31 lines
953 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef ILAGCOMPENSATIONMANAGER_H
  8. #define ILAGCOMPENSATIONMANAGER_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. class CBasePlayer;
  13. class CUserCmd;
  14. //-----------------------------------------------------------------------------
  15. // Purpose: This is also an IServerSystem
  16. //-----------------------------------------------------------------------------
  17. abstract_class ILagCompensationManager
  18. {
  19. public:
  20. // Called during player movement to set up/restore after lag compensation
  21. virtual void StartLagCompensation( CBasePlayer *player, CUserCmd *cmd ) = 0;
  22. virtual void FinishLagCompensation( CBasePlayer *player ) = 0;
  23. virtual bool IsCurrentlyDoingLagCompensation() const = 0;
  24. };
  25. extern ILagCompensationManager *lagcompensation;
  26. #endif // ILAGCOMPENSATIONMANAGER_H