diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /common/replay/ireplayserver.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'common/replay/ireplayserver.h')
| -rw-r--r-- | common/replay/ireplayserver.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/common/replay/ireplayserver.h b/common/replay/ireplayserver.h new file mode 100644 index 0000000..f2f4bf2 --- /dev/null +++ b/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 |