| 2308 | |
| 2309 | #ifdef TOOLS_ENABLED |
| 2310 | void GDScriptLanguage::_extension_loaded(const Ref<GDExtension> &p_extension) { |
| 2311 | List<StringName> class_list; |
| 2312 | ClassDB::get_extension_class_list(p_extension, &class_list); |
| 2313 | for (const StringName &n : class_list) { |
| 2314 | if (globals.has(n)) { |
| 2315 | continue; |
| 2316 | } |
| 2317 | Ref<GDScriptNativeClass> nc = memnew(GDScriptNativeClass(n)); |
| 2318 | _add_global(n, nc); |
| 2319 | } |
| 2320 | } |
| 2321 | |
| 2322 | void GDScriptLanguage::_extension_unloading(const Ref<GDExtension> &p_extension) { |
| 2323 | List<StringName> class_list; |
nothing calls this directly
no test coverage detected