summaryrefslogtreecommitdiff
path: root/common/replay/ireplaymanager.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /common/replay/ireplaymanager.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'common/replay/ireplaymanager.h')
-rw-r--r--common/replay/ireplaymanager.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/common/replay/ireplaymanager.h b/common/replay/ireplaymanager.h
new file mode 100644
index 0000000..bf6ffd7
--- /dev/null
+++ b/common/replay/ireplaymanager.h
@@ -0,0 +1,42 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+//=======================================================================================//
+
+#ifndef IREPLAYMANAGER_H
+#define IREPLAYMANAGER_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+//----------------------------------------------------------------------------------------
+
+#include "interface.h"
+#include "replay/replayhandle.h"
+#include "utllinkedlist.h"
+
+//----------------------------------------------------------------------------------------
+
+class CReplay;
+class IQueryableReplayItem;
+
+//----------------------------------------------------------------------------------------
+
+class IReplayManager : public IBaseInterface
+{
+public:
+ virtual CReplay *GetReplay( ReplayHandle_t hReplay ) = 0;
+ virtual CReplay *GetPlayingReplay() = 0;
+ virtual CReplay *GetReplayForCurrentLife() = 0;
+ virtual void FlagReplayForFlush( CReplay *pReplay, bool bForceImmediate ) = 0;
+ virtual void DeleteReplay( ReplayHandle_t hReplay, bool bNotifyUI ) = 0;
+ virtual int GetReplayCount() const = 0;
+ virtual int GetUnrenderedReplayCount() = 0; // Get the number of unrendered replays
+ virtual void GetReplays( CUtlLinkedList< CReplay *, int > &lstReplays ) = 0;
+ virtual void GetReplaysAsQueryableItems( CUtlLinkedList< IQueryableReplayItem *, int > &lstReplays ) = 0;
+ virtual float GetDownloadProgress( const CReplay *pReplay ) = 0;
+ virtual const char *GetReplaysDir() const = 0;
+};
+
+//----------------------------------------------------------------------------------------
+
+#endif // IREPLAYMANAGER_H