public static bool Is(this GwentCard card, Group?group = null, CardType?type = null, Func <GwentCard, bool> filter = null, Faction?faction = null) { return((faction == null ? true : card.Faction == faction) && (group == null ? true : card.Group == group) && (filter == null ? true : filter(card)) && (type == null ? true : card.CardType == type)); }
public static bool IsAnyGroup(this GwentCard card, params Group[] groups) { return(groups.Any(x => card.Group == x)); }
public static bool HasAnyCategorie(this GwentCard card, params Categorie[] categories) { return(card.Categories.Intersect(categories).Any()); }