I am aware of the many different ways to turn enums into blocks, but all those ways seem to require some kind of helper function. What I want to know is whether it is possible to make an enum block with just the enum. For example:
// Magicaly turns into a block without anything else needed, kinda like a class.
//% blockNamespace=tweenExtension
//% group="Create"
enum TweenState {
//% block="Idle"
Idle,
//% block="playing"
Playing,
//% block="paused"
Paused,
//% block="canceled"
Canceled,
//% block="compleate"
Complete
}
Is something like this possible?