1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-09 12:50:35 +00:00

GDScript: Allow export of enum variables

Also fix the enum type in variables to be integer.
This commit is contained in:
George Marques
2021-03-17 14:58:05 -03:00
parent 3e4ecd9669
commit 160c260495
3 changed files with 22 additions and 10 deletions

View File

@@ -132,7 +132,7 @@ public:
ClassNode *class_type = nullptr;
MethodInfo method_info; // For callable/signals.
HashMap<StringName, int> enum_values; // For enums.
Map<StringName, int> enum_values; // For enums.
_FORCE_INLINE_ bool is_set() const { return kind != UNRESOLVED; }
_FORCE_INLINE_ bool has_no_type() const { return type_source == UNDETECTED; }