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/basereplayserializeable.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'common/replay/basereplayserializeable.h')
| -rw-r--r-- | common/replay/basereplayserializeable.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/common/replay/basereplayserializeable.h b/common/replay/basereplayserializeable.h new file mode 100644 index 0000000..7414ab5 --- /dev/null +++ b/common/replay/basereplayserializeable.h @@ -0,0 +1,43 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +//=======================================================================================// + +#ifndef REPLAYSERIALIIZEABLE_H +#define REPLAYSERIALIIZEABLE_H +#ifdef _WIN32 +#pragma once +#endif + +//---------------------------------------------------------------------------------------- + +#include "replay/ireplayserializeable.h" +#include "replay/replayhandle.h" + +//---------------------------------------------------------------------------------------- + +class CBaseReplaySerializeable : public IReplaySerializeable +{ +public: + CBaseReplaySerializeable(); + + virtual void SetHandle( ReplayHandle_t h ); + virtual ReplayHandle_t GetHandle() const; + virtual bool Read( KeyValues *pIn ); + virtual void Write( KeyValues *pOut ); + virtual const char *GetFilename() const; + virtual const char *GetFullFilename() const; + virtual const char *GetDebugName() const; + virtual void SetLocked( bool bLocked ); + virtual bool IsLocked() const; + virtual void OnDelete(); + virtual void OnUnload(); + virtual void OnAddedToDirtyList(); + +private: + ReplayHandle_t m_hThis; + bool m_bLocked; +}; + +//---------------------------------------------------------------------------------------- + +#endif // REPLAYSERIALIIZEABLE_H
\ No newline at end of file |