diff --git a/Facepunch.Steamworks/SteamFriends.cs b/Facepunch.Steamworks/SteamFriends.cs index dda0fcf..2f3263b 100644 --- a/Facepunch.Steamworks/SteamFriends.cs +++ b/Facepunch.Steamworks/SteamFriends.cs @@ -136,6 +136,14 @@ namespace Steamworks } } + public static IEnumerable GetFromSource( SteamId steamid ) + { + for ( int i = 0; i < Internal.GetFriendCountFromSource( steamid ); i++ ) + { + yield return new Friend( Internal.GetFriendFromSourceByIndex( steamid, i ) ); + } + } + /// /// The dialog to open. Valid options are: /// "friends",