MCPcopy Create free account
hub / github.com/GDRETools/gdsdecomp / get_script_method_argument_count

Method get_script_method_argument_count

compat/fake_gdscript.cpp:213–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211}
212
213int FakeGDScript::get_script_method_argument_count(const StringName &p_method, bool *r_is_valid) const {
214 if (_methods.has(p_method)) {
215 if (r_is_valid) {
216 *r_is_valid = true;
217 }
218 return _methods[p_method].arguments.size();
219 }
220 if (r_is_valid) {
221 *r_is_valid = false;
222 }
223 return -1;
224}
225
226MethodInfo FakeGDScript::get_method_info(const StringName &p_method) const {
227 if (_methods.has(p_method)) {

Callers 1

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected