I wonder what’s the best practice to binding c++ enum?
As I’m binding all UE4 enum to SkookumScript Enum class, I found it’s a little ugly to write sth. like:
KismetMathLibrary.ease(0, 10, 0.5, Enum!int(0), 0, 10)
Not to mention the hardcoded enum value also make it error prone as the enum order could be easily changed in c++ side.
One solution is generating Enum subclass, and add enum value as class member of generated Enum subclass, like:
SomeEnumType.@SomeEnumVal, but I wonder if that’s the recommend way to go or there’ll be language feature support planned regarding enum in SkookumScript?