summaryrefslogtreecommitdiffstats
path: root/core/variant/variant.h
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2022-06-23 22:52:03 +0200
committerGitHub <noreply@github.com>2022-06-23 22:52:03 +0200
commit2a0393e2226d12f077b90e018a1fe4ca171a5562 (patch)
treeda317921fba96ddeccd35b46fdb4cd23ccfe84bb /core/variant/variant.h
parent7e075fc482fc2f0cb5288ff5d5f66df0b3e3e210 (diff)
parentc28936ba6d109b9880d34e9b1f41d409428d109b (diff)
downloadredot-engine-2a0393e2226d12f077b90e018a1fe4ca171a5562.tar.gz
Merge pull request #60356 from piiertho/feature/add-core-types-enum-description-to-extention-api-json
Add core types enums description to extension api json
Diffstat (limited to 'core/variant/variant.h')
-rw-r--r--core/variant/variant.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/variant/variant.h b/core/variant/variant.h
index 726ba120b5..992d9cad40 100644
--- a/core/variant/variant.h
+++ b/core/variant/variant.h
@@ -716,6 +716,10 @@ public:
static bool has_constant(Variant::Type p_type, const StringName &p_value);
static Variant get_constant_value(Variant::Type p_type, const StringName &p_value, bool *r_valid = nullptr);
+ static void get_enums_for_type(Variant::Type p_type, List<StringName> *p_enums);
+ static void get_enumerations_for_enum(Variant::Type p_type, StringName p_enum_name, List<StringName> *p_enumerations);
+ static int get_enum_value(Variant::Type p_type, StringName p_enum_name, StringName p_enumeration, bool *r_valid = nullptr);
+
typedef String (*ObjectDeConstruct)(const Variant &p_object, void *ud);
typedef void (*ObjectConstruct)(const String &p_text, void *ud, Variant &r_value);