mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-01-12 22:58:01 +03:00
Hide FriendFlags
This commit is contained in:
parent
faee6f6cf2
commit
2843749918
@ -634,7 +634,7 @@ namespace Steamworks
|
||||
//
|
||||
// EFriendFlags
|
||||
//
|
||||
public enum FriendFlags : int
|
||||
internal enum FriendFlags : int
|
||||
{
|
||||
None = 0,
|
||||
Blocked = 1,
|
||||
|
@ -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++ )
|
||||
|
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user