diff options
| author | Thaddeus Crews <repiteo@outlook.com> | 2024-11-22 14:54:31 -0600 |
|---|---|---|
| committer | Thaddeus Crews <repiteo@outlook.com> | 2024-11-22 14:54:31 -0600 |
| commit | ea3154a0d4397fc68c2dc3874e1842dd8a6cffb2 (patch) | |
| tree | 9be206ce53d64ae728c5290f4c0eaf70ce417e33 /core/variant/variant.h | |
| parent | 37305e40bcec774ad8d0948589f46f9f02be8c23 (diff) | |
| parent | 03b05cf9acd69b7eeced919012c215b22cd901ab (diff) | |
| download | redot-engine-ea3154a0d4397fc68c2dc3874e1842dd8a6cffb2.tar.gz | |
Merge pull request #99424 from dalexeev/core-fix-builtin-enum-const-binds
Core: Fix built-in enum constant bindings
Diffstat (limited to 'core/variant/variant.h')
| -rw-r--r-- | core/variant/variant.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/variant/variant.h b/core/variant/variant.h index 9702c67a37..babd2cf084 100644 --- a/core/variant/variant.h +++ b/core/variant/variant.h @@ -792,7 +792,6 @@ public: String stringify(int recursion_count = 0) const; String to_json_string() const; - void static_assign(const Variant &p_variant); static void get_constants_for_type(Variant::Type p_type, List<StringName> *p_constants); static int get_constants_count_for_type(Variant::Type p_type); static bool has_constant(Variant::Type p_type, const StringName &p_value); @@ -801,6 +800,8 @@ public: static void get_enums_for_type(Variant::Type p_type, List<StringName> *p_enums); static void get_enumerations_for_enum(Variant::Type p_type, const StringName &p_enum_name, List<StringName> *p_enumerations); static int get_enum_value(Variant::Type p_type, const StringName &p_enum_name, const StringName &p_enumeration, bool *r_valid = nullptr); + static bool has_enum(Variant::Type p_type, const StringName &p_enum_name); + static StringName get_enum_for_enumeration(Variant::Type p_type, const StringName &p_enumeration); typedef String (*ObjectDeConstruct)(const Variant &p_object, void *ud); typedef void (*ObjectConstruct)(const String &p_text, void *ud, Variant &r_value); |
