Description

Base class for a Scriptable Object representing a serialized Enum type.

Example

public enum TurnPhase { PlayerTurn, EnemyTurn }

[CreateAssetMenu(fileName = "TurnPhaseEnum", menuName = "ReturnGraph/Types/TurnPhase")]
internal class TurnPhaseEnum: RgEnumType<TurnPhase>
{ 
		// Type => typeof(TurnPhase)
		// In this example, RgEnumType is extended using a custom enum named "TurnPhase". 
		// A "CreateAssetMenu" attribute is added to the class to create an instance of the asset in the project.
		// Only one instance of this Scriptable Object is needed.
}

Here, the TurnPhaseEnum is used with a ‣. At runtime, this node will take in a TurnPhase variable and select the next node based on the value.

Here, the TurnPhaseEnum is used with a ‣. At runtime, this node will take in a TurnPhase variable and select the next node based on the value.