Class SwitchDensity
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
inputsIReadOnlyList<Density>switchStatesIReadOnlyList<int>
Methods
Process(Context)
public override double Process(Density.Context context)
Parameters
Returns
SetInputs(Density[])
Wire this node's inputs (no-op for leaf nodes).
public override void SetInputs(Density[] inputs)
Parameters
inputsDensity[]