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 @@ public async Task GetAllItems() { 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 @@ internal static InventoryDef[] GetDefinitions() 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 @@ internal static InventoryDef[] GetDefinitions() /// 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 @@ internal static InventoryDef[] GetDefinitions() /// 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 );