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