Class SelectOnEnum
Selects a value from a set by switching over an enum.
Inherited Members
Namespace: Ludiq.Bolt
Syntax
[UnitCategory("Flow", 13)]
[UnitDisplay(null, "Select", "On Enum")]
[TypeIcon(typeof(ISelectUnit))]
public sealed class SelectOnEnum : Unit, ISerializationCallbackReceiver, ISelectUnit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphChild, IObservableDisposable, IDisposable, INotifiedCollectionChild<IGraph>, ICollectionChild<IGraph>, IPrewarmable, IIdentifiable, INotifyPropertyChanged
Properties
branches
Declaration
[DoNotSerialize]
public Dictionary<object, ValueInput> branches { get; }
Property Value
Type | Description |
---|---|
Dictionary<Object, ValueInput> |
canDefine
Declaration
public override bool canDefine { get; }
Property Value
Type | Description |
---|---|
Boolean |
Overrides
Ludiq.Bolt.Unit<Ludiq.Bolt.FlowGraph>.canDefine
Implements
deserializationDependencies
Declaration
[DoNotSerialize]
public override IEnumerable<ISerializationDependency> deserializationDependencies { get; }
Property Value
Type | Description |
---|---|
IEnumerable<ISerializationDependency> |
Overrides
Ludiq.Bolt.GraphElement<Ludiq.Bolt.FlowGraph>.deserializationDependencies
Implements
enumType
Declaration
[DoNotSerialize]
[Inspectable]
[UnitSettingDisplay]
[TypeFilter(new Type[]{}, Enums = true, Classes = false, Interfaces = false, Structs = false, Primitives = false)]
[BoltTypeFilter(typeof(BoltEnum))]
public HybridType enumType { get; set; }
Property Value
Type | Description |
---|---|
HybridType |
selection
The selected value.
Declaration
[DoNotSerialize]
[UnitPortDisplay(primary = true, showLabel = false)]
public ValueOutput selection { get; }
Property Value
Type | Description |
---|---|
ValueOutput |
Implements
selector
The value on which to select.
Declaration
[DoNotSerialize]
[UnitPortDisplay(showLabel = false)]
public ValueInput selector { get; }
Property Value
Type | Description |
---|---|
ValueInput |
Methods
Branch(Flow)
Declaration
public object Branch(Flow flow)
Parameters
Type | Name | Description |
---|---|---|
Flow | flow |
Returns
Type | Description |
---|---|
Object |
Definition()
Declaration
protected override void Definition()
Overrides
Ludiq.Bolt.Unit<Ludiq.Bolt.FlowGraph>.Definition()