Exemple #1
0
    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));
    }
Exemple #2
0
 public IReadOnlyList <GameInventoryItem> GetInventoryItemsOfType(ItemCategory itemCategory, RavenNest.Models.ItemType type)
 {
     return(backpack.Where(x => x.Item.Category == itemCategory && x.Item.Type == type).ToList());
 }