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 /public/igameresources.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'public/igameresources.h')
| -rw-r--r-- | public/igameresources.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/public/igameresources.h b/public/igameresources.h new file mode 100644 index 0000000..8aeaae2 --- /dev/null +++ b/public/igameresources.h @@ -0,0 +1,44 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: IGameResources interface +// +// $NoKeywords: $ +//=============================================================================// + +#ifndef IGAMERESOURCES_H +#define IGAMERESOURCES_H + +class Color; +class Vector; + + +abstract_class IGameResources +{ +public: + virtual ~IGameResources() {}; + + // Team data access + virtual const char *GetTeamName( int index ) = 0; + virtual int GetTeamScore( int index ) = 0; + virtual const Color& GetTeamColor( int index ) = 0; + + // Player data access + virtual bool IsConnected( int index ) = 0; + virtual bool IsAlive( int index ) = 0; + virtual bool IsFakePlayer( int index ) = 0; + virtual bool IsLocalPlayer( int index ) = 0; + + virtual const char *GetPlayerName( int index ) = 0; + virtual int GetPlayerScore( int index ) = 0; + virtual int GetPing( int index ) = 0; +// virtual int GetPacketloss( int index ) = 0; + virtual int GetDeaths( int index ) = 0; + virtual int GetFrags( int index ) = 0; + virtual int GetTeam( int index ) = 0; + virtual int GetHealth( int index ) = 0; +}; + +extern IGameResources *GameResources( void ); // singelton accessor + +#endif + |