You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.1 KiB
46 lines
1.1 KiB
//========= Copyright © 1996-2009, Valve Corporation, All rights reserved. ============//
|
|
|
|
#ifndef _IPLAYERMANAGER_H_
|
|
#define _IPLAYERMANAGER_H_
|
|
|
|
class IPlayer;
|
|
class IPlayerFriend;
|
|
class IPlayerLocal;
|
|
|
|
abstract_class IPlayerManager
|
|
{
|
|
public:
|
|
//
|
|
// EnableServersUpdate
|
|
// controls whether friends data is being updated in the background
|
|
//
|
|
virtual void EnableFriendsUpdate( bool bEnable ) = 0;
|
|
|
|
//
|
|
// GetLocalPlayer
|
|
// returns a local player interface for a given controller index
|
|
//
|
|
virtual IPlayerLocal * GetLocalPlayer( int iController ) = 0;
|
|
|
|
//
|
|
// GetNumFriends
|
|
// returns number of friends discovered and for which data is available
|
|
//
|
|
virtual int GetNumFriends() = 0;
|
|
|
|
//
|
|
// GetFriend
|
|
// returns player interface to the given friend or NULL if friend not found or not available
|
|
//
|
|
virtual IPlayerFriend * GetFriendByIndex( int index ) = 0;
|
|
virtual IPlayerFriend * GetFriendByXUID( XUID xuid ) = 0;
|
|
|
|
//
|
|
// FindPlayer
|
|
// returns player interface by player's XUID or NULL if player not found or not available
|
|
//
|
|
virtual IPlayer * FindPlayer( XUID xuid ) = 0;
|
|
};
|
|
|
|
|
|
#endif
|