Skip to main content

PipelineFlattenDistribution

A class in Root.Township, the global namespace.

Object pipeline step that keeps picking from nested distributions until it reaches something that isn't a distribution.

Constructors​

MemberWhat it is
PipelineFlattenDistribution()Creates a PipelineFlattenDistribution with default values.

Properties​

MemberWhat it is
override string Description { get; }Editor description of the step.
override string Name { get; }Editor name, "Flatten Distribution".

Methods​

MemberWhat it is
override IEnumerable<Object> PossibleResults(Object input) (iterator)Lists every final result reachable through the nested distributions.
override Object Process(Object input, Func<double> random, SpawnData spawnData)Picks randomly through nested distributions and returns the first non-distribution result.