FREnum

You are here:
< All Topics
Table of Contents

version >= 1.2.0
FlowReactor comes with a generic enum type which can be used for your custom nodes and Blackboard variables.

Example:
//
// Define your enum like this:
public enum MyEnum
{
A,
B,
C
}

// To make sure we can select the enum from the Blackboard we need to add the FRVariableAttribute.
// Create a custom class and inherit from FREnum and set your custom enum as type
[FRVariableAttribute(Name = "MyEnum")]
public class MyCustomEnum : FREnum<myenum>{}</myenum>

// Now we can create our new enum variable field like this.
// Important: You have to create a new instance of your enum by using "new"
public MyCustomEnum testEnum = new MyCustomEnum();

//
Privacy Settings
We use cookies to enhance your experience while using our website. If you are using our Services via a browser you can restrict, block or remove cookies through your web browser settings. We also use content and scripts from third parties that may use tracking technologies. You can selectively provide your consent below to allow such third party embeds. For complete information about the cookies we use, data we collect and how we process them, please check our Privacy Policy
Youtube
Consent to display content from Youtube
Vimeo
Consent to display content from Vimeo
Google Maps
Consent to display content from Google