Example #1
0
 /// <summary>This constructor is used when loading a WordSelector from the database</summary>
 public WordSelector(WeightedWord defaultWeightedWord, IEnumerable <WeightedWord> alternates)
 {
     Default    = defaultWeightedWord;
     Alternates = new List <WeightedWord>();
     Alternates.AddRange(alternates);
     Current = Default;
 }
Example #2
0
 public WordSelector(string defaultWord)
 {
     Default    = new WeightedWord(defaultWord);
     Alternates = new List <WeightedWord>();
     Current    = Default;
 }