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

            FillSequence(sequence);
            LoadSequence(sequence);
        }
示例#2
0
 public void LoadSequence(DeckBuilderSequence <TCard> sequence)
 {
     if (!sequence.Valid)
     {
         throw new IllegalDeckBuilderSequenceException();
     }
     Clear();
     AddCards(sequence.Cards);
 }
示例#3
0
 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);
 }
示例#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);
 }
示例#5
0
 protected virtual void FillSequence(DeckBuilderSequence <TCard> sequence)
 {
 }
示例#6
0
 public CustomDeckBuilder(DeckBuilderSequence <TCard> sequence)
 {
     LoadSequence(sequence);
 }