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.cpp | |
| parent | eb920406ae0ddae54aafb866b23c218a12c18bb4 (diff) | |
| download | godot-0c2e882210f8848475f7d9547af50a202f53a110.tar.gz godot-0c2e882210f8848475f7d9547af50a202f53a110.tar.zst godot-0c2e882210f8848475f7d9547af50a202f53a110.zip | |
Diffstat (limited to 'core/class_db.cpp')
| -rw-r--r-- | core/class_db.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/core/class_db.cpp b/core/class_db.cpp index f5ddd9c76..12310f615 100644 --- a/core/class_db.cpp +++ b/core/class_db.cpp @@ -205,6 +205,7 @@ ClassDB::ClassInfo::ClassInfo() { creation_func = NULL; inherits_ptr = NULL; disabled = false; + exposed = false; } ClassDB::ClassInfo::~ClassInfo() { } @@ -1284,6 +1285,15 @@ bool ClassDB::is_class_enabled(StringName p_class) { return !ti->disabled; } +bool ClassDB::is_class_exposed(StringName p_class) { + + OBJTYPE_RLOCK; + + ClassInfo *ti = classes.getptr(p_class); + ERR_FAIL_COND_V(!ti, false); + return ti->exposed; +} + StringName ClassDB::get_category(const StringName &p_node) { ERR_FAIL_COND_V(!classes.has(p_node), StringName()); |
