hl2_src-leak-2017/src/public/igameresources.h
BotoX 60f625f414 import hl2_src from full.7z
source: magnet:?xt=urn:btih:21DDA6847DDE983F2F8063739249D2D1D09A5DDA
2020-12-25 16:26:23 +01:00

45 lines
1.2 KiB
C++

//========= 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