aboutsummaryrefslogtreecommitdiff
path: root/mp/src/common/replay/iserverreplaycontext.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 /mp/src/common/replay/iserverreplaycontext.h
downloadsource-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.tar.xz
source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.zip
First version of the SOurce SDK 2013
Diffstat (limited to 'mp/src/common/replay/iserverreplaycontext.h')
-rw-r--r--mp/src/common/replay/iserverreplaycontext.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/mp/src/common/replay/iserverreplaycontext.h b/mp/src/common/replay/iserverreplaycontext.h
new file mode 100644
index 00000000..a8e07d15
--- /dev/null
+++ b/mp/src/common/replay/iserverreplaycontext.h
@@ -0,0 +1,38 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+//=======================================================================================//
+
+#ifndef ISERVERREPLAYCONTEXT_H
+#define ISERVERREPLAYCONTEXT_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+//----------------------------------------------------------------------------------------
+
+#include "replay/ireplaycontext.h"
+
+//----------------------------------------------------------------------------------------
+
+class IGameEvent;
+class IReplaySessionRecorder;
+
+//----------------------------------------------------------------------------------------
+
+#define REPLAYHISTORYMANAGER_INTERFACE_VERSION_SERVER "VENGINE_SERVER_REPLAY_HISTORY_MANAGER_001"
+
+//----------------------------------------------------------------------------------------
+
+class IServerReplayContext : public IReplayContext
+{
+public:
+ virtual void FlagForConVarSanityCheck() = 0; // Checks replay_enable / replay_local_fileserver_path / replay_downloadurlport / replay_downloadurlpath
+ virtual IGameEvent *CreateReplaySessionInfoEvent() = 0; // Create "replay_sessioninfo" event w/ appropriate fields filled in
+ virtual IReplaySessionRecorder *GetSessionRecorder() = 0;
+ virtual const char *GetLocalFileServerPath() const = 0; // Returns the local path where session blocks and such should be published for download
+ virtual void CreateSessionOnClient( int nClientSlot ) = 0;
+};
+
+//----------------------------------------------------------------------------------------
+
+#endif // ISERVERREPLAYCONTEXT_H