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.
30 lines
894 B
30 lines
894 B
//========= 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; |
|
}; |
|
|
|
extern ILagCompensationManager *lagcompensation; |
|
|
|
#endif // ILAGCOMPENSATIONMANAGER_H
|
|
|