MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / _extension_loaded

Method _extension_loaded

modules/gdscript/gdscript.cpp:2310–2320  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2308
2309#ifdef TOOLS_ENABLED
2310void 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
2322void GDScriptLanguage::_extension_unloading(const Ref<GDExtension> &p_extension) {
2323 List<StringName> class_list;

Callers

nothing calls this directly

Calls 2

GDScriptNativeClassClass · 0.85
hasMethod · 0.45

Tested by

no test coverage detected