From f65cfecc6493a4d0bd6393a8ea50c4a587f388cb Mon Sep 17 00:00:00 2001 From: Garry Newman Date: Wed, 8 May 2019 21:14:58 +0100 Subject: [PATCH] Changed TransferItemQuantity to Add --- 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 7036d1a..4472118 100644 --- a/Facepunch.Steamworks/Structs/InventoryItem.cs +++ b/Facepunch.Steamworks/Structs/InventoryItem.cs @@ -73,12 +73,12 @@ public struct InventoryItem } /// - /// Transfer x quantity from this item to the target item + /// Add x units of the target item to this item /// - public async Task TransferItemQuantity( InventoryItem toItem, int quantity ) + public async Task Add( InventoryItem add, int quantity = 1 ) { var sresult = default( SteamInventoryResult_t ); - if ( !SteamInventory.Internal.TransferItemQuantity( ref sresult, Id, (uint)quantity, toItem.Id ) ) + if ( !SteamInventory.Internal.TransferItemQuantity( ref sresult, add.Id, (uint)quantity, Id ) ) return null; return await InventoryResult.GetAsync( sresult );