From 69ec868227478918da2ee72082d41a06070f18a4 Mon Sep 17 00:00:00 2001 From: Garry Newman Date: Mon, 13 May 2019 15:50:31 +0100 Subject: [PATCH] Added Async to some async calls --- Facepunch.Steamworks/Structs/InventoryItem.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Facepunch.Steamworks/Structs/InventoryItem.cs b/Facepunch.Steamworks/Structs/InventoryItem.cs index 21f0f7d..5cade39 100644 --- a/Facepunch.Steamworks/Structs/InventoryItem.cs +++ b/Facepunch.Steamworks/Structs/InventoryItem.cs @@ -51,7 +51,7 @@ public struct InventoryItem : IEquatable /// a high-friction UI confirmation process is highly recommended.ConsumeItem can be restricted to certain item definitions or fully /// blocked via the Steamworks website to minimize support/abuse issues such as the classic "my brother borrowed my laptop and deleted all of my rare items". /// - public async Task Consume( int amount = 1 ) + public async Task ConsumeAsync( int amount = 1 ) { var sresult = default( SteamInventoryResult_t ); if ( !SteamInventory.Internal.ConsumeItem( ref sresult, Id, (uint)amount ) ) @@ -63,7 +63,7 @@ public struct InventoryItem : IEquatable /// /// Split stack into two items /// - public async Task SplitStack( int quantity = 1 ) + public async Task SplitStackAsync( int quantity = 1 ) { var sresult = default( SteamInventoryResult_t ); if ( !SteamInventory.Internal.TransferItemQuantity( ref sresult, Id, (uint)quantity, ulong.MaxValue ) ) @@ -75,7 +75,7 @@ public struct InventoryItem : IEquatable /// /// Add x units of the target item to this item /// - public async Task Add( InventoryItem add, int quantity = 1 ) + public async Task AddAsync( InventoryItem add, int quantity = 1 ) { var sresult = default( SteamInventoryResult_t ); if ( !SteamInventory.Internal.TransferItemQuantity( ref sresult, add.Id, (uint)quantity, Id ) )