diff options
author | Pierre-Thomas Meisels <meisels27@yahoo.fr> | 2022-04-18 20:17:03 +0200 |
---|---|---|
committer | Pierre-Thomas Meisels <meisels27@yahoo.fr> | 2022-06-23 19:19:22 +0200 |
commit | c28936ba6d109b9880d34e9b1f41d409428d109b (patch) | |
tree | 867c8b07521918663cd43249a1e378e9dd03ad4e /core/variant/variant.h | |
parent | 462127eff08c8ca60a1e4a476153bdb60d63b890 (diff) | |
download | redot-engine-c28936ba6d109b9880d34e9b1f41d409428d109b.tar.gz |
Add core types enums description to extension api json
Diffstat (limited to 'core/variant/variant.h')
-rw-r--r-- | core/variant/variant.h | 4 |
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); |