SteamInventory.AddPromoItemAsync

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

View File

@ -330,5 +330,20 @@ namespace Steamworks
return await InventoryResult.GetAsync( sresult );
}
/// <summary>
/// Trigger a promo item drop. You can call this at startup, it won't
/// give users multiple promo drops.
/// </summary>
public static async Task<InventoryResult?> AddPromoItemAsync( InventoryDefId id )
{
var sresult = default( SteamInventoryResult_t );
if ( !Internal.AddPromoItem( ref sresult, id ) )
return null;
return await InventoryResult.GetAsync( sresult );
}
}
}