コード例 #1
0
ファイル: CardInfo.cs プロジェクト: GamesFaix/mtg-decks
 public static bool IsBasicLand(this DeckItem item) =>
 _basicLandNames.Contains(Mapper.GetKey(item));
コード例 #2
0
ファイル: CardInfo.cs プロジェクト: GamesFaix/mtg-decks
 public static bool IsAnte(this DeckItem item) =>
 _anteCardNames.Contains(Mapper.GetKey(item));
コード例 #3
0
ファイル: Writer.cs プロジェクト: GamesFaix/mtg-decks
 static XElement ToElement(this DeckItem item) =>
 new XElement("card",
              new XAttribute("number", item.Count),
              new XAttribute("name", item.Name)
              );
コード例 #4
0
ファイル: CardInfo.cs プロジェクト: GamesFaix/mtg-decks
 public static bool IsAstral(this DeckItem item) =>
 _astralCardNames.Contains(Mapper.GetKey(item));
コード例 #5
0
ファイル: Mapper.cs プロジェクト: GamesFaix/mtg-decks
 public static string GetKey(this DeckItem item) => item.Name.ToLowerInvariant();