ProtoFlux:Shift Enum: Difference between revisions

From Resonite Wiki
Create Shift Enum ProtoFlux Page
 
m typo in node visual
 
Line 5: Line 5:
[
[
{"Name": "Value", "Type": "Dummy"},
{"Name": "Value", "Type": "Dummy"},
{"Name": "Delta", "Type": "Int"}
{"Name": "Delta", "Type": "int"}
]
]
|Outputs=
|Outputs=

Latest revision as of 21:31, 3 February 2024

Shift Enum < T >
Value
*
Delta
Enums


See Enums for a more in depth explaination on what Enums are.

Shift Enum is a ProtoFlux node that when provided an Enum will give an enum with the provided Delta (Int) offset from said enum numerically according to the Enums page. "*" and "Value" will never be different enum types.

Inputs

Value (Enum Generic)

The Enum to start at.

Delta (Int)

The offset from Value (Enum Generic) to use for the returned * (Enum Generic).

Outputs

* (Enum Generic)

The Enum that is Delta (Int) offset from Value (Enum Generic) numerically. This node will wrap around forwards and backwards for the output.