xxxxxxxxxx
# In the current GDScript version you need to use int as type,
# but you can still pass it as the enum, like so:
enum Myenum { A, B, C }
func myfunc(value:int):
print(value)
func _ready():
myfunc(Myenum.A) # will actually send `0`
myfunc(Myenum.B) # will actually send `1`