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

Method get_method_list

modules/gdscript/gdscript.cpp:2010–2018  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2008}
2009
2010void GDScriptInstance::get_method_list(List<MethodInfo> *p_list) const {
2011 const GDScript *sptr = script.ptr();
2012 while (sptr) {
2013 for (const KeyValue<StringName, GDScriptFunction *> &E : sptr->member_functions) {
2014 p_list->push_back(E.value->get_method_info());
2015 }
2016 sptr = sptr->_base;
2017 }
2018}
2019
2020bool GDScriptInstance::has_method(const StringName &p_method) const {
2021 const GDScript *sptr = script.ptr();

Callers 5

_list_call_argumentsFunction · 0.45
_find_call_argumentsFunction · 0.45

Calls 3

ptrMethod · 0.45
push_backMethod · 0.45
get_method_infoMethod · 0.45

Tested by

no test coverage detected