Beispiel #1
0
 public static bool IsBasicLand(this DeckItem item) =>
 _basicLandNames.Contains(Mapper.GetKey(item));
Beispiel #2
0
 public static bool IsAnte(this DeckItem item) =>
 _anteCardNames.Contains(Mapper.GetKey(item));
Beispiel #3
0
 static XElement ToElement(this DeckItem item) =>
 new XElement("card",
              new XAttribute("number", item.Count),
              new XAttribute("name", item.Name)
              );
Beispiel #4
0
 public static bool IsAstral(this DeckItem item) =>
 _astralCardNames.Contains(Mapper.GetKey(item));
Beispiel #5
0
 public static string GetKey(this DeckItem item) => item.Name.ToLowerInvariant();