TransformSet
A TransformSet takes a source name, applies one or more Transform, then creates a new name. By default, all Transform of the same set are applied to the source name and in the order they were added. To randomize what transforms are applied, call Syllabore.TransformSet.RandomlySelect when configuring a TransformSet.
Implements: IPotentialAction, INameTransformer, IRandomizable
Constructors
TransformSet()
Instantiates a new TransformSet. By default, all future Transforms that are added to this set will be used in the order they were added unless there is a call to Syllabore.TransformSet.RandomlySelect.
Methods
Apply(Name sourceName)
Join(TransformSet set)
Combines this TransformSet with the specified TransformSet. A new TransformSet that is the combination of the two is returned.
RandomlySelect(System.Int32 limit)
Sets this TransformSet to randomly select transforms to apply to the source name. The parameter specifies the maximum number of unique transforms that will be applied.
Properties
Chance
System.Double
The probability this transform set will make changes to a name. This value must be between 0 and 1 inclusive. Note that each Transform in the set can also have its own chance value which is rolled separately.
Random
System.Random
Used to simulate randomness when Syllabore.TransformSet.UseRandomSelection is true.
RandomSelectionCount
System.Int32
When Syllabore.TransformSet.UseRandomSelection is true, this property is used to determine how many random Transform are selected and applied.
Last updated