mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-01-28 06:28:08 +03:00
Merge pull request #310 from laurirasanen/master
Add SteamFriends.GetFromSource
This commit is contained in:
commit
06169693d0
@ -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>
|
/// <summary>
|
||||||
/// The dialog to open. Valid options are:
|
/// The dialog to open. Valid options are:
|
||||||
/// "friends",
|
/// "friends",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user