Skip to main content

PipelineElement

An abstract class in Root.Township, the global namespace.

Base class for one step in an object processing pipeline that turns an input object into an output, using a seeded random function and spawn data.

Constructors​

MemberWhat it is
protected PipelineElement()Creates a PipelineElement with default values.

Properties​

MemberWhat it is
abstract string Description { get; }Text describing what the step does.
abstract string Name { get; }The step's display name.

Methods​

MemberWhat it is
abstract IEnumerable<Object> PossibleResults(Object input)Lists every object this step could produce from an input.
abstract Object Process(Object input, Func<double> random, SpawnData spawnData)Runs the step on an input object and returns the result.

Used in​

Members of other types that take, return or hold a PipelineElement: