godot/modules/gdscript/tests/scripts/parser/features/enum.gd

15 lines
144 B
GDScript3
Raw Normal View History

enum Size {
S = -10,
M,
L = 0,
XL = 10,
XXL,
}
func test():
print(Size.S)
print(Size.M)
print(Size.L)
print(Size.XL)
print(Size.XXL)