mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-27 07:05:50 +03:00
Merge pull request #310 from laurirasanen/master
Add SteamFriends.GetFromSource
This commit is contained in:
commit
06169693d0
@ -136,6 +136,14 @@ public static IEnumerable<Friend> GetPlayedWith()
|
||||
}
|
||||
}
|
||||
|
||||
public static IEnumerable<Friend> GetFromSource( SteamId steamid )
|
||||
{
|
||||
for ( int i = 0; i < Internal.GetFriendCountFromSource( steamid ); i++ )
|
||||
{
|
||||
yield return new Friend( Internal.GetFriendFromSourceByIndex( steamid, i ) );
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The dialog to open. Valid options are:
|
||||
/// "friends",
|
||||
|
Loading…
Reference in New Issue
Block a user