| 472 | } |
| 473 | |
| 474 | void 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 | |
| 501 | void GDScriptLanguage::get_public_constants(List<Pair<String, Variant>> *p_constants) const { |
| 502 | Pair<String, Variant> pi; |
no test coverage detected