summaryrefslogtreecommitdiff
path: root/game/client/tf/tf_presence.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/client/tf/tf_presence.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'game/client/tf/tf_presence.h')
-rw-r--r--game/client/tf/tf_presence.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/game/client/tf/tf_presence.h b/game/client/tf/tf_presence.h
new file mode 100644
index 0000000..d0473cd
--- /dev/null
+++ b/game/client/tf/tf_presence.h
@@ -0,0 +1,46 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose: TF implementation of the IPresence interface
+//
+//=============================================================================
+
+#ifndef TF_PRESENCE_H
+#define TF_PRESENCE_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include "GameEventListener.h"
+#include "basepresence.h"
+#include "hl2orange.spa.h"
+
+//-----------------------------------------------------------------------------
+// Purpose: TF implementation for setting user contexts and properties.
+//-----------------------------------------------------------------------------
+class CTF_Presence : public CBasePresence, public CGameEventListener
+{
+public:
+ // IGameEventListener Interface
+ virtual void FireGameEvent( IGameEvent * event );
+
+ // CBaseGameSystemPerFrame overrides
+ virtual bool Init( void );
+ virtual void LevelInitPreEntity( void );
+
+ // IPresence interface
+ virtual void SetupGameProperties( CUtlVector< XUSER_CONTEXT > &contexts, CUtlVector< XUSER_PROPERTY > &properties );
+ virtual uint GetPresenceID( const char *pIDName );
+ virtual const char *GetPropertyIdString( const unsigned int id );
+ virtual void GetPropertyDisplayString( uint id, uint value, char *pOutput, int nBytes );
+ virtual void UploadStats();
+
+private:
+ bool m_bIsInCommentary;
+
+#if defined( _X360 )
+ XSESSION_VIEW_PROPERTIES m_ViewProperties[3];
+#endif
+
+};
+
+#endif // TF_PRESENCE_H