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

Method inherits_script

modules/gdscript/gdscript.cpp:1195–1211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1193}
1194
1195bool GDScript::inherits_script(const Ref<Script> &p_script) const {
1196 Ref<GDScript> gd = p_script;
1197 if (gd.is_null()) {
1198 return false;
1199 }
1200
1201 const GDScript *s = this;
1202
1203 while (s) {
1204 if (s == p_script.ptr()) {
1205 return true;
1206 }
1207 s = s->_base;
1208 }
1209
1210 return false;
1211}
1212
1213GDScript *GDScript::find_class(const String &p_qualified_name) {
1214 String first = p_qualified_name.get_slice("::", 0);

Callers 4

can_referenceMethod · 0.45
can_referenceMethod · 0.45
_script_droppedMethod · 0.45

Calls 2

is_nullMethod · 0.45
ptrMethod · 0.45

Tested by

no test coverage detected