Improve handling of custom types

This commit is contained in:
kobewi
2022-02-28 01:57:34 +01:00
parent b5c053321c
commit a3309215c2
7 changed files with 52 additions and 16 deletions

View File

@@ -184,6 +184,9 @@ public:
Variant instance_custom_type(const String &p_type, const String &p_inherits);
void remove_custom_type(const String &p_type);
const HashMap<String, Vector<CustomType>> &get_custom_types() const { return custom_types; }
const CustomType *get_custom_type_by_name(const String &p_name) const;
const CustomType *get_custom_type_by_path(const String &p_path) const;
bool is_type_recognized(const String &p_type) const;
void instantiate_object_properties(Object *p_object);