mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-27 07:05:50 +03:00
SteamInventory.TriggerItemDropAsync
This commit is contained in:
parent
39c1e8da1e
commit
8ea4231778
@ -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 );
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user