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