public static IEnumerable <Friend> GetFriends() { for (int i = 0; i < Internal.GetFriendCount((int)FriendFlags.Immediate); i++) { yield return(new Friend(Internal.GetFriendByIndex(i, 0xFFFF))); } }
private static IEnumerable <Friend> GetFriendsWithFlag(FriendFlags flag) { for (int i = 0; i < Internal.GetFriendCount((int)flag); i++) { yield return(new Friend(Internal.GetFriendByIndex(i, (int)flag))); } }