diff options
| author | Joe Ludwig <[email protected]> | 2013-06-26 15:22:04 -0700 |
|---|---|---|
| committer | Joe Ludwig <[email protected]> | 2013-06-26 15:22:04 -0700 |
| commit | 39ed87570bdb2f86969d4be821c94b722dc71179 (patch) | |
| tree | abc53757f75f40c80278e87650ea92808274aa59 /sp/src/public/ihltv.h | |
| download | source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.tar.xz source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.zip | |
First version of the SOurce SDK 2013
Diffstat (limited to 'sp/src/public/ihltv.h')
| -rw-r--r-- | sp/src/public/ihltv.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/sp/src/public/ihltv.h b/sp/src/public/ihltv.h new file mode 100644 index 00000000..2f2ec2ee --- /dev/null +++ b/sp/src/public/ihltv.h @@ -0,0 +1,48 @@ +//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//
+//=============================================================================//
+
+#ifndef IHLTV_H
+#define IHLTV_H
+
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include "interface.h"
+
+class IServer;
+class IHLTVDirector;
+class IGameEvent;
+struct netadr_s;
+
+//-----------------------------------------------------------------------------
+// Interface the HLTV module exposes to the engine
+//-----------------------------------------------------------------------------
+#define INTERFACEVERSION_HLTVSERVER "HLTVServer001"
+
+class IHLTVServer : public IBaseInterface
+{
+public:
+ virtual ~IHLTVServer() {}
+
+ virtual IServer *GetBaseServer( void ) = 0; // get HLTV base server interface
+ virtual IHLTVDirector *GetDirector( void ) = 0; // get director interface
+ virtual int GetHLTVSlot( void ) = 0; // return entity index-1 of HLTV in game
+ virtual float GetOnlineTime( void ) = 0; // seconds since broadcast started
+ virtual void GetLocalStats( int &proxies, int &slots, int &specs ) = 0;
+ virtual void GetGlobalStats( int &proxies, int &slots, int &specs ) = 0;
+
+ virtual const netadr_s *GetRelayAddress( void ) = 0; // returns relay address
+
+ virtual bool IsMasterProxy( void ) = 0; // true, if this is the HLTV master proxy
+ virtual bool IsDemoPlayback( void ) = 0; // true if this is a HLTV demo
+
+ virtual void BroadcastEvent(IGameEvent *event) = 0; // send a director command to all specs
+};
+
+#endif
|