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.

42 lines
1.3 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. //=======================================================================================//
  4. #ifndef REPLAYSERIALIIZEABLE_H
  5. #define REPLAYSERIALIIZEABLE_H
  6. #ifdef _WIN32
  7. #pragma once
  8. #endif
  9. //----------------------------------------------------------------------------------------
  10. #include "replay/ireplayserializeable.h"
  11. #include "replay/replayhandle.h"
  12. //----------------------------------------------------------------------------------------
  13. class CBaseReplaySerializeable : public IReplaySerializeable
  14. {
  15. public:
  16. CBaseReplaySerializeable();
  17. virtual void SetHandle( ReplayHandle_t h );
  18. virtual ReplayHandle_t GetHandle() const;
  19. virtual bool Read( KeyValues *pIn );
  20. virtual void Write( KeyValues *pOut );
  21. virtual const char *GetFilename() const;
  22. virtual const char *GetFullFilename() const;
  23. virtual const char *GetDebugName() const;
  24. virtual void SetLocked( bool bLocked );
  25. virtual bool IsLocked() const;
  26. virtual void OnDelete();
  27. virtual void OnUnload();
  28. virtual void OnAddedToDirtyList();
  29. private:
  30. ReplayHandle_t m_hThis;
  31. bool m_bLocked;
  32. };
  33. //----------------------------------------------------------------------------------------
  34. #endif // REPLAYSERIALIIZEABLE_H