mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-26 22:55:55 +03:00
Added Async to some async method names
This commit is contained in:
parent
6ecc68e5d7
commit
89e93d6c2a
@ -51,7 +51,7 @@ public async Task GetAllItems()
|
|||||||
{
|
{
|
||||||
await SteamInventory.WaitForDefinitions();
|
await SteamInventory.WaitForDefinitions();
|
||||||
|
|
||||||
var result = await SteamInventory.GetItems();
|
var result = await SteamInventory.GetAllItemsAsync();
|
||||||
|
|
||||||
Assert.IsTrue( result.HasValue );
|
Assert.IsTrue( result.HasValue );
|
||||||
|
|
||||||
|
@ -164,7 +164,7 @@ internal static InventoryDef[] GetDefinitions()
|
|||||||
return defs.Select( x => new InventoryDef( x ) ).ToArray();
|
return defs.Select( x => new InventoryDef( x ) ).ToArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static async Task<InventoryResult?> GetItems()
|
public static async Task<InventoryResult?> GetAllItemsAsync()
|
||||||
{
|
{
|
||||||
var sresult = default( SteamInventoryResult_t );
|
var sresult = default( SteamInventoryResult_t );
|
||||||
|
|
||||||
@ -180,7 +180,7 @@ internal static InventoryDef[] GetDefinitions()
|
|||||||
/// or if you don't care about hacked clients granting arbitrary items.
|
/// or if you don't care about hacked clients granting arbitrary items.
|
||||||
/// This call can be disabled by a setting on Steamworks.
|
/// This call can be disabled by a setting on Steamworks.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static async Task<InventoryResult?> GenerateItem( InventoryDef target, int amount )
|
public static async Task<InventoryResult?> GenerateItemAsync( InventoryDef target, int amount )
|
||||||
{
|
{
|
||||||
var sresult = default( SteamInventoryResult_t );
|
var sresult = default( SteamInventoryResult_t );
|
||||||
|
|
||||||
@ -198,7 +198,7 @@ internal static InventoryDef[] GetDefinitions()
|
|||||||
/// You need to have set up the appropriate exchange rules in your item
|
/// You need to have set up the appropriate exchange rules in your item
|
||||||
/// definitions. This assumes all the items passed in aren't stacked.
|
/// definitions. This assumes all the items passed in aren't stacked.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static async Task<InventoryResult?> CraftItem( InventoryItem[] list, InventoryDef target )
|
public static async Task<InventoryResult?> CraftItemAsync( InventoryItem[] list, InventoryDef target )
|
||||||
{
|
{
|
||||||
var sresult = default( SteamInventoryResult_t );
|
var sresult = default( SteamInventoryResult_t );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user