Table of Contents

Class SwitchDensity

Namespace
Shard.WorldGen.Nodes
Assembly
Shard.WorldGen.dll

Routes to the input whose registered switch state matches the context's switch state (0 if none).

public sealed class SwitchDensity : Density
Inheritance
SwitchDensity
Inherited Members

Constructors

SwitchDensity(IReadOnlyList<Density?>, IReadOnlyList<int>)

public SwitchDensity(IReadOnlyList<Density?> inputs, IReadOnlyList<int> switchStates)

Parameters

inputs IReadOnlyList<Density>
switchStates IReadOnlyList<int>

Methods

Process(Context)

public override double Process(Density.Context context)

Parameters

context Density.Context

Returns

double

SetInputs(Density[])

Wire this node's inputs (no-op for leaf nodes).

public override void SetInputs(Density[] inputs)

Parameters

inputs Density[]