SyllableGenerator
Last updated
Last updated
Generates syllables that can be sequenced into names.
Implements: , Archigen.IGenerator<System.String>,
SyllableGenerator()
Instantiates a new with no symbol generators.
Add( position, System.String symbols)
Adds symbols to the specified position. Each character in the string is considered a separate symbol.
Add( position, generator)
Adds a . The generator's symbols will only be used for the specified position.
Copy()
Creates a deep copy of this excluding internal instances of System.Random.
Next()
System.String
Generates a new syllable and returns it as a string.
SetChance( position, System.Double chance)
Sets the probability of generating a symbol for the specified position. The default value is 1.0 (100% probability) unless changed by calling this method.
PositionChance
System.Collections.Generic.Dictionary <,System.Double>
The probability of generating a symbol for a given position. The default value is 1.0 (100%) for each position as long as there are symbols available.
Random
System.Random
The instance of System.Random used to simulate randomness.
SymbolGenerators
System.Collections.Generic.Dictionary <,System.Collections.Generic.List <>>
The symbol generators used to create new syllables.