예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:RedBlueGames.MulliganRenamer.CountByLetterOperation"/> class.
 /// This is a clone constructor, copying the values from one to another.
 /// </summary>
 /// <param name="operationToCopy">Operation to copy.</param>
 public CountByLetterOperation(CountByLetterOperation operationToCopy)
 {
     this.DoNotCarryOver = operationToCopy.DoNotCarryOver;
     this.StartingCount  = operationToCopy.StartingCount;
     this.Increment      = operationToCopy.Increment;
     this.preset         = operationToCopy.preset;
     this.countSequence  = new string[operationToCopy.CountSequence.Length];
     operationToCopy.countSequence.CopyTo(this.countSequence, 0);
     this.Prepend = operationToCopy.Prepend;
 }
예제 #2
0
 /// <summary>
 /// Sets a preset to use when counting.
 /// </summary>
 /// <param name="countPreset">Preset of strings to use when counting.</param>
 public void SetCountSequencePreset(StringPreset countPreset)
 {
     this.preset = countPreset;
 }
예제 #3
0
 /// <summary>
 /// Sets a custom string sequence to count from.
 /// </summary>
 /// <param name="sequence">Sequence of strings to count from</param>
 public void SetCountSequence(string[] sequence)
 {
     this.preset        = StringPreset.Custom;
     this.countSequence = sequence;
 }