mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-11 11:19:09 +00:00
1
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
//========= 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
|
||||
Reference in New Issue
Block a user