Skip to main content

PipelineDistribution

A class in Root.Township, the global namespace.

Object pipeline step that picks one random entry from a distribution input.

Constructors​

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

Properties​

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

Methods​

MemberWhat it is
override IEnumerable<Object> PossibleResults(Object input) (iterator)Lists every entry in the input distribution.
override Object Process(Object input, Func<double> random, SpawnData spawnData)Returns a random entry from the input distribution using the spawn attributes, or null if the input isn't one.