public RavenNest.Models.Item GetEquipmentOfType(ItemCategory itemCategory, RavenNest.Models.ItemType type) { if (itemCategory == ItemCategory.Weapon) { return(GetEquipmentOfCategory(ItemCategory.Weapon)); } return(equipped.FirstOrDefault(x => x.Category == itemCategory && x.Type == type)); }
public IReadOnlyList <GameInventoryItem> GetInventoryItemsOfType(ItemCategory itemCategory, RavenNest.Models.ItemType type) { return(backpack.Where(x => x.Item.Category == itemCategory && x.Item.Type == type).ToList()); }