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