Debian Codegraph @

modules/gdscript/tests/scripts/analyzer/features/export_enum_as_dictionary.gd

raw
1 class_name TestExportEnumAsDictionary
2
3 enum MyEnum {A, B, C}
4
5 @export var test_1 = MyEnum
6 @export var test_2 = MyEnum.A
7 @export var test_3 := MyEnum
8 @export var test_4 := MyEnum.A
9 @export var test_5: MyEnum
10
11 func test():
12 for property in get_property_list():
13 if str(property.name).begins_with("test_"):
14 Utils.print_property_extended_info(property)