summaryrefslogtreecommitdiffstats
path: root/core/variant/variant.h
diff options
context:
space:
mode:
authorDanil Alexeev <dalexeev12@yandex.ru>2024-11-22 14:03:21 +0300
committerDanil Alexeev <dalexeev12@yandex.ru>2024-11-22 14:03:21 +0300
commit03b05cf9acd69b7eeced919012c215b22cd901ab (patch)
tree19860a7e651b7b7a22772b8d02f08fd04479ce86 /core/variant/variant.h
parentf952bfe9985ad8f507cc29b2c7601bbba18b8039 (diff)
downloadredot-engine-03b05cf9acd69b7eeced919012c215b22cd901ab.tar.gz
Core: Fix built-in enum constant bindings
Diffstat (limited to 'core/variant/variant.h')
-rw-r--r--core/variant/variant.h3
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);