1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-09-19 20:16:10 +08:00

Added original SDK code for Alien Swarm.

This commit is contained in:
Scott Ehlert
2010-07-22 01:46:14 -05:00
commit c0a96ff1e8
3740 changed files with 1243478 additions and 0 deletions

44
public/igameresources.h Normal file
View File

@ -0,0 +1,44 @@
//========= Copyright <20> 1996-2005, 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