css_enhanced_waf/game/server/ilagcompensationmanager.h

35 lines
942 B
C
Raw Normal View History

2020-04-22 18:56:21 +02:00
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================//
#ifndef ILAGCOMPENSATIONMANAGER_H
#define ILAGCOMPENSATIONMANAGER_H
2024-09-03 22:44:31 +02:00
2020-04-22 18:56:21 +02:00
#ifdef _WIN32
#pragma once
#endif
2024-09-03 22:44:31 +02:00
#include "platform.h"
2020-04-22 18:56:21 +02:00
class CBasePlayer;
2024-09-03 22:44:31 +02:00
class CBaseEntity;
2020-04-22 18:56:21 +02:00
class CUserCmd;
//-----------------------------------------------------------------------------
// Purpose: This is also an IServerSystem
//-----------------------------------------------------------------------------
abstract_class ILagCompensationManager
{
2024-09-03 22:44:31 +02:00
public:
2020-04-22 18:56:21 +02:00
// Called during player movement to set up/restore after lag compensation
2024-09-03 22:44:31 +02:00
virtual void StartLagCompensation( CBasePlayer* player, CUserCmd* cmd ) = 0;
virtual void FinishLagCompensation( CBasePlayer* player ) = 0;
2020-04-22 18:56:21 +02:00
};
extern ILagCompensationManager *lagcompensation;
#endif // ILAGCOMPENSATIONMANAGER_H