I'm asking because code editor highlights world "enum" and I failed to find any info abut this in documentation (both on website and build-in)
Edit: I see that this is possible to use exported value like this but I wonder is there any GDScript only solution.
# Editor will enumerate as 0, 1 and 2
export(int, "Warrior", "Magician", "Thief") var character_class