예제 #1
0
 public void CopyFrom(CollectionDeck otherDeck)
 {
     this.ID                 = otherDeck.ID;
     this.Type               = otherDeck.Type;
     this.m_name             = otherDeck.m_name;
     this.HeroCardID         = otherDeck.HeroCardID;
     this.HeroCardFlair      = otherDeck.HeroCardFlair;
     this.HeroOverridden     = otherDeck.HeroOverridden;
     this.CardBackID         = otherDeck.CardBackID;
     this.CardBackOverridden = otherDeck.CardBackOverridden;
     this.IsTourneyValid     = otherDeck.IsTourneyValid;
     this.SeasonId           = otherDeck.SeasonId;
     this.m_slots.Clear();
     for (int i = 0; i < otherDeck.GetSlotCount(); i++)
     {
         CollectionDeckSlot slotByIndex = otherDeck.GetSlotByIndex(i);
         CollectionDeckSlot item        = new CollectionDeckSlot();
         item.CopyFrom(slotByIndex);
         this.m_slots.Add(item);
     }
 }
    public static List <CollectionDeckViolation> GetDeckViolations(CollectionDeck deck)
    {
        List <CollectionDeckViolation> list = new List <CollectionDeckViolation>();

        for (int i = 0; i < deck.GetSlotCount(); i++)
        {