SteamInventory.TriggerItemDropAsync

This commit is contained in:
Garry Newman 2019-05-08 14:52:39 +01:00
parent 39c1e8da1e
commit 8ea4231778

View File

@ -317,5 +317,18 @@ public static bool GetAllItems()
return await InventoryResult.GetAsync( sresult );
}
/// <summary>
/// Trigger an item drop for this user. This is for timed drops.
/// </summary>
public static async Task<InventoryResult?> TriggerItemDropAsync( InventoryDefId id )
{
var sresult = default( SteamInventoryResult_t );
if ( !Internal.TriggerItemDrop( ref sresult, id ) )
return null;
return await InventoryResult.GetAsync( sresult );
}
}
}