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

Method get_public_functions

modules/gdscript/gdscript_editor.cpp:474–499  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

472}
473
474void GDScriptLanguage::get_public_functions(List<MethodInfo> *p_functions) const {
475 List<StringName> functions;
476 GDScriptUtilityFunctions::get_function_list(&functions);
477
478 for (const StringName &E : functions) {
479 p_functions->push_back(GDScriptUtilityFunctions::get_function_info(E));
480 }
481
482 // Not really "functions", but show in documentation.
483 {
484 MethodInfo mi;
485 mi.name = "preload";
486 mi.arguments.push_back(PropertyInfo(Variant::STRING, "path"));
487 mi.return_val = PropertyInfo(Variant::OBJECT, "", PROPERTY_HINT_RESOURCE_TYPE, "Resource");
488 p_functions->push_back(mi);
489 }
490 {
491 MethodInfo mi;
492 mi.name = "assert";
493 mi.return_val.type = Variant::NIL;
494 mi.arguments.push_back(PropertyInfo(Variant::BOOL, "condition"));
495 mi.arguments.push_back(PropertyInfo(Variant::STRING, "message"));
496 mi.default_arguments.push_back(String());
497 p_functions->push_back(mi);
498 }
499}
500
501void GDScriptLanguage::get_public_constants(List<Pair<String, Variant>> *p_constants) const {
502 Pair<String, Variant> pi;

Callers 4

is_shadowingMethod · 0.45
parse_enumMethod · 0.45
generateMethod · 0.45

Calls 3

PropertyInfoClass · 0.50
StringClass · 0.50
push_backMethod · 0.45

Tested by

no test coverage detected