diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /common/replay/ireplayplayercache.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'common/replay/ireplayplayercache.h')
| -rw-r--r-- | common/replay/ireplayplayercache.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/common/replay/ireplayplayercache.h b/common/replay/ireplayplayercache.h new file mode 100644 index 0000000..c1a816f --- /dev/null +++ b/common/replay/ireplayplayercache.h @@ -0,0 +1,41 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +//---------------------------------------------------------------------------------------- + +#ifndef IREPLAYPLAYERCACHE_H +#define IREPLAYPLAYERCACHE_H +#ifdef _WIN32 +#pragma once +#endif + +#include "interface.h" + +//---------------------------------------------------------------------------------------- + +#define REPLAYPLAYERCACHE_INTERFACE_VERSION "VENGINE_REPLAY_PLAYER_CACHE_001" + +//---------------------------------------------------------------------------------------- + +abstract_class IReplayPlayerCache : public IBaseInterface +{ +public: + virtual bool Init() = 0; + virtual void Shutdown() = 0; + + virtual void SetupPlayer( int nEntIndex ) = 0; + virtual void DeletePlayerEntry( int nEntIndex ) = 0; + + virtual bool PlayerHasCacheEntry( int nEntIndex ) = 0; + + virtual void SetPlayerClass( int nEntIndex, const char *pPlayerClass ) = 0; + virtual void SetPlayerSpawnTick( int nEntIndex, int nTick ) = 0; + virtual void SetPlayerDeathTick( int nEntIndex, int nTick ) = 0; + + virtual const char *GetPlayerClass( int nEntIndex ) = 0; + virtual int GetPlayerSpawnTick( int nEntIndex ) = 0; + virtual int GetPlayerDeathTick( int nEntIndex ) = 0; +}; + +//---------------------------------------------------------------------------------------- + +#endif // IREPLAYPLAYERCACHE_H |