mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-01-26 05:28:07 +03:00
Comments
This commit is contained in:
parent
4e4fdd63ee
commit
d56e380c72
@ -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
|
||||||
|
@ -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 )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user