Class SwitchOnEnum
Branches flow by switching over an enum.
Inherited Members
Namespace: Ludiq.Bolt
Syntax
[UnitCategory("Flow", 3)]
[UnitDisplay(null, "Switch", "On Enum")]
[TypeIcon(typeof(IBranchUnit))]
public sealed class SwitchOnEnum : Unit, ISerializationCallbackReceiver, IBranchUnit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphChild, IObservableDisposable, IDisposable, INotifiedCollectionChild<IGraph>, ICollectionChild<IGraph>, IPrewarmable, IIdentifiable, INotifyPropertyChanged
Properties
branches
Declaration
[DoNotSerialize]
public Dictionary<object, ControlOutput> branches { get; }
Property Value
Type | Description |
---|---|
Dictionary<Object, ControlOutput> |
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
enter
The entry point for the switch.
Declaration
[DoNotSerialize]
[UnitPortDisplay(showLabel = false, showDocumentation = false)]
public ControlInput enter { get; }
Property Value
Type | Description |
---|---|
ControlInput |
Implements
enum
The enum value on which to switch.
Declaration
[DoNotSerialize]
[UnitPortDisplay(showLabel = false)]
public ValueInput enum { get; }
Property Value
Type | Description |
---|---|
ValueInput |
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 |
Methods
Definition()
Declaration
protected override void Definition()
Overrides
Ludiq.Bolt.Unit<Ludiq.Bolt.FlowGraph>.Definition()
Enter(Flow)
Declaration
public ControlOutput Enter(Flow flow)
Parameters
Type | Name | Description |
---|---|---|
Flow | flow |
Returns
Type | Description |
---|---|
ControlOutput |