mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-28 07:35:55 +03:00
Changed TransferItemQuantity to Add
This commit is contained in:
parent
85c55a5bb1
commit
f65cfecc64
@ -73,12 +73,12 @@ public struct InventoryItem
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Transfer x quantity from this item to the target item
|
/// Add x units of the target item to this item
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public async Task<InventoryResult?> TransferItemQuantity( InventoryItem toItem, int quantity )
|
public async Task<InventoryResult?> Add( InventoryItem add, int quantity = 1 )
|
||||||
{
|
{
|
||||||
var sresult = default( SteamInventoryResult_t );
|
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 null;
|
||||||
|
|
||||||
return await InventoryResult.GetAsync( sresult );
|
return await InventoryResult.GetAsync( sresult );
|
||||||
|
Loading…
Reference in New Issue
Block a user