| 2031 | } |
| 2032 | |
| 2033 | int GDScriptInstance::get_method_argument_count(const StringName &p_method, bool *r_is_valid) const { |
| 2034 | const GDScript *sptr = script.ptr(); |
| 2035 | while (sptr) { |
| 2036 | HashMap<StringName, GDScriptFunction *>::ConstIterator E = sptr->member_functions.find(p_method); |
| 2037 | if (E) { |
| 2038 | if (r_is_valid) { |
| 2039 | *r_is_valid = true; |
| 2040 | } |
| 2041 | return E->value->get_argument_count(); |
| 2042 | } |
| 2043 | sptr = sptr->_base; |
| 2044 | } |
| 2045 | |
| 2046 | if (r_is_valid) { |
| 2047 | *r_is_valid = false; |
| 2048 | } |
| 2049 | return 0; |
| 2050 | } |
| 2051 | |
| 2052 | void GDScriptInstance::_call_implicit_ready_recursively(GDScript *p_script) { |
| 2053 | // Call base class first. |
no test coverage detected