editor_internal_calls.cpp 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395
  1. /*************************************************************************/
  2. /* editor_internal_calls.cpp */
  3. /*************************************************************************/
  4. /* This file is part of: */
  5. /* GODOT ENGINE */
  6. /* https://godotengine.org */
  7. /*************************************************************************/
  8. /* Copyright (c) 2007-2021 Juan Linietsky, Ariel Manzur. */
  9. /* Copyright (c) 2014-2021 Godot Engine contributors (cf. AUTHORS.md). */
  10. /* */
  11. /* Permission is hereby granted, free of charge, to any person obtaining */
  12. /* a copy of this software and associated documentation files (the */
  13. /* "Software"), to deal in the Software without restriction, including */
  14. /* without limitation the rights to use, copy, modify, merge, publish, */
  15. /* distribute, sublicense, and/or sell copies of the Software, and to */
  16. /* permit persons to whom the Software is furnished to do so, subject to */
  17. /* the following conditions: */
  18. /* */
  19. /* The above copyright notice and this permission notice shall be */
  20. /* included in all copies or substantial portions of the Software. */
  21. /* */
  22. /* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */
  23. /* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */
  24. /* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*/
  25. /* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */
  26. /* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */
  27. /* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
  28. /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
  29. /*************************************************************************/
  30. #include "editor_internal_calls.h"
  31. #ifdef UNIX_ENABLED
  32. #include <unistd.h> // access
  33. #endif
  34. #include "core/os/os.h"
  35. #include "core/version.h"
  36. #include "editor/debugger/editor_debugger_node.h"
  37. #include "editor/editor_node.h"
  38. #include "editor/editor_scale.h"
  39. #include "editor/plugins/script_editor_plugin.h"
  40. #include "main/main.h"
  41. #include "../csharp_script.h"
  42. #include "../glue/cs_glue_version.gen.h"
  43. #include "../godotsharp_dirs.h"
  44. #include "../mono_gd/gd_mono_marshal.h"
  45. #include "../utils/osx_utils.h"
  46. #include "code_completion.h"
  47. #include "godotsharp_export.h"
  48. MonoString *godot_icall_GodotSharpDirs_ResDataDir() {
  49. return GDMonoMarshal::mono_string_from_godot(GodotSharpDirs::get_res_data_dir());
  50. }
  51. MonoString *godot_icall_GodotSharpDirs_ResMetadataDir() {
  52. return GDMonoMarshal::mono_string_from_godot(GodotSharpDirs::get_res_metadata_dir());
  53. }
  54. MonoString *godot_icall_GodotSharpDirs_ResAssembliesBaseDir() {
  55. return GDMonoMarshal::mono_string_from_godot(GodotSharpDirs::get_res_assemblies_base_dir());
  56. }
  57. MonoString *godot_icall_GodotSharpDirs_ResAssembliesDir() {
  58. return GDMonoMarshal::mono_string_from_godot(GodotSharpDirs::get_res_assemblies_dir());
  59. }
  60. MonoString *godot_icall_GodotSharpDirs_ResConfigDir() {
  61. return GDMonoMarshal::mono_string_from_godot(GodotSharpDirs::get_res_config_dir());
  62. }
  63. MonoString *godot_icall_GodotSharpDirs_ResTempDir() {
  64. return GDMonoMarshal::mono_string_from_godot(GodotSharpDirs::get_res_temp_dir());
  65. }
  66. MonoString *godot_icall_GodotSharpDirs_ResTempAssembliesBaseDir() {
  67. return GDMonoMarshal::mono_string_from_godot(GodotSharpDirs::get_res_temp_assemblies_base_dir());
  68. }
  69. MonoString *godot_icall_GodotSharpDirs_ResTempAssembliesDir() {
  70. return GDMonoMarshal::mono_string_from_godot(GodotSharpDirs::get_res_temp_assemblies_dir());
  71. }
  72. MonoString *godot_icall_GodotSharpDirs_MonoUserDir() {
  73. return GDMonoMarshal::mono_string_from_godot(GodotSharpDirs::get_mono_user_dir());
  74. }
  75. MonoString *godot_icall_GodotSharpDirs_MonoLogsDir() {
  76. return GDMonoMarshal::mono_string_from_godot(GodotSharpDirs::get_mono_logs_dir());
  77. }
  78. MonoString *godot_icall_GodotSharpDirs_MonoSolutionsDir() {
  79. #ifdef TOOLS_ENABLED
  80. return GDMonoMarshal::mono_string_from_godot(GodotSharpDirs::get_mono_solutions_dir());
  81. #else
  82. return nullptr;
  83. #endif
  84. }
  85. MonoString *godot_icall_GodotSharpDirs_BuildLogsDirs() {
  86. #ifdef TOOLS_ENABLED
  87. return GDMonoMarshal::mono_string_from_godot(GodotSharpDirs::get_build_logs_dir());
  88. #else
  89. return nullptr;
  90. #endif
  91. }
  92. MonoString *godot_icall_GodotSharpDirs_ProjectSlnPath() {
  93. #ifdef TOOLS_ENABLED
  94. return GDMonoMarshal::mono_string_from_godot(GodotSharpDirs::get_project_sln_path());
  95. #else
  96. return nullptr;
  97. #endif
  98. }
  99. MonoString *godot_icall_GodotSharpDirs_ProjectCsProjPath() {
  100. #ifdef TOOLS_ENABLED
  101. return GDMonoMarshal::mono_string_from_godot(GodotSharpDirs::get_project_csproj_path());
  102. #else
  103. return nullptr;
  104. #endif
  105. }
  106. MonoString *godot_icall_GodotSharpDirs_DataEditorToolsDir() {
  107. #ifdef TOOLS_ENABLED
  108. return GDMonoMarshal::mono_string_from_godot(GodotSharpDirs::get_data_editor_tools_dir());
  109. #else
  110. return nullptr;
  111. #endif
  112. }
  113. MonoString *godot_icall_GodotSharpDirs_DataEditorPrebuiltApiDir() {
  114. #ifdef TOOLS_ENABLED
  115. return GDMonoMarshal::mono_string_from_godot(GodotSharpDirs::get_data_editor_prebuilt_api_dir());
  116. #else
  117. return nullptr;
  118. #endif
  119. }
  120. MonoString *godot_icall_GodotSharpDirs_DataMonoEtcDir() {
  121. return GDMonoMarshal::mono_string_from_godot(GodotSharpDirs::get_data_mono_etc_dir());
  122. }
  123. MonoString *godot_icall_GodotSharpDirs_DataMonoLibDir() {
  124. return GDMonoMarshal::mono_string_from_godot(GodotSharpDirs::get_data_mono_lib_dir());
  125. }
  126. MonoString *godot_icall_GodotSharpDirs_DataMonoBinDir() {
  127. #ifdef WINDOWS_ENABLED
  128. return GDMonoMarshal::mono_string_from_godot(GodotSharpDirs::get_data_mono_bin_dir());
  129. #else
  130. return nullptr;
  131. #endif
  132. }
  133. void godot_icall_EditorProgress_Create(MonoString *p_task, MonoString *p_label, int32_t p_amount, MonoBoolean p_can_cancel) {
  134. String task = GDMonoMarshal::mono_string_to_godot(p_task);
  135. String label = GDMonoMarshal::mono_string_to_godot(p_label);
  136. EditorNode::progress_add_task(task, label, p_amount, (bool)p_can_cancel);
  137. }
  138. void godot_icall_EditorProgress_Dispose(MonoString *p_task) {
  139. String task = GDMonoMarshal::mono_string_to_godot(p_task);
  140. EditorNode::progress_end_task(task);
  141. }
  142. MonoBoolean godot_icall_EditorProgress_Step(MonoString *p_task, MonoString *p_state, int32_t p_step, MonoBoolean p_force_refresh) {
  143. String task = GDMonoMarshal::mono_string_to_godot(p_task);
  144. String state = GDMonoMarshal::mono_string_to_godot(p_state);
  145. return EditorNode::progress_task_step(task, state, p_step, (bool)p_force_refresh);
  146. }
  147. uint32_t godot_icall_ExportPlugin_GetExportedAssemblyDependencies(MonoObject *p_initial_assemblies,
  148. MonoString *p_build_config, MonoString *p_custom_bcl_dir, MonoObject *r_assembly_dependencies) {
  149. Dictionary initial_dependencies = GDMonoMarshal::mono_object_to_variant(p_initial_assemblies);
  150. String build_config = GDMonoMarshal::mono_string_to_godot(p_build_config);
  151. String custom_bcl_dir = GDMonoMarshal::mono_string_to_godot(p_custom_bcl_dir);
  152. Dictionary assembly_dependencies = GDMonoMarshal::mono_object_to_variant(r_assembly_dependencies);
  153. return GodotSharpExport::get_exported_assembly_dependencies(initial_dependencies, build_config, custom_bcl_dir, assembly_dependencies);
  154. }
  155. MonoString *godot_icall_Internal_UpdateApiAssembliesFromPrebuilt(MonoString *p_config) {
  156. String config = GDMonoMarshal::mono_string_to_godot(p_config);
  157. String error_str = GDMono::get_singleton()->update_api_assemblies_from_prebuilt(config);
  158. return GDMonoMarshal::mono_string_from_godot(error_str);
  159. }
  160. MonoString *godot_icall_Internal_FullTemplatesDir() {
  161. String full_templates_dir = EditorSettings::get_singleton()->get_templates_dir().plus_file(VERSION_FULL_CONFIG);
  162. return GDMonoMarshal::mono_string_from_godot(full_templates_dir);
  163. }
  164. MonoString *godot_icall_Internal_SimplifyGodotPath(MonoString *p_path) {
  165. String path = GDMonoMarshal::mono_string_to_godot(p_path);
  166. return GDMonoMarshal::mono_string_from_godot(path.simplify_path());
  167. }
  168. MonoBoolean godot_icall_Internal_IsOsxAppBundleInstalled(MonoString *p_bundle_id) {
  169. #ifdef OSX_ENABLED
  170. String bundle_id = GDMonoMarshal::mono_string_to_godot(p_bundle_id);
  171. return (MonoBoolean)osx_is_app_bundle_installed(bundle_id);
  172. #else
  173. (void)p_bundle_id; // UNUSED
  174. return (MonoBoolean) false;
  175. #endif
  176. }
  177. MonoBoolean godot_icall_Internal_GodotIs32Bits() {
  178. return sizeof(void *) == 4;
  179. }
  180. MonoBoolean godot_icall_Internal_GodotIsRealTDouble() {
  181. #ifdef REAL_T_IS_DOUBLE
  182. return (MonoBoolean) true;
  183. #else
  184. return (MonoBoolean) false;
  185. #endif
  186. }
  187. void godot_icall_Internal_GodotMainIteration() {
  188. Main::iteration();
  189. }
  190. uint64_t godot_icall_Internal_GetCoreApiHash() {
  191. return ClassDB::get_api_hash(ClassDB::API_CORE);
  192. }
  193. uint64_t godot_icall_Internal_GetEditorApiHash() {
  194. return ClassDB::get_api_hash(ClassDB::API_EDITOR);
  195. }
  196. MonoBoolean godot_icall_Internal_IsAssembliesReloadingNeeded() {
  197. #ifdef GD_MONO_HOT_RELOAD
  198. return (MonoBoolean)CSharpLanguage::get_singleton()->is_assembly_reloading_needed();
  199. #else
  200. return (MonoBoolean) false;
  201. #endif
  202. }
  203. void godot_icall_Internal_ReloadAssemblies(MonoBoolean p_soft_reload) {
  204. #ifdef GD_MONO_HOT_RELOAD
  205. mono_bind::GodotSharp::get_singleton()->call_deferred(SNAME("_reload_assemblies"), (bool)p_soft_reload);
  206. #endif
  207. }
  208. void godot_icall_Internal_EditorDebuggerNodeReloadScripts() {
  209. EditorDebuggerNode::get_singleton()->reload_scripts();
  210. }
  211. MonoBoolean godot_icall_Internal_ScriptEditorEdit(MonoObject *p_resource, int32_t p_line, int32_t p_col, MonoBoolean p_grab_focus) {
  212. Ref<Resource> resource = GDMonoMarshal::mono_object_to_variant(p_resource);
  213. return (MonoBoolean)ScriptEditor::get_singleton()->edit(resource, p_line, p_col, (bool)p_grab_focus);
  214. }
  215. void godot_icall_Internal_EditorNodeShowScriptScreen() {
  216. EditorNode::get_singleton()->call("_editor_select", EditorNode::EDITOR_SCRIPT);
  217. }
  218. MonoString *godot_icall_Internal_MonoWindowsInstallRoot() {
  219. #ifdef WINDOWS_ENABLED
  220. String install_root_dir = GDMono::get_singleton()->get_mono_reg_info().install_root_dir;
  221. return GDMonoMarshal::mono_string_from_godot(install_root_dir);
  222. #else
  223. return nullptr;
  224. #endif
  225. }
  226. void godot_icall_Internal_EditorRunPlay() {
  227. EditorNode::get_singleton()->run_play();
  228. }
  229. void godot_icall_Internal_EditorRunStop() {
  230. EditorNode::get_singleton()->run_stop();
  231. }
  232. void godot_icall_Internal_ScriptEditorDebugger_ReloadScripts() {
  233. EditorDebuggerNode *ed = EditorDebuggerNode::get_singleton();
  234. if (ed) {
  235. ed->reload_scripts();
  236. }
  237. }
  238. MonoArray *godot_icall_Internal_CodeCompletionRequest(int32_t p_kind, MonoString *p_script_file) {
  239. String script_file = GDMonoMarshal::mono_string_to_godot(p_script_file);
  240. PackedStringArray suggestions = gdmono::get_code_completion((gdmono::CompletionKind)p_kind, script_file);
  241. return GDMonoMarshal::PackedStringArray_to_mono_array(suggestions);
  242. }
  243. float godot_icall_Globals_EditorScale() {
  244. return EDSCALE;
  245. }
  246. MonoObject *godot_icall_Globals_GlobalDef(MonoString *p_setting, MonoObject *p_default_value, MonoBoolean p_restart_if_changed) {
  247. String setting = GDMonoMarshal::mono_string_to_godot(p_setting);
  248. Variant default_value = GDMonoMarshal::mono_object_to_variant(p_default_value);
  249. Variant result = _GLOBAL_DEF(setting, default_value, (bool)p_restart_if_changed);
  250. return GDMonoMarshal::variant_to_mono_object(result);
  251. }
  252. MonoObject *godot_icall_Globals_EditorDef(MonoString *p_setting, MonoObject *p_default_value, MonoBoolean p_restart_if_changed) {
  253. String setting = GDMonoMarshal::mono_string_to_godot(p_setting);
  254. Variant default_value = GDMonoMarshal::mono_object_to_variant(p_default_value);
  255. Variant result = _EDITOR_DEF(setting, default_value, (bool)p_restart_if_changed);
  256. return GDMonoMarshal::variant_to_mono_object(result);
  257. }
  258. MonoObject *godot_icall_Globals_EditorShortcut(MonoString *p_setting) {
  259. String setting = GDMonoMarshal::mono_string_to_godot(p_setting);
  260. Ref<Shortcut> result = ED_GET_SHORTCUT(setting);
  261. return GDMonoMarshal::variant_to_mono_object(result);
  262. }
  263. MonoString *godot_icall_Globals_TTR(MonoString *p_text) {
  264. String text = GDMonoMarshal::mono_string_to_godot(p_text);
  265. return GDMonoMarshal::mono_string_from_godot(TTR(text));
  266. }
  267. MonoString *godot_icall_Utils_OS_GetPlatformName() {
  268. String os_name = OS::get_singleton()->get_name();
  269. return GDMonoMarshal::mono_string_from_godot(os_name);
  270. }
  271. MonoBoolean godot_icall_Utils_OS_UnixFileHasExecutableAccess(MonoString *p_file_path) {
  272. #ifdef UNIX_ENABLED
  273. String file_path = GDMonoMarshal::mono_string_to_godot(p_file_path);
  274. return access(file_path.utf8().get_data(), X_OK) == 0;
  275. #else
  276. ERR_FAIL_V(false);
  277. #endif
  278. }
  279. void register_editor_internal_calls() {
  280. // GodotSharpDirs
  281. GDMonoUtils::add_internal_call("GodotTools.Internals.GodotSharpDirs::internal_ResDataDir", godot_icall_GodotSharpDirs_ResDataDir);
  282. GDMonoUtils::add_internal_call("GodotTools.Internals.GodotSharpDirs::internal_ResMetadataDir", godot_icall_GodotSharpDirs_ResMetadataDir);
  283. GDMonoUtils::add_internal_call("GodotTools.Internals.GodotSharpDirs::internal_ResAssembliesBaseDir", godot_icall_GodotSharpDirs_ResAssembliesBaseDir);
  284. GDMonoUtils::add_internal_call("GodotTools.Internals.GodotSharpDirs::internal_ResAssembliesDir", godot_icall_GodotSharpDirs_ResAssembliesDir);
  285. GDMonoUtils::add_internal_call("GodotTools.Internals.GodotSharpDirs::internal_ResConfigDir", godot_icall_GodotSharpDirs_ResConfigDir);
  286. GDMonoUtils::add_internal_call("GodotTools.Internals.GodotSharpDirs::internal_ResTempDir", godot_icall_GodotSharpDirs_ResTempDir);
  287. GDMonoUtils::add_internal_call("GodotTools.Internals.GodotSharpDirs::internal_ResTempAssembliesBaseDir", godot_icall_GodotSharpDirs_ResTempAssembliesBaseDir);
  288. GDMonoUtils::add_internal_call("GodotTools.Internals.GodotSharpDirs::internal_ResTempAssembliesDir", godot_icall_GodotSharpDirs_ResTempAssembliesDir);
  289. GDMonoUtils::add_internal_call("GodotTools.Internals.GodotSharpDirs::internal_MonoUserDir", godot_icall_GodotSharpDirs_MonoUserDir);
  290. GDMonoUtils::add_internal_call("GodotTools.Internals.GodotSharpDirs::internal_MonoLogsDir", godot_icall_GodotSharpDirs_MonoLogsDir);
  291. GDMonoUtils::add_internal_call("GodotTools.Internals.GodotSharpDirs::internal_MonoSolutionsDir", godot_icall_GodotSharpDirs_MonoSolutionsDir);
  292. GDMonoUtils::add_internal_call("GodotTools.Internals.GodotSharpDirs::internal_BuildLogsDirs", godot_icall_GodotSharpDirs_BuildLogsDirs);
  293. GDMonoUtils::add_internal_call("GodotTools.Internals.GodotSharpDirs::internal_ProjectSlnPath", godot_icall_GodotSharpDirs_ProjectSlnPath);
  294. GDMonoUtils::add_internal_call("GodotTools.Internals.GodotSharpDirs::internal_ProjectCsProjPath", godot_icall_GodotSharpDirs_ProjectCsProjPath);
  295. GDMonoUtils::add_internal_call("GodotTools.Internals.GodotSharpDirs::internal_DataEditorToolsDir", godot_icall_GodotSharpDirs_DataEditorToolsDir);
  296. GDMonoUtils::add_internal_call("GodotTools.Internals.GodotSharpDirs::internal_DataEditorPrebuiltApiDir", godot_icall_GodotSharpDirs_DataEditorPrebuiltApiDir);
  297. GDMonoUtils::add_internal_call("GodotTools.Internals.GodotSharpDirs::internal_DataMonoEtcDir", godot_icall_GodotSharpDirs_DataMonoEtcDir);
  298. GDMonoUtils::add_internal_call("GodotTools.Internals.GodotSharpDirs::internal_DataMonoLibDir", godot_icall_GodotSharpDirs_DataMonoLibDir);
  299. GDMonoUtils::add_internal_call("GodotTools.Internals.GodotSharpDirs::internal_DataMonoBinDir", godot_icall_GodotSharpDirs_DataMonoBinDir);
  300. // EditorProgress
  301. GDMonoUtils::add_internal_call("GodotTools.Internals.EditorProgress::internal_Create", godot_icall_EditorProgress_Create);
  302. GDMonoUtils::add_internal_call("GodotTools.Internals.EditorProgress::internal_Dispose", godot_icall_EditorProgress_Dispose);
  303. GDMonoUtils::add_internal_call("GodotTools.Internals.EditorProgress::internal_Step", godot_icall_EditorProgress_Step);
  304. // ExportPlugin
  305. GDMonoUtils::add_internal_call("GodotTools.Export.ExportPlugin::internal_GetExportedAssemblyDependencies", godot_icall_ExportPlugin_GetExportedAssemblyDependencies);
  306. // Internals
  307. GDMonoUtils::add_internal_call("GodotTools.Internals.Internal::internal_UpdateApiAssembliesFromPrebuilt", godot_icall_Internal_UpdateApiAssembliesFromPrebuilt);
  308. GDMonoUtils::add_internal_call("GodotTools.Internals.Internal::internal_FullTemplatesDir", godot_icall_Internal_FullTemplatesDir);
  309. GDMonoUtils::add_internal_call("GodotTools.Internals.Internal::internal_SimplifyGodotPath", godot_icall_Internal_SimplifyGodotPath);
  310. GDMonoUtils::add_internal_call("GodotTools.Internals.Internal::internal_IsOsxAppBundleInstalled", godot_icall_Internal_IsOsxAppBundleInstalled);
  311. GDMonoUtils::add_internal_call("GodotTools.Internals.Internal::internal_GodotIs32Bits", godot_icall_Internal_GodotIs32Bits);
  312. GDMonoUtils::add_internal_call("GodotTools.Internals.Internal::internal_GodotIsRealTDouble", godot_icall_Internal_GodotIsRealTDouble);
  313. GDMonoUtils::add_internal_call("GodotTools.Internals.Internal::internal_GodotMainIteration", godot_icall_Internal_GodotMainIteration);
  314. GDMonoUtils::add_internal_call("GodotTools.Internals.Internal::internal_GetCoreApiHash", godot_icall_Internal_GetCoreApiHash);
  315. GDMonoUtils::add_internal_call("GodotTools.Internals.Internal::internal_GetEditorApiHash", godot_icall_Internal_GetEditorApiHash);
  316. GDMonoUtils::add_internal_call("GodotTools.Internals.Internal::internal_IsAssembliesReloadingNeeded", godot_icall_Internal_IsAssembliesReloadingNeeded);
  317. GDMonoUtils::add_internal_call("GodotTools.Internals.Internal::internal_ReloadAssemblies", godot_icall_Internal_ReloadAssemblies);
  318. GDMonoUtils::add_internal_call("GodotTools.Internals.Internal::internal_EditorDebuggerNodeReloadScripts", godot_icall_Internal_EditorDebuggerNodeReloadScripts);
  319. GDMonoUtils::add_internal_call("GodotTools.Internals.Internal::internal_ScriptEditorEdit", godot_icall_Internal_ScriptEditorEdit);
  320. GDMonoUtils::add_internal_call("GodotTools.Internals.Internal::internal_EditorNodeShowScriptScreen", godot_icall_Internal_EditorNodeShowScriptScreen);
  321. GDMonoUtils::add_internal_call("GodotTools.Internals.Internal::internal_MonoWindowsInstallRoot", godot_icall_Internal_MonoWindowsInstallRoot);
  322. GDMonoUtils::add_internal_call("GodotTools.Internals.Internal::internal_EditorRunPlay", godot_icall_Internal_EditorRunPlay);
  323. GDMonoUtils::add_internal_call("GodotTools.Internals.Internal::internal_EditorRunStop", godot_icall_Internal_EditorRunStop);
  324. GDMonoUtils::add_internal_call("GodotTools.Internals.Internal::internal_ScriptEditorDebugger_ReloadScripts", godot_icall_Internal_ScriptEditorDebugger_ReloadScripts);
  325. GDMonoUtils::add_internal_call("GodotTools.Internals.Internal::internal_CodeCompletionRequest", godot_icall_Internal_CodeCompletionRequest);
  326. // Globals
  327. GDMonoUtils::add_internal_call("GodotTools.Internals.Globals::internal_EditorScale", godot_icall_Globals_EditorScale);
  328. GDMonoUtils::add_internal_call("GodotTools.Internals.Globals::internal_GlobalDef", godot_icall_Globals_GlobalDef);
  329. GDMonoUtils::add_internal_call("GodotTools.Internals.Globals::internal_EditorDef", godot_icall_Globals_EditorDef);
  330. GDMonoUtils::add_internal_call("GodotTools.Internals.Globals::internal_EditorShortcut", godot_icall_Globals_EditorShortcut);
  331. GDMonoUtils::add_internal_call("GodotTools.Internals.Globals::internal_TTR", godot_icall_Globals_TTR);
  332. // Utils.OS
  333. GDMonoUtils::add_internal_call("GodotTools.Utils.OS::GetPlatformName", godot_icall_Utils_OS_GetPlatformName);
  334. GDMonoUtils::add_internal_call("GodotTools.Utils.OS::UnixFileHasExecutableAccess", godot_icall_Utils_OS_UnixFileHasExecutableAccess);
  335. }