summaryrefslogtreecommitdiff
path: root/common/replay/ireplayperformancerecorder.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/ireplayperformancerecorder.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'common/replay/ireplayperformancerecorder.h')
-rw-r--r--common/replay/ireplayperformancerecorder.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/common/replay/ireplayperformancerecorder.h b/common/replay/ireplayperformancerecorder.h
new file mode 100644
index 0000000..1274ab0
--- /dev/null
+++ b/common/replay/ireplayperformancerecorder.h
@@ -0,0 +1,49 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+//=======================================================================================//
+
+#ifndef IREPLAYPERFORMANCERECORDER_H
+#define IREPLAYPERFORMANCERECORDER_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+//----------------------------------------------------------------------------------------
+
+#include "interface.h"
+
+//----------------------------------------------------------------------------------------
+
+class CReplay;
+class Vector;
+class QAngle;
+class CReplayPerformance;
+
+//----------------------------------------------------------------------------------------
+
+class IReplayPerformanceRecorder : public IBaseInterface
+{
+public:
+ virtual void BeginPerformanceRecord( CReplay *pReplay ) = 0;
+ virtual void EndPerformanceRecord() = 0;
+
+ virtual void NotifyPauseState( bool bPaused ) = 0;
+
+ virtual CReplayPerformance *GetPerformance() = 0;
+ virtual bool IsRecording() const = 0;
+
+ virtual void SnipAtTime( float flTime ) = 0;
+ virtual void NotifySkipping() = 0;
+ virtual void ClearSkipping() = 0;
+
+ virtual void AddEvent_Camera_Change_FirstPerson( float flTime, int nEntityIndex ) = 0;
+ virtual void AddEvent_Camera_Change_ThirdPerson( float flTime, int nEntityIndex ) = 0;
+ virtual void AddEvent_Camera_Change_Free( float flTime ) = 0;
+ virtual void AddEvent_Camera_ChangePlayer( float flTime, int nEntIndex ) = 0;
+ virtual void AddEvent_Camera_SetView( float flTime, const Vector& origin, const QAngle &angles, float fov ) = 0;
+ virtual void AddEvent_Slowmo( float flTime, float flScale ) = 0;
+};
+
+//----------------------------------------------------------------------------------------
+
+#endif // IREPLAYPERFORMANCERECORDER_H