Added Async to some async method names

This commit is contained in:
Garry Newman 2019-05-07 16:59:52 +01:00
parent 6ecc68e5d7
commit 89e93d6c2a
2 changed files with 4 additions and 4 deletions

View File

@ -51,7 +51,7 @@ public async Task GetAllItems()
{
await SteamInventory.WaitForDefinitions();
var result = await SteamInventory.GetItems();
var result = await SteamInventory.GetAllItemsAsync();
Assert.IsTrue( result.HasValue );

View File

@ -164,7 +164,7 @@ internal static InventoryDef[] GetDefinitions()
return defs.Select( x => new InventoryDef( x ) ).ToArray();
}
public static async Task<InventoryResult?> GetItems()
public static async Task<InventoryResult?> GetAllItemsAsync()
{
var sresult = default( SteamInventoryResult_t );
@ -180,7 +180,7 @@ internal static InventoryDef[] GetDefinitions()
/// or if you don't care about hacked clients granting arbitrary items.
/// This call can be disabled by a setting on Steamworks.
/// </summary>
public static async Task<InventoryResult?> GenerateItem( InventoryDef target, int amount )
public static async Task<InventoryResult?> GenerateItemAsync( InventoryDef target, int amount )
{
var sresult = default( SteamInventoryResult_t );
@ -198,7 +198,7 @@ internal static InventoryDef[] GetDefinitions()
/// You need to have set up the appropriate exchange rules in your item
/// definitions. This assumes all the items passed in aren't stacked.
/// </summary>
public static async Task<InventoryResult?> CraftItem( InventoryItem[] list, InventoryDef target )
public static async Task<InventoryResult?> CraftItemAsync( InventoryItem[] list, InventoryDef target )
{
var sresult = default( SteamInventoryResult_t );