SyllableSet

A special kind of syllable generator that constructs a finite set of syllables and only returns syllables from that set. Names constructed from a SyllableSet can give the appearance of cohesion as if they originated from a similar geographic region, culture, historical period, etc.

Implements: ISyllableGenerator, Archigen.IGenerator<System.String>, IRandomizable

Constructors

Constructor
Description

SyllableSet()

Initializes an empty set.

SyllableSet(System.String[] syllables)

Initializes a new instance of the SyllableSet class with the specified syllables.

SyllableSet(SyllableGenerator syllableGenerator, System.Int32 maxSyllableCount, System.Boolean forceUnique)

Methods

Method
Returns
Description

Add(System.String[] syllables)

Adds the specified syllables to the set.

Copy()

Creates a deep copy of this SyllableSet.

Next()

System.String

Generates a new syllable from the set.

Properties

Property
Type
Description

ForceUnique

System.Boolean

MaximumGeneratedSyllables

System.Int32

The maximum number of syllables for the Syllabore.SyllableSet.SyllableGenerator to generate. This value has no effect if there is no Syllabore.SyllableSet.SyllableGenerator.

PossibleSyllables

System.Collections.Generic.List <System.String>

Random

System.Random

The instance used to simulate randomness.

SyllableGenerator

Last updated