ProtoFlux:Enum To Number: Difference between revisions

From Resonite Wiki
create enum to number page
 
Sudo-Generic -> Pseudo-generic
 
(One intermediate revision by one other user not shown)
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 keeping enums as numbers, in cases like [[Cloud Variables]] that can't store Enums.
This node can be useful for keeping enums as numbers, in cases like [[Cloud Variables]] that can't store Enums.
For what to input for variants other than <code>EnumToInt</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 40: Line 42:
=== Value ([[:Category:Enums|Enum]] Generic) ===  
=== Value ([[:Category:Enums|Enum]] Generic) ===  


The Enum to convert to a whole number with * (Sudo-Generic (Whole Number))'s type according to [[:Category:Enums|Enums Page]];
The Enum to convert to a whole number with * (Pseudo-generic (Whole Number))'s type according to [[:Category:Enums|Enums Page]];


== Outputs ==
== Outputs ==

Latest revision as of 18:49, 6 June 2024

EnumToNumber
Value
*
Enums

See Enums for a more in depth explaination on what Enums are. This node can be useful for keeping enums as numbers, in cases like Cloud Variables that can't store Enums.

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

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

Variant Node Type Output
Enum To Number (Byte) EnumToByte provided Value (Enum) as a Byte
Enum To Number (Int) EnumToInt provided Value (Enum) as an Int
Enum To Number (Long) EnumToLong provided Value (Enum) as a Long
Enum To Number (Sbyte) EnumToSbyte provided Value (Enum) as a Sbyte
Enum To Number (Short) EnumToShort provided Value (Enum) as a Short
Enum To Number (Uint) EnumToUint provided Value (Enum) as an Uint
Enum To Number (Ulong) EnumToUlong provided Value (Enum) as an Ulong
Enum To Number (Ushort) EnumToUshort provided Value (Enum) as a Ushort

Inputs

Value (Enum Generic)

The Enum to convert to a whole number with * (Pseudo-generic (Whole Number))'s type according to Enums Page;

Outputs

* (Variant)

The Value (Enum Generic)'s Whole Number equivalent.