From 89e93d6c2a993f61e4dbc73605c06844219b5909 Mon Sep 17 00:00:00 2001 From: Garry Newman Date: Tue, 7 May 2019 16:59:52 +0100 Subject: [PATCH] Added Async to some async method names --- Facepunch.Steamworks.Test/InventoryTest.cs | 2 +- Facepunch.Steamworks/SteamInventory.cs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Facepunch.Steamworks.Test/InventoryTest.cs b/Facepunch.Steamworks.Test/InventoryTest.cs index 6bee75c..578a4c4 100644 --- a/Facepunch.Steamworks.Test/InventoryTest.cs +++ b/Facepunch.Steamworks.Test/InventoryTest.cs @@ -51,7 +51,7 @@ namespace Steamworks { await SteamInventory.WaitForDefinitions(); - var result = await SteamInventory.GetItems(); + var result = await SteamInventory.GetAllItemsAsync(); Assert.IsTrue( result.HasValue ); diff --git a/Facepunch.Steamworks/SteamInventory.cs b/Facepunch.Steamworks/SteamInventory.cs index 2a01e8e..65ef3bc 100644 --- a/Facepunch.Steamworks/SteamInventory.cs +++ b/Facepunch.Steamworks/SteamInventory.cs @@ -164,7 +164,7 @@ namespace Steamworks return defs.Select( x => new InventoryDef( x ) ).ToArray(); } - public static async Task GetItems() + public static async Task GetAllItemsAsync() { var sresult = default( SteamInventoryResult_t ); @@ -180,7 +180,7 @@ namespace Steamworks /// or if you don't care about hacked clients granting arbitrary items. /// This call can be disabled by a setting on Steamworks. /// - public static async Task GenerateItem( InventoryDef target, int amount ) + public static async Task GenerateItemAsync( InventoryDef target, int amount ) { var sresult = default( SteamInventoryResult_t ); @@ -198,7 +198,7 @@ namespace Steamworks /// You need to have set up the appropriate exchange rules in your item /// definitions. This assumes all the items passed in aren't stacked. /// - public static async Task CraftItem( InventoryItem[] list, InventoryDef target ) + public static async Task CraftItemAsync( InventoryItem[] list, InventoryDef target ) { var sresult = default( SteamInventoryResult_t );