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:
46
public/matchmaking/iplayermanager.h
Normal file
46
public/matchmaking/iplayermanager.h
Normal file
@ -0,0 +1,46 @@
|
||||
//========= Copyright <20> 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
|
Reference in New Issue
Block a user