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

Method get_script_method_argument_count

modules/gdscript/gdscript.cpp:375–388  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

373}
374
375int GDScript::get_script_method_argument_count(const StringName &p_method, bool *r_is_valid) const {
376 HashMap<StringName, GDScriptFunction *>::ConstIterator E = member_functions.find(p_method);
377 if (!E) {
378 if (r_is_valid) {
379 *r_is_valid = false;
380 }
381 return 0;
382 }
383
384 if (r_is_valid) {
385 *r_is_valid = true;
386 }
387 return E->value->get_argument_count();
388}
389
390MethodInfo GDScript::get_method_info(const StringName &p_method) const {
391 HashMap<StringName, GDScriptFunction *>::ConstIterator E = member_functions.find(p_method);

Callers

nothing calls this directly

Calls 2

findMethod · 0.45
get_argument_countMethod · 0.45

Tested by

no test coverage detected