css_enhanced_waf/game/server/ilagcompensationmanager.h

34 lines
942 B
C++

//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================//
#ifndef ILAGCOMPENSATIONMANAGER_H
#define ILAGCOMPENSATIONMANAGER_H
#ifdef _WIN32
#pragma once
#endif
#include "platform.h"
class CBasePlayer;
class CBaseEntity;
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;
};
extern ILagCompensationManager *lagcompensation;
#endif // ILAGCOMPENSATIONMANAGER_H