Example #1
0
        protected override void LoadBuilder()
        {
            var sequence = new DeckBuilderSequence <TCard>();

            FillSequence(sequence);
            LoadSequence(sequence);
        }
Example #2
0
 public void LoadSequence(DeckBuilderSequence <TCard> sequence)
 {
     if (!sequence.Valid)
     {
         throw new IllegalDeckBuilderSequenceException();
     }
     Clear();
     AddCards(sequence.Cards);
 }
 public static DeckBuilderSequence <TCard> AddColors <TCard>(this DeckBuilderSequence <TCard> sequence, int num) where TCard : ICard, ICopySource <TCard>, new()
 {
     sequence.AddGroup(new ColorGroup <TCard>(num));
     return(sequence);
 }
Example #4
0
 public static DeckBuilderSequence <TCard> AddNumbers <TCard>(this DeckBuilderSequence <TCard> sequence, int min, int max) where TCard : ICard, ICopySource <TCard>, new()
 {
     sequence.AddGroup(new NumberGroup <TCard>(min, max));
     return(sequence);
 }
Example #5
0
 protected virtual void FillSequence(DeckBuilderSequence <TCard> sequence)
 {
 }
Example #6
0
 public CustomDeckBuilder(DeckBuilderSequence <TCard> sequence)
 {
     LoadSequence(sequence);
 }