aboutsummaryrefslogtreecommitdiff
path: root/mp/src/common/replay/ireplayserver.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/ireplayserver.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/ireplayserver.h')
-rw-r--r--mp/src/common/replay/ireplayserver.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/mp/src/common/replay/ireplayserver.h b/mp/src/common/replay/ireplayserver.h
new file mode 100644
index 00000000..f6de4e56
--- /dev/null
+++ b/mp/src/common/replay/ireplayserver.h
@@ -0,0 +1,48 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//
+//=============================================================================//
+
+#ifndef IREPLAYSERVER_H
+#define IREPLAYSERVER_H
+
+#ifdef _WIN32
+#pragma once
+#endif
+
+//-----------------------------------------------------------------------------
+
+#include "interface.h"
+
+//-----------------------------------------------------------------------------
+
+class IServer;
+class IReplayDirector;
+class IGameEvent;
+struct netadr_s;
+class CServerReplay;
+
+//-----------------------------------------------------------------------------
+// Interface the Replay module exposes to the engine
+//-----------------------------------------------------------------------------
+#define INTERFACEVERSION_REPLAYSERVER "ReplayServer001"
+
+class IReplayServer : public IBaseInterface
+{
+public:
+ virtual ~IReplayServer() {}
+
+ virtual IServer *GetBaseServer() = 0; // get Replay base server interface
+ virtual IReplayDirector *GetDirector() = 0; // get director interface
+ virtual int GetReplaySlot() = 0; // return entity index-1 of Replay in game
+ virtual float GetOnlineTime() = 0; // seconds since broadcast started
+ virtual void BroadcastEvent(IGameEvent *event) = 0; // send a director command to all specs
+ virtual bool IsRecording() = 0;
+ virtual void StartRecording() = 0;
+ virtual void StopRecording() = 0;
+};
+
+#endif