aboutsummaryrefslogtreecommitdiff
path: root/sp/src/common/replay/iclientreplay.h
diff options
context:
space:
mode:
authorJoe Ludwig <[email protected]>2013-06-26 15:22:04 -0700
committerJoe Ludwig <[email protected]>2013-06-26 15:22:04 -0700
commit39ed87570bdb2f86969d4be821c94b722dc71179 (patch)
treeabc53757f75f40c80278e87650ea92808274aa59 /sp/src/common/replay/iclientreplay.h
downloadsource-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.tar.xz
source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.zip
First version of the SOurce SDK 2013
Diffstat (limited to 'sp/src/common/replay/iclientreplay.h')
-rw-r--r--sp/src/common/replay/iclientreplay.h64
1 files changed, 64 insertions, 0 deletions
diff --git a/sp/src/common/replay/iclientreplay.h b/sp/src/common/replay/iclientreplay.h
new file mode 100644
index 00000000..31362f4e
--- /dev/null
+++ b/sp/src/common/replay/iclientreplay.h
@@ -0,0 +1,64 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+//=======================================================================================//
+
+#ifndef ICLIENTREPLAY_H
+#define ICLIENTREPLAY_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+//----------------------------------------------------------------------------------------
+
+#include "interface.h"
+#include "replay/replayhandle.h"
+
+//----------------------------------------------------------------------------------------
+
+#define CLIENT_REPLAY_INTERFACE_VERSION "ClientReplay001"
+
+//----------------------------------------------------------------------------------------
+
+class IReplayFactory;
+class IReplayScreenshotSystem;
+class IReplayPerformancePlaybackHandler;
+class KeyValues;
+class IReplayCamera;
+class CReplayPerformance;
+struct RenderMovieParams_t;
+class IGameEvent;
+
+//----------------------------------------------------------------------------------------
+
+//
+// Allows the replay and engine DLL's to talk to the client.
+//
+class IClientReplay : public IBaseInterface
+{
+public:
+ virtual uint64 GetServerSessionId() = 0;
+ virtual bool CacheReplayRagdolls( const char* pFilename, int nStartTick ) = 0; // Cache replay ragdolls
+ virtual IReplayScreenshotSystem *GetReplayScreenshotSystem() = 0; // Get the client's replay screenshot system
+ virtual IReplayPerformancePlaybackHandler *GetPerformancePlaybackHandler() = 0;
+ virtual IReplayCamera *GetReplayCamera() = 0;
+ virtual void DisplayReplayMessage( const char *pLocalizeStr, bool bUrgent, bool bDlg, const char *pSound ) = 0;
+ virtual void DisplayReplayMessage( const wchar_t *pText, bool bUrgent, bool bDlg, const char *pSound ) = 0;
+ virtual void InitPerformanceEditor( ReplayHandle_t hReplay ) = 0;
+ virtual void HidePerformanceEditor() = 0;
+ virtual bool ShouldRender() = 0;
+ virtual void PlaySound( const char *pSound ) = 0;
+ virtual void UploadOgsData( KeyValues *pData, bool bIncludeTimeField ) = 0;
+ virtual bool ShouldCompletePendingReplay( IGameEvent *pEvent ) = 0;
+
+ virtual void OnSaveReplay( ReplayHandle_t hNewReplay, bool bShowInputDlg ) = 0;
+ virtual void OnDeleteReplay( ReplayHandle_t hReplay ) = 0; // Called before replay is actually removed from the replay manager
+ virtual void OnPlaybackComplete( ReplayHandle_t hReplay, int iPerformance ) = 0;
+ virtual void OnRenderStart() = 0;
+ virtual void OnRenderComplete( const RenderMovieParams_t &RenderParams, bool bCancelled, bool bSuccess, bool bShowBrowser ) = 0;
+ virtual bool OnConfirmQuit() = 0;
+ virtual bool OnEndOfReplayReached() = 0;
+};
+
+//----------------------------------------------------------------------------------------
+
+#endif // ICLIENTREPLAY_H \ No newline at end of file