Property Inventory
- Namespace
- GrindFest
- Assembly
- GrindFest.dll
Inventory
Gets all items in the hero's inventory as an enumerable collection.
public static IEnumerable<ItemBehaviour> Inventory { get; }
Property Value
Remarks
The Inventory property provides access to all items currently held in the hero's inventory.
foreach (var item in Hero.Inventory)
{
Hero.Say($"I have a {item.name}");
}
var healthPotions = Inventory.Where(item => item.ResourcePotion?.ResourceType == ResourceType.Health);