SteamInventory.GrantPromoItemsAsync

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

View File

@ -303,5 +303,19 @@ public static bool GetAllItems()
return sresult;
}
/// <summary>
/// Grant all promotional items the user is eligible for
/// </summary>
public static async Task<InventoryResult?> GrantPromoItemsAsync()
{
var sresult = default( SteamInventoryResult_t );
if ( !Internal.GrantPromoItems( ref sresult ) )
return null;
return await InventoryResult.GetAsync( sresult );
}
}
}