public Deck(string name, ScraperType scraperTypeId, ICollection <DeckCard> cards) : base(name, scraperTypeId) { Cards = new DeckCards(cards); Id = GetId(); //if (Id == "aetherhub-user_mtgarenaoriginaldecks-arenastandard_2891280397") Debugger.Break(); }
public DeckAverageArchetype(string name, ScraperType scraperType, IEnumerable <DeckCard> cardsMain, IEnumerable <Card> cardsMainOther, IEnumerable <Card> cardsSideboard) : base(name, scraperType) { Cards = new DeckCards(cardsMain.Select(i => new DeckCard(i, DeckCardZoneEnum.Deck)) .Union(cardsSideboard.Select(i => new DeckCard(new CardWithAmount(i, 1), DeckCardZoneEnum.Sideboard))) .ToArray()); CardsMainOther = cardsMainOther.Select(i => new DeckAverageArchetypeOtherMainCard(i, 0)).ToArray(); }
protected DeckBase(string name, ScraperType scraperType) { Name = name; ScraperType = scraperType; }