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

Method get_method_argument_count

modules/gdscript/gdscript.cpp:2033–2050  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2031}
2032
2033int 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
2052void GDScriptInstance::_call_implicit_ready_recursively(GDScript *p_script) {
2053 // Call base class first.

Callers 1

get_argument_countMethod · 0.45

Calls 3

ptrMethod · 0.45
findMethod · 0.45
get_argument_countMethod · 0.45

Tested by

no test coverage detected