Hide FriendFlags

This commit is contained in:
Garry Newman 2020-02-24 13:07:50 +00:00
parent faee6f6cf2
commit 2843749918
3 changed files with 22 additions and 3 deletions

View File

@ -634,7 +634,7 @@ namespace Steamworks
//
// EFriendFlags
//
public enum FriendFlags : int
internal enum FriendFlags : int
{
None = 0,
Blocked = 1,

View File

@ -98,7 +98,7 @@ namespace Steamworks
}
}
public static IEnumerable<Friend> GetFriendsWithFlag(FriendFlags flag)
private static IEnumerable<Friend> GetFriendsWithFlag(FriendFlags flag)
{
for ( int i=0; i<Internal.GetFriendCount( (int)flag); i++ )
{
@ -116,6 +116,26 @@ namespace Steamworks
return GetFriendsWithFlag(FriendFlags.Blocked);
}
public static IEnumerable<Friend> GetFriendsRequested()
{
return GetFriendsWithFlag( FriendFlags.FriendshipRequested );
}
public static IEnumerable<Friend> GetFriendsClanMembers()
{
return GetFriendsWithFlag( FriendFlags.ClanMember );
}
public static IEnumerable<Friend> GetFriendsOnGameServer()
{
return GetFriendsWithFlag( FriendFlags.OnGameServer );
}
public static IEnumerable<Friend> GetFriendsRequestingFriendship()
{
return GetFriendsWithFlag( FriendFlags.RequestingFriendship );
}
public static IEnumerable<Friend> GetPlayedWith()
{
for ( int i = 0; i < Internal.GetCoplayFriendCount(); i++ )

View File

@ -105,7 +105,6 @@ public static class Cleanup
internal static string Expose( string name )
{
if ( name == "FriendState" ) return "public";
if (name == "FriendFlags") return "public";
if ( name == "MusicStatus" ) return "public";
if ( name == "ParentalFeature" ) return "public";
if ( name == "AuthResponse" ) return "public";