This commit is contained in:
Garry Newman 2016-11-09 12:21:57 +00:00
parent 4e4fdd63ee
commit d56e380c72
2 changed files with 38 additions and 0 deletions

View File

@ -98,6 +98,15 @@ namespace Facepunch.Steamworks
} }
} }
/// <summary>
/// Handles most interactions with people in Steam, not just friends as the name would suggest.
/// </summary>
/// <example>
/// foreach ( var friend in client.Friends.AllFriends )
/// {
/// Console.WriteLine( $"{friend.Id}: {friend.Name}" );
/// }
/// </example>
public class Friends public class Friends
{ {
internal Client client; internal Client client;
@ -133,6 +142,9 @@ namespace Facepunch.Steamworks
} }
} }
/// <summary>
/// Returns only friends
/// </summary>
public IEnumerable<SteamFriend> AllFriends public IEnumerable<SteamFriend> AllFriends
{ {
get get
@ -146,6 +158,9 @@ namespace Facepunch.Steamworks
} }
} }
/// <summary>
/// Returns all blocked users
/// </summary>
public IEnumerable<SteamFriend> AllBlocked public IEnumerable<SteamFriend> AllBlocked
{ {
get get

View File

@ -144,12 +144,28 @@ namespace Facepunch.Steamworks
} }
} }
/// <summary>
/// Represents a crafting recepie which was defined using the exchange
/// section in the item schema.
/// </summary>
public struct Recipe public struct Recipe
{ {
public struct Ingredient public struct Ingredient
{ {
/// <summary>
/// The definition ID of the ingredient.
/// </summary>
public int DefinitionId; public int DefinitionId;
/// <summary>
/// If we don't know about this item definition this might be null.
/// In which case, DefinitionId should still hold the correct id.
/// </summary>
public Definition Definition; public Definition Definition;
/// <summary>
/// The amount of this item needed. Generally this will be 1.
/// </summary>
public int Count; public int Count;
internal static Ingredient FromString( string part, Definition[] definitions ) internal static Ingredient FromString( string part, Definition[] definitions )
@ -171,7 +187,14 @@ namespace Facepunch.Steamworks
} }
} }
/// <summary>
/// The item that this will create.
/// </summary>
public Definition Result; public Definition Result;
/// <summary>
/// The items, with quantity required to create this item.
/// </summary>
public Ingredient[] Ingredients; public Ingredient[] Ingredients;
internal static Recipe FromString( string part, Definition[] definitions, Definition Result ) internal static Recipe FromString( string part, Definition[] definitions, Definition Result )