Exemple #1
0
        public NameGenerator(SyllableProvider provider, NameMutator mutator, NameValidator validator)
        {
            this.UsingProvider(provider)
            .UsingMutator(mutator)
            .UsingValidator(validator)
            .LimitSyllableCount(2, 2)
            .LimitRetries(1000);

            this.Random = new Random();
        }
Exemple #2
0
 public NameMutator Join(NameMutator m)
 {
     this.Mutations.AddRange(m.Mutations);
     return(this);
 }
Exemple #3
0
 public NameGenerator(SyllableProvider provider, NameMutator mutator) : this(provider, mutator, null)
 {
 }
Exemple #4
0
 public NameGenerator UsingMutator(NameMutator mutator)
 {
     this.Mutator = mutator ?? throw new ArgumentNullException("The specified IMutator is null.");
     return(this);
 }