diff options
| author | Juan Linietsky | 2016-02-09 16:58:03 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2016-02-09 16:58:03 -0300 |
| commit | 61f03c98c867d177b9ee4a528fdae4ed4f2512b2 (patch) | |
| tree | 03d86e37f1ade071beaa52b75f91bf72ab32fd95 /modules/gdscript/gd_editor.cpp | |
| parent | 595de75641e0fae1f4e6924530da7a3308371a07 (diff) | |
| download | godot-61f03c98c867d177b9ee4a528fdae4ed4f2512b2.tar.gz godot-61f03c98c867d177b9ee4a528fdae4ed4f2512b2.tar.zst godot-61f03c98c867d177b9ee4a528fdae4ed4f2512b2.zip | |
Diffstat (limited to 'modules/gdscript/gd_editor.cpp')
| -rw-r--r-- | modules/gdscript/gd_editor.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/modules/gdscript/gd_editor.cpp b/modules/gdscript/gd_editor.cpp index 126a8cd1e..8dfb55a6b 100644 --- a/modules/gdscript/gd_editor.cpp +++ b/modules/gdscript/gd_editor.cpp @@ -285,6 +285,30 @@ void GDScriptLanguage::get_public_functions(List<MethodInfo> *p_functions) const p_functions->push_back(GDFunctions::get_info(GDFunctions::Function(i))); } + + //not really "functions", but.. + { + MethodInfo mi; + mi.name="preload:Resource"; + mi.arguments.push_back(PropertyInfo(Variant::STRING,"path")); + mi.return_val=PropertyInfo(Variant::OBJECT,"",PROPERTY_HINT_RESOURCE_TYPE,"Resource"); + p_functions->push_back(mi); + } + { + MethodInfo mi; + mi.name="yield"; + mi.arguments.push_back(PropertyInfo(Variant::OBJECT,"object")); + mi.arguments.push_back(PropertyInfo(Variant::STRING,"signal")); + mi.default_arguments.push_back(Variant::NIL); + mi.default_arguments.push_back(Variant::STRING); + p_functions->push_back(mi); + } + { + MethodInfo mi; + mi.name="assert"; + mi.arguments.push_back(PropertyInfo(Variant::BOOL,"condition")); + p_functions->push_back(mi); + } } void GDScriptLanguage::get_public_constants(List<Pair<String,Variant> > *p_constants) const { |
