Exemple #1
0
 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));
 }
Exemple #2
0
 public static bool IsAnyGroup(this GwentCard card, params Group[] groups)
 {
     return(groups.Any(x => card.Group == x));
 }
Exemple #3
0
 public static bool HasAnyCategorie(this GwentCard card, params Categorie[] categories)
 {
     return(card.Categories.Intersect(categories).Any());
 }