Commit 840255a0 by Ignacio Etcheverry

Implement CSharpScript::inherits_script

parent 6a0473bc
......@@ -3542,10 +3542,15 @@ bool CSharpScript::inherits_script(const Ref<Script> &p_script) const {
return false;
}
#ifndef _MSC_VER
#warning TODO: Implement CSharpScript::inherits_script and other relevant changes after GH-38063.
#endif
return false;
if (script_class == nullptr || cs->script_class == nullptr) {
return false;
}
if (script_class == cs->script_class) {
return true;
}
return cs->script_class->is_assignable_from(script_class);
}
Ref<Script> CSharpScript::get_base_script() const {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment