Team Fortress 2 Source Code as on 22/4/2020
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.

41 lines
1.3 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. //----------------------------------------------------------------------------------------
  4. #ifndef IREPLAYPLAYERCACHE_H
  5. #define IREPLAYPLAYERCACHE_H
  6. #ifdef _WIN32
  7. #pragma once
  8. #endif
  9. #include "interface.h"
  10. //----------------------------------------------------------------------------------------
  11. #define REPLAYPLAYERCACHE_INTERFACE_VERSION "VENGINE_REPLAY_PLAYER_CACHE_001"
  12. //----------------------------------------------------------------------------------------
  13. abstract_class IReplayPlayerCache : public IBaseInterface
  14. {
  15. public:
  16. virtual bool Init() = 0;
  17. virtual void Shutdown() = 0;
  18. virtual void SetupPlayer( int nEntIndex ) = 0;
  19. virtual void DeletePlayerEntry( int nEntIndex ) = 0;
  20. virtual bool PlayerHasCacheEntry( int nEntIndex ) = 0;
  21. virtual void SetPlayerClass( int nEntIndex, const char *pPlayerClass ) = 0;
  22. virtual void SetPlayerSpawnTick( int nEntIndex, int nTick ) = 0;
  23. virtual void SetPlayerDeathTick( int nEntIndex, int nTick ) = 0;
  24. virtual const char *GetPlayerClass( int nEntIndex ) = 0;
  25. virtual int GetPlayerSpawnTick( int nEntIndex ) = 0;
  26. virtual int GetPlayerDeathTick( int nEntIndex ) = 0;
  27. };
  28. //----------------------------------------------------------------------------------------
  29. #endif // IREPLAYPLAYERCACHE_H