This repository has been archived on 2024-06-13. You can view files and clone it, but cannot push or open issues or pull requests.
nekohook/modules/source2013/sdk/game/server/ilagcompensationmanager.h
2020-08-04 13:13:01 -04:00

31 lines
967 B
C++

//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================//
#ifndef ILAGCOMPENSATIONMANAGER_H
#define ILAGCOMPENSATIONMANAGER_H
#ifdef _WIN32
#pragma once
#endif
class CBasePlayer;
class CUserCmd;
//-----------------------------------------------------------------------------
// Purpose: This is also an IServerSystem
//-----------------------------------------------------------------------------
abstract_class ILagCompensationManager {
public:
// Called during player movement to set up/restore after lag compensation
virtual void StartLagCompensation(CBasePlayer * player, CUserCmd * cmd) = 0;
virtual void FinishLagCompensation(CBasePlayer * player) = 0;
virtual bool IsCurrentlyDoingLagCompensation() const = 0;
};
extern ILagCompensationManager *lagcompensation;
#endif // ILAGCOMPENSATIONMANAGER_H