public async Task InventoryTest(int delay = 100) { var gotDefinitions = await SteamInventory.WaitForDefinitions(); if (!gotDefinitions) { PrintError("Couldn't load (WaitForDefinitions returned false)"); return; } InventoryResult?result = await SteamInventory.GetAllItemsAsync(); if (result.HasValue) { foreach (InventoryItem item in result.Value.GetItems()) { Print($"{item.Id} {item.Def.Name}"); } } }