ProtoFlux:Number To Enum: Difference between revisions

From Resonite Wiki
create Number to Enum page
 
fixed formatting, added complex types page link
 
Line 14: Line 14:
See [[:Category:Enums|Enums]] for a more in depth explaination on what Enums are.
See [[:Category:Enums|Enums]] for a more in depth explaination on what Enums are.
This node can be useful for turning numbers back into Enums, in cases like reading [[Cloud Variables]] that can't store Enums normally.
This node can be useful for turning numbers back into Enums, in cases like reading [[Cloud Variables]] that can't store Enums normally.
For what to input for variants other than <code>IntToEnum</code>, please see [[Complex Types in Components]]


This node has the following variants, with their respective outputs:
This node has the following variants, with their respective outputs:
Line 41: Line 43:


The whole number to convert to a Enum of the type chosen for * ([[:Category:Enums|Enum]] Generic).
The whole number to convert to a Enum of the type chosen for * ([[:Category:Enums|Enum]] Generic).


== Outputs ==
== Outputs ==
Line 47: Line 48:
=== * ([[:Category:Enums|Enum]] Generic)  ===
=== * ([[:Category:Enums|Enum]] Generic)  ===
The Enum with the chosen enum type that has a number matching Value (Variant) according to [[:Category:Enums|Enums Page]].
The Enum with the chosen enum type that has a number matching Value (Variant) according to [[:Category:Enums|Enums Page]].


[[Category:ProtoFlux:Enums]]
[[Category:ProtoFlux:Enums]]

Latest revision as of 21:06, 3 February 2024

NumberToEnum
Value
*
Enums

See Enums for a more in depth explaination on what Enums are. This node can be useful for turning numbers back into Enums, in cases like reading Cloud Variables that can't store Enums normally.

For what to input for variants other than IntToEnum, please see Complex Types in Components

This node has the following variants, with their respective outputs:

Variant Node Type Output
Number To Enum (Byte) ByteToEnum provided Byte as any chosen (Enum)
Number To Enum (Int) IntToEnum provided Int as any chosen (Enum)
Number To Enum (Long) LongToEnum provided Long as any chosen (Enum)
Number To Enum (Sbyte) SbyteToEnum provided Sbyte as any chosen (Enum)
Number To Enum (Short) ShortToEnum provided Short as any chosen (Enum)
Number To Enum (Uint) UintToEnum provided Uint as any chosen (Enum)
Number To Enum (Ulong) UlongToEnum provided Ulong as any chosen (Enum)
Number To Enum (Ushort) UshortToEnum provided Ushort as any chosen (Enum)

Inputs

Value (Variant)

The whole number to convert to a Enum of the type chosen for * (Enum Generic).

Outputs

* (Enum Generic)

The Enum with the chosen enum type that has a number matching Value (Variant) according to Enums Page.