diff options
| author | Ignacio Etcheverry | 2017-10-09 23:49:17 +0200 |
|---|---|---|
| committer | Ignacio Etcheverry | 2017-10-09 23:49:17 +0200 |
| commit | 0c2e882210f8848475f7d9547af50a202f53a110 (patch) | |
| tree | 8f6e149bb22426cb2023daa6b6bdeefce976f39b /core/class_db.h | |
| parent | eb920406ae0ddae54aafb866b23c218a12c18bb4 (diff) | |
| download | godot-0c2e882210f8848475f7d9547af50a202f53a110.tar.gz godot-0c2e882210f8848475f7d9547af50a202f53a110.tar.zst godot-0c2e882210f8848475f7d9547af50a202f53a110.zip | |
Diffstat (limited to 'core/class_db.h')
| -rw-r--r-- | core/class_db.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/class_db.h b/core/class_db.h index f6b97748b..5910a2ce0 100644 --- a/core/class_db.h +++ b/core/class_db.h @@ -127,6 +127,7 @@ public: StringName inherits; StringName name; bool disabled; + bool exposed; Object *(*creation_func)(); ClassInfo(); ~ClassInfo(); @@ -168,6 +169,7 @@ public: ClassInfo *t = classes.getptr(T::get_class_static()); ERR_FAIL_COND(!t); t->creation_func = &creator<T>; + t->exposed = true; T::register_custom_data_to_otdb(); } @@ -176,6 +178,9 @@ public: GLOBAL_LOCK_FUNCTION; T::initialize_class(); + ClassInfo *t = classes.getptr(T::get_class_static()); + ERR_FAIL_COND(!t); + t->exposed = true; //nothing } @@ -193,6 +198,7 @@ public: ClassInfo *t = classes.getptr(T::get_class_static()); ERR_FAIL_COND(!t); t->creation_func = &_create_ptr_func<T>; + t->exposed = true; T::register_custom_data_to_otdb(); } @@ -347,6 +353,8 @@ public: static void set_class_enabled(StringName p_class, bool p_enable); static bool is_class_enabled(StringName p_class); + static bool is_class_exposed(StringName p_class); + static void add_resource_base_extension(const StringName &p_extension, const StringName &p_class); static void get_resource_base_extensions(List<String> *p_extensions); static void get_extensions_for_type(const StringName &p_class, List<String> *p_extensions); |
