public static IEnumerable <Friend> GetFromSource(SteamId steamid) { for (int i = 0; i < Internal.GetFriendCountFromSource(steamid); i++) { yield return(new Friend(Internal.GetFriendFromSourceByIndex(steamid, i))); } }