Add SteamFriends.GetFromSource

This commit is contained in:
laurirasanen 2019-09-19 16:25:43 +03:00
parent 39952fe50e
commit 796976cd47

View File

@ -136,6 +136,14 @@ namespace Steamworks
}
}
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",