gdextension_compat_hashes.cpp 39 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021
  1. /**************************************************************************/
  2. /* gdextension_compat_hashes.cpp */
  3. /**************************************************************************/
  4. /* This file is part of: */
  5. /* GODOT ENGINE */
  6. /* https://godotengine.org */
  7. /**************************************************************************/
  8. /* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */
  9. /* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */
  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 "gdextension_compat_hashes.h"
  31. #ifndef DISABLE_DEPRECATED
  32. #include "core/object/class_db.h"
  33. #include "core/variant/variant.h"
  34. HashMap<StringName, LocalVector<GDExtensionCompatHashes::Mapping>> GDExtensionCompatHashes::mappings;
  35. bool GDExtensionCompatHashes::lookup_current_hash(const StringName &p_class, const StringName &p_method, uint32_t p_legacy_hash, uint32_t *r_current_hash) {
  36. LocalVector<Mapping> *methods = mappings.getptr(p_class);
  37. if (!methods) {
  38. return false;
  39. }
  40. for (const Mapping &mapping : *methods) {
  41. if (mapping.method == p_method && mapping.legacy_hash == p_legacy_hash) {
  42. *r_current_hash = mapping.current_hash;
  43. return true;
  44. }
  45. }
  46. return false;
  47. }
  48. bool GDExtensionCompatHashes::get_legacy_hashes(const StringName &p_class, const StringName &p_method, Array &r_hashes, bool p_check_valid) {
  49. LocalVector<Mapping> *methods = mappings.getptr(p_class);
  50. if (!methods) {
  51. return false;
  52. }
  53. bool found = false;
  54. for (const Mapping &mapping : *methods) {
  55. if (mapping.method == p_method) {
  56. if (p_check_valid) {
  57. MethodBind *mb = ClassDB::get_method_with_compatibility(p_class, p_method, mapping.current_hash);
  58. if (!mb) {
  59. WARN_PRINT(vformat("Compatibility hash %d for %s::%s() mapped to non-existent hash %d. Please update gdextension_compat_hashes.cpp.", mapping.legacy_hash, p_class, p_method, mapping.current_hash));
  60. continue;
  61. }
  62. }
  63. r_hashes.push_back(mapping.legacy_hash);
  64. found = true;
  65. }
  66. }
  67. return found;
  68. }
  69. void GDExtensionCompatHashes::initialize() {
  70. // clang-format off
  71. mappings.insert("AESContext", {
  72. { "start", 3167574919, 3122411423 },
  73. });
  74. mappings.insert("AStar2D", {
  75. { "add_point", 3370185124, 4074201818 },
  76. { "set_point_disabled", 4023243586, 972357352 },
  77. { "connect_points", 3785370599, 3710494224 },
  78. { "disconnect_points", 3785370599, 3710494224 },
  79. { "are_points_connected", 4063588998, 2288175859 },
  80. });
  81. mappings.insert("AStar3D", {
  82. { "add_point", 2920922839, 1038703438 },
  83. { "set_point_disabled", 4023243586, 972357352 },
  84. { "connect_points", 3785370599, 3710494224 },
  85. { "disconnect_points", 3785370599, 3710494224 },
  86. { "are_points_connected", 4063588998, 2288175859 },
  87. });
  88. mappings.insert("AStarGrid2D", {
  89. { "set_point_solid", 2825551965, 1765703753 },
  90. { "fill_solid_region", 1152863744, 2261970063 },
  91. });
  92. mappings.insert("AcceptDialog", {
  93. { "add_button", 4158837846, 3328440682 },
  94. });
  95. mappings.insert("AnimatedSprite2D", {
  96. { "play", 2372066587, 3269405555 },
  97. { "play_backwards", 1421762485, 3323268493 },
  98. });
  99. mappings.insert("AnimatedSprite3D", {
  100. { "play", 2372066587, 3269405555 },
  101. { "play_backwards", 1421762485, 3323268493 },
  102. });
  103. mappings.insert("Animation", {
  104. { "add_track", 2393815928, 3843682357 },
  105. { "track_insert_key", 1985425300, 808952278 },
  106. { "track_find_key", 3898229885, 3245197284 },
  107. #ifdef REAL_T_IS_DOUBLE
  108. { "bezier_track_insert_key", 1057544502, 3767441357 },
  109. #else
  110. { "bezier_track_insert_key", 1057544502, 3656773645 },
  111. #endif
  112. { "bezier_track_set_key_in_handle", 1028302688, 1719223284 },
  113. { "bezier_track_set_key_out_handle", 1028302688, 1719223284 },
  114. { "audio_track_insert_key", 3489962123, 4021027286 },
  115. });
  116. mappings.insert("AnimationNode", {
  117. { "blend_animation", 11797022, 1630801826 },
  118. { "blend_node", 263389446, 1746075988 },
  119. { "blend_input", 2709059328, 1361527350 },
  120. });
  121. mappings.insert("AnimationNodeBlendSpace1D", {
  122. { "add_blend_point", 4069484420, 285050433 },
  123. });
  124. mappings.insert("AnimationNodeBlendSpace2D", {
  125. { "add_blend_point", 1533588937, 402261981 },
  126. { "add_triangle", 642454959, 753017335 },
  127. });
  128. mappings.insert("AnimationNodeBlendTree", {
  129. #ifdef REAL_T_IS_DOUBLE
  130. { "add_node", 2055804584, 1407702499 },
  131. #else
  132. { "add_node", 2055804584, 1980270704 },
  133. #endif
  134. });
  135. mappings.insert("AnimationNodeStateMachine", {
  136. #ifdef REAL_T_IS_DOUBLE
  137. { "add_node", 2055804584, 1407702499 },
  138. #else
  139. { "add_node", 2055804584, 1980270704 },
  140. #endif
  141. });
  142. mappings.insert("AnimationNodeStateMachinePlayback", {
  143. { "travel", 3683006648, 3823612587 },
  144. { "start", 3683006648, 3823612587 },
  145. });
  146. mappings.insert("AnimationPlayer", {
  147. { "play", 3697947785, 3118260607 },
  148. { "play", 2221377757, 3118260607 },
  149. { "play_backwards", 3890664824, 2787282401 },
  150. { "play_with_capture", 3180464118, 1572969103 },
  151. });
  152. mappings.insert("ArrayMesh", {
  153. { "add_surface_from_arrays", 172284304, 1796411378 },
  154. });
  155. mappings.insert("AudioEffectSpectrumAnalyzerInstance", {
  156. { "get_magnitude_for_frequency_range", 2693213071, 797993915 },
  157. });
  158. mappings.insert("AudioServer", {
  159. { "add_bus_effect", 4147765248, 4068819785 },
  160. { "get_bus_effect_instance", 2887144608, 1829771234 },
  161. });
  162. mappings.insert("AudioStreamPlaybackPolyphonic", {
  163. { "play_stream", 3792189967, 604492179 },
  164. });
  165. mappings.insert("AudioStreamRandomizer", {
  166. { "add_stream", 3197802065, 1892018854 },
  167. });
  168. mappings.insert("BitMap", {
  169. { "create_from_image_alpha", 505265891, 106271684 },
  170. { "opaque_to_polygons", 876132484, 48478126 },
  171. });
  172. mappings.insert("CanvasItem", {
  173. { "draw_line", 2516941890, 1562330099 },
  174. { "draw_dashed_line", 2175215884, 684651049 },
  175. { "draw_polyline", 4175878946, 3797364428 },
  176. { "draw_polyline_colors", 2239164197, 2311979562 },
  177. { "draw_arc", 3486841771, 4140652635 },
  178. { "draw_multiline", 4230657331, 2239075205 },
  179. { "draw_multiline_colors", 235933050, 4072951537 },
  180. { "draw_rect", 84391229, 2417231121 },
  181. { "draw_texture", 1695860435, 520200117 },
  182. { "draw_texture_rect", 3204081724, 3832805018 },
  183. { "draw_texture_rect_region", 3196597532, 3883821411 },
  184. { "draw_msdf_texture_rect_region", 2672026175, 4219163252 },
  185. { "draw_lcd_texture_rect_region", 169610548, 3212350954 },
  186. { "draw_primitive", 2248678295, 3288481815 },
  187. { "draw_polygon", 2683625537, 974537912 },
  188. { "draw_colored_polygon", 1659099617, 15245644 },
  189. { "draw_string", 2552080639, 728290553 },
  190. { "draw_multiline_string", 4002645436, 1927038192 },
  191. { "draw_string_outline", 850005221, 340562381 },
  192. { "draw_multiline_string_outline", 3717870722, 1912318525 },
  193. { "draw_char", 2329089032, 3339793283 },
  194. { "draw_char_outline", 419453826, 3302344391 },
  195. #ifdef REAL_T_IS_DOUBLE
  196. { "draw_mesh", 1634855856, 4036154158 },
  197. { "draw_set_transform", 3283884939, 156553079 },
  198. #else
  199. { "draw_mesh", 1634855856, 153818295 },
  200. { "draw_set_transform", 3283884939, 288975085 },
  201. #endif
  202. { "draw_animation_slice", 2295343543, 3112831842 },
  203. });
  204. mappings.insert("CodeEdit", {
  205. { "is_in_string", 3294126239, 688195400 },
  206. { "is_in_comment", 3294126239, 688195400 },
  207. { "add_code_completion_option", 1629240608, 947964390 },
  208. });
  209. mappings.insert("Control", {
  210. { "set_offsets_preset", 3651818904, 3724524307 },
  211. { "set_anchors_and_offsets_preset", 3651818904, 3724524307 },
  212. { "set_anchor", 2589937826, 2302782885 },
  213. { "get_theme_icon", 2336455395, 3163973443 },
  214. { "get_theme_stylebox", 2759935355, 604739069 },
  215. { "get_theme_font", 387378635, 2826986490 },
  216. { "get_theme_font_size", 229578101, 1327056374 },
  217. { "get_theme_color", 2377051548, 2798751242 },
  218. { "get_theme_constant", 229578101, 1327056374 },
  219. { "has_theme_icon", 1187511791, 866386512 },
  220. { "has_theme_stylebox", 1187511791, 866386512 },
  221. { "has_theme_font", 1187511791, 866386512 },
  222. { "has_theme_font_size", 1187511791, 866386512 },
  223. { "has_theme_color", 1187511791, 866386512 },
  224. { "has_theme_constant", 1187511791, 866386512 },
  225. });
  226. mappings.insert("Crypto", {
  227. { "generate_self_signed_certificate", 947314696, 492266173 },
  228. });
  229. mappings.insert("Curve", {
  230. { "add_point", 2766148617, 434072736 },
  231. });
  232. mappings.insert("Curve2D", {
  233. #ifdef REAL_T_IS_DOUBLE
  234. { "add_point", 529706502, 3343370600 },
  235. #else
  236. { "add_point", 2437345566, 4175465202 },
  237. #endif
  238. });
  239. mappings.insert("Curve3D", {
  240. #ifdef REAL_T_IS_DOUBLE
  241. { "add_point", 3544159631, 917388502 },
  242. #else
  243. { "add_point", 3836314258, 2931053748 },
  244. #endif
  245. });
  246. mappings.insert("DirAccess", {
  247. { "list_dir_begin", 2018049411, 2610976713 },
  248. { "copy", 198434953, 1063198817 },
  249. { "copy_absolute", 198434953, 1063198817 },
  250. });
  251. mappings.insert("DisplayServer", {
  252. { "global_menu_add_submenu_item", 3806306913, 2828985934 },
  253. { "global_menu_add_item", 3415468211, 3616842746 },
  254. { "global_menu_add_item", 3401266716, 3616842746 },
  255. { "global_menu_add_check_item", 3415468211, 3616842746 },
  256. { "global_menu_add_check_item", 3401266716, 3616842746 },
  257. { "global_menu_add_icon_item", 1700867534, 3867083847 },
  258. { "global_menu_add_icon_item", 4245856523, 3867083847 },
  259. { "global_menu_add_icon_check_item", 1700867534, 3867083847 },
  260. { "global_menu_add_icon_check_item", 4245856523, 3867083847 },
  261. { "global_menu_add_radio_check_item", 3415468211, 3616842746 },
  262. { "global_menu_add_radio_check_item", 3401266716, 3616842746 },
  263. { "global_menu_add_icon_radio_check_item", 1700867534, 3867083847 },
  264. { "global_menu_add_icon_radio_check_item", 4245856523, 3867083847 },
  265. { "global_menu_add_multistate_item", 635750054, 3297554655 },
  266. { "global_menu_add_multistate_item", 3431222859, 3297554655 },
  267. { "global_menu_add_separator", 1041533178, 3214812433 },
  268. { "tts_speak", 3741216677, 903992738 },
  269. { "is_touchscreen_available", 4162880507, 3323674545 },
  270. { "screen_set_orientation", 2629526904, 2211511631 },
  271. { "window_get_native_handle", 2709193271, 1096425680 },
  272. { "window_set_title", 3043792800, 441246282 },
  273. { "window_set_mouse_passthrough", 3958815166, 1993637420 },
  274. { "window_set_current_screen", 3023605688, 2230941749 },
  275. { "window_set_position", 3614040015, 2019273902 },
  276. { "window_set_size", 3614040015, 2019273902 },
  277. { "window_set_rect_changed_callback", 3653650673, 1091192925 },
  278. { "window_set_window_event_callback", 3653650673, 1091192925 },
  279. { "window_set_input_event_callback", 3653650673, 1091192925 },
  280. { "window_set_input_text_callback", 3653650673, 1091192925 },
  281. { "window_set_drop_files_callback", 3653650673, 1091192925 },
  282. { "window_set_max_size", 3614040015, 2019273902 },
  283. { "window_set_min_size", 3614040015, 2019273902 },
  284. { "window_set_mode", 2942569511, 1319965401 },
  285. { "window_set_flag", 3971592565, 254894155 },
  286. { "window_get_flag", 2662949986, 802816991 },
  287. { "window_set_window_buttons_offset", 3614040015, 2019273902 },
  288. { "window_set_ime_active", 450484987, 1661950165 },
  289. { "window_set_ime_position", 3614040015, 2019273902 },
  290. { "window_set_vsync_mode", 1708924624, 2179333492 },
  291. #ifdef REAL_T_IS_DOUBLE
  292. { "cursor_set_custom_image", 1358907026, 4163678968 },
  293. { "virtual_keyboard_show", 384539973, 1323934605 },
  294. #else
  295. { "cursor_set_custom_image", 1358907026, 1816663697 },
  296. { "virtual_keyboard_show", 860410478, 3042891259 },
  297. #endif
  298. });
  299. mappings.insert("EditorExportPlatform", {
  300. { "export_project_files", 425454869, 1063735070 },
  301. });
  302. mappings.insert("EditorProperty", {
  303. { "emit_changed", 3069422438, 1822500399 },
  304. });
  305. mappings.insert("ENetConnection", {
  306. { "create_host_bound", 866250949, 1515002313 },
  307. { "connect_to_host", 385984708, 2171300490 },
  308. { "dtls_client_setup", 3097527179, 1966198364 },
  309. });
  310. mappings.insert("ENetMultiplayerPeer", {
  311. { "create_server", 1616151701, 2917761309 },
  312. { "create_client", 920217784, 2327163476 },
  313. });
  314. mappings.insert("EditorCommandPalette", {
  315. { "add_command", 3664614892, 864043298 },
  316. });
  317. mappings.insert("EditorDebuggerSession", {
  318. { "send_message", 3780025912, 85656714 },
  319. { "toggle_profiler", 35674246, 1198443697 },
  320. });
  321. mappings.insert("EditorFileDialog", {
  322. { "add_filter", 233059325, 3388804757 },
  323. });
  324. mappings.insert("EditorImportPlugin", {
  325. { "append_import_external_resource", 3645925746, 320493106 },
  326. });
  327. mappings.insert("EditorInterface", {
  328. { "popup_dialog", 2478844058, 2015770942 },
  329. { "popup_dialog_centered", 1723337679, 346557367 },
  330. { "popup_dialog_centered_ratio", 1310934579, 2093669136 },
  331. { "popup_dialog_centered_clamped", 3433759678, 3763385571 },
  332. { "inspect_object", 2564140749, 127962172 },
  333. { "edit_script", 3664508569, 219829402 },
  334. { "save_scene_as", 1168363258, 3647332257 },
  335. });
  336. mappings.insert("EditorNode3DGizmo", {
  337. { "add_lines", 302451090, 2910971437 },
  338. #ifdef REAL_T_IS_DOUBLE
  339. { "add_mesh", 3332776472, 2161761131 },
  340. #else
  341. { "add_mesh", 1868867708, 1579955111 },
  342. #endif
  343. { "add_unscaled_billboard", 3719733075, 520007164 },
  344. });
  345. mappings.insert("EditorNode3DGizmoPlugin", {
  346. { "create_icon_material", 2976007329, 3804976916 },
  347. { "get_material", 3501703615, 974464017 },
  348. });
  349. mappings.insert("EditorScenePostImportPlugin", {
  350. { "add_import_option_advanced", 3774155785, 3674075649 },
  351. });
  352. mappings.insert("EditorUndoRedoManager", {
  353. { "create_action", 3577985681, 2107025470 },
  354. });
  355. mappings.insert("EngineDebugger", {
  356. { "profiler_enable", 438160728, 3192561009 },
  357. });
  358. mappings.insert("Expression", {
  359. { "parse", 3658149758, 3069722906 },
  360. });
  361. mappings.insert("FileAccess", {
  362. { "open_compressed", 2874458257, 3686439335 },
  363. { "store_csv_line", 2217842308, 2173791505 },
  364. });
  365. mappings.insert("FileDialog", {
  366. { "add_filter", 233059325, 3388804757 },
  367. });
  368. mappings.insert("Font", {
  369. { "get_string_size", 3678918099, 1868866121 },
  370. { "get_multiline_string_size", 2427690650, 519636710 },
  371. { "draw_string", 2565402639, 1983721962 },
  372. { "draw_multiline_string", 348869189, 1171506176 },
  373. { "draw_string_outline", 657875837, 623754045 },
  374. { "draw_multiline_string_outline", 1649790182, 3206388178 },
  375. { "draw_char", 1462476057, 3815617597 },
  376. { "draw_char_outline", 4161008124, 209525354 },
  377. #ifdef REAL_T_IS_DOUBLE
  378. { "find_variation", 625117670, 2196349508 },
  379. #else
  380. { "find_variation", 1222433716, 3344325384 },
  381. // Pre-existing compatibility hash.
  382. { "find_variation", 1149405976, 1851767612 },
  383. #endif
  384. });
  385. mappings.insert("GLTFDocument", {
  386. { "append_from_file", 1862991421, 866380864 },
  387. { "append_from_buffer", 2818062664, 1616081266 },
  388. { "append_from_scene", 374125375, 1622574258 },
  389. { "generate_scene", 2770277081, 596118388 },
  390. });
  391. mappings.insert("Geometry2D", {
  392. { "offset_polygon", 3837618924, 1275354010 },
  393. { "offset_polyline", 328033063, 2328231778 },
  394. });
  395. mappings.insert("Geometry3D", {
  396. { "build_cylinder_planes", 3142160516, 449920067 },
  397. { "build_capsule_planes", 410870045, 2113592876 },
  398. });
  399. mappings.insert("GraphNode", {
  400. { "set_slot", 902131739, 2873310869 },
  401. });
  402. mappings.insert("GridMap", {
  403. { "set_cell_item", 4177201334, 3449088946 },
  404. });
  405. mappings.insert("HTTPClient", {
  406. { "connect_to_host", 1970282951, 504540374 },
  407. { "request", 3249905507, 3778990155 },
  408. });
  409. mappings.insert("HTTPRequest", {
  410. { "request", 2720304520, 3215244323 },
  411. { "request_raw", 4282724657, 2714829993 },
  412. });
  413. mappings.insert("IP", {
  414. { "resolve_hostname", 396864159, 4283295457 },
  415. { "resolve_hostname_addresses", 3462780090, 773767525 },
  416. { "resolve_hostname_queue_item", 3936392508, 1749894742 },
  417. });
  418. mappings.insert("Image", {
  419. { "resize", 2461393748, 994498151 },
  420. { "save_jpg", 578836491, 2800019068 },
  421. { "save_webp", 3594949219, 2781156876 },
  422. { "compress", 4094210332, 2975424957 },
  423. { "compress_from_channels", 279105990, 4212890953 },
  424. { "load_svg_from_buffer", 1822513750, 311853421 },
  425. { "load_svg_from_string", 1461766635, 3254053600 },
  426. });
  427. mappings.insert("ImmediateMesh", {
  428. { "surface_begin", 3716480242, 2794442543 },
  429. });
  430. mappings.insert("ImporterMesh", {
  431. { "add_surface", 4122361985, 1740448849 },
  432. });
  433. mappings.insert("Input", {
  434. { "get_vector", 1517139831, 2479607902 },
  435. { "start_joy_vibration", 1890603622, 2576575033 },
  436. { "action_press", 573731101, 1713091165 },
  437. #ifdef REAL_T_IS_DOUBLE
  438. { "set_custom_mouse_cursor", 3489634142, 1277868338 },
  439. #else
  440. { "set_custom_mouse_cursor", 3489634142, 703945977 },
  441. #endif
  442. });
  443. mappings.insert("InputEvent", {
  444. { "is_match", 3392494811, 1754951977 },
  445. #ifdef REAL_T_IS_DOUBLE
  446. { "xformed_by", 2747409789, 3242949850 },
  447. #else
  448. { "xformed_by", 2747409789, 1282766827 },
  449. #endif
  450. });
  451. mappings.insert("InputMap", {
  452. { "add_action", 573731101, 4100757082 },
  453. });
  454. mappings.insert("ItemList", {
  455. { "add_item", 4086250691, 359861678 },
  456. { "add_icon_item", 3332687421, 4256579627 },
  457. { "get_item_rect", 1501513492, 159227807 },
  458. { "select", 4023243586, 972357352 },
  459. });
  460. mappings.insert("JSON", {
  461. { "stringify", 2656701787, 462733549 },
  462. });
  463. mappings.insert("JavaScriptBridge", {
  464. { "download_buffer", 4123979296, 3352272093 },
  465. });
  466. mappings.insert("Line2D", {
  467. { "add_point", 468506575, 2654014372 },
  468. });
  469. mappings.insert("MultiplayerAPI", {
  470. { "rpc", 1833408346, 2077486355 },
  471. });
  472. mappings.insert("NativeMenu", {
  473. { "add_item", 2553375659, 980552939 },
  474. { "add_check_item", 2553375659, 980552939 },
  475. { "add_icon_item", 2987595282, 1372188274 },
  476. { "add_icon_check_item", 2987595282, 1372188274 },
  477. { "add_radio_check_item", 2553375659, 980552939 },
  478. { "add_icon_radio_check_item", 2987595282, 1372188274 },
  479. { "add_multistate_item", 1558592568, 2674635658 },
  480. });
  481. mappings.insert("NavigationMeshGenerator", {
  482. { "parse_source_geometry_data", 3703028813, 3172802542 },
  483. { "parse_source_geometry_data", 685862123, 3172802542 },
  484. { "bake_from_source_geometry_data", 3669016597, 1286748856 },
  485. { "bake_from_source_geometry_data", 2469318639, 1286748856 },
  486. });
  487. mappings.insert("NavigationServer2D", {
  488. { "map_get_path", 56240621, 3146466012 },
  489. { "parse_source_geometry_data", 1176164995, 1766905497 },
  490. { "bake_from_source_geometry_data", 2909414286, 2179660022 },
  491. { "bake_from_source_geometry_data_async", 2909414286, 2179660022 },
  492. });
  493. mappings.insert("NavigationServer3D", {
  494. { "map_get_path", 2121045993, 1187418690 },
  495. { "parse_source_geometry_data", 3703028813, 3172802542 },
  496. { "parse_source_geometry_data", 685862123, 3172802542 },
  497. { "bake_from_source_geometry_data", 3669016597, 1286748856 },
  498. { "bake_from_source_geometry_data", 2469318639, 1286748856 },
  499. { "bake_from_source_geometry_data_async", 3669016597, 1286748856 },
  500. { "bake_from_source_geometry_data_async", 2469318639, 1286748856 },
  501. });
  502. mappings.insert("Node", {
  503. { "add_child", 3070154285, 3863233950 },
  504. { "reparent", 2570952461, 3685795103 },
  505. { "find_child", 4253159453, 2008217037 },
  506. { "find_children", 1585018254, 2560337219 },
  507. { "propagate_call", 1667910434, 1871007965 },
  508. { "set_multiplayer_authority", 4023243586, 972357352 },
  509. });
  510. mappings.insert("Node3D", {
  511. #ifdef REAL_T_IS_DOUBLE
  512. { "look_at", 136915519, 819337406 },
  513. { "look_at_from_position", 4067663783, 1809580162 },
  514. #else
  515. { "look_at", 3123400617, 2882425029 },
  516. { "look_at_from_position", 4067663783, 2086826090 },
  517. #endif
  518. });
  519. mappings.insert("Noise", {
  520. { "get_image", 2569233413, 3180683109 },
  521. { "get_seamless_image", 2210827790, 2770743602 },
  522. { "get_image_3d", 2358868431, 3977814329 },
  523. { "get_seamless_image_3d", 3328694319, 451006340 },
  524. });
  525. mappings.insert("OS", {
  526. { "alert", 233059325, 1783970740 },
  527. { "get_system_font_path", 2262142305, 626580860 },
  528. { "get_system_font_path_for_text", 3824042574, 197317981 },
  529. { "execute", 2881709059, 1488299882 },
  530. { "shell_show_in_file_manager", 885841341, 3565188097 },
  531. { "set_restart_on_exit", 611198603, 3331453935 },
  532. { "get_system_dir", 1965199849, 3073895123 },
  533. });
  534. mappings.insert("Object", {
  535. { "add_user_signal", 3780025912, 85656714 },
  536. { "connect", 1469446357, 1518946055 },
  537. { "tr", 2475554935, 1195764410 },
  538. { "tr_n", 4021311862, 162698058 },
  539. });
  540. mappings.insert("OptionButton", {
  541. { "add_item", 3043792800, 2697778442 },
  542. { "add_icon_item", 3944051090, 3781678508 },
  543. });
  544. mappings.insert("PCKPacker", {
  545. { "pck_start", 3232891339, 508410629 },
  546. });
  547. mappings.insert("PacketPeerDTLS", {
  548. { "connect_to_peer", 1801538152, 2880188099 },
  549. });
  550. mappings.insert("PacketPeerUDP", {
  551. { "bind", 4290438434, 4051239242 },
  552. });
  553. mappings.insert("Performance", {
  554. { "add_custom_monitor", 2865980031, 4099036814 },
  555. });
  556. mappings.insert("PhysicalBone3D", {
  557. #ifdef REAL_T_IS_DOUBLE
  558. { "apply_impulse", 1002852006, 2485728502 },
  559. #else
  560. { "apply_impulse", 1002852006, 2754756483 },
  561. #endif
  562. });
  563. mappings.insert("PhysicsBody2D", {
  564. { "move_and_collide", 1529961754, 3681923724 },
  565. { "test_move", 1369208982, 3324464701 },
  566. });
  567. mappings.insert("PhysicsBody3D", {
  568. { "move_and_collide", 2825704414, 3208792678 },
  569. { "test_move", 680299713, 2481691619 },
  570. });
  571. mappings.insert("PhysicsDirectBodyState2D", {
  572. #ifdef REAL_T_IS_DOUBLE
  573. { "apply_impulse", 496058220, 1271588277 },
  574. { "apply_force", 496058220, 1271588277 },
  575. { "add_constant_force", 496058220, 1271588277 },
  576. #else
  577. { "apply_impulse", 496058220, 4288681949 },
  578. { "apply_force", 496058220, 4288681949 },
  579. { "add_constant_force", 496058220, 4288681949 },
  580. #endif
  581. });
  582. mappings.insert("PhysicsDirectBodyState3D", {
  583. #ifdef REAL_T_IS_DOUBLE
  584. { "apply_impulse", 1002852006, 2485728502 },
  585. { "apply_force", 1002852006, 2485728502 },
  586. { "add_constant_force", 1002852006, 2485728502 },
  587. #else
  588. { "apply_impulse", 1002852006, 2754756483 },
  589. { "apply_force", 1002852006, 2754756483 },
  590. { "add_constant_force", 1002852006, 2754756483 },
  591. #endif
  592. });
  593. mappings.insert("PhysicsDirectSpaceState2D", {
  594. { "intersect_point", 3278207904, 2118456068 },
  595. { "intersect_shape", 3803848594, 2488867228 },
  596. { "collide_shape", 3803848594, 2488867228 },
  597. });
  598. mappings.insert("PhysicsDirectSpaceState3D", {
  599. { "intersect_point", 45993382, 975173756 },
  600. { "intersect_shape", 550215980, 3762137681 },
  601. { "collide_shape", 550215980, 3762137681 },
  602. });
  603. mappings.insert("PhysicsRayQueryParameters2D", {
  604. { "create", 1118143851, 3196569324 },
  605. });
  606. mappings.insert("PhysicsRayQueryParameters3D", {
  607. { "create", 680321959, 3110599579 },
  608. });
  609. mappings.insert("PhysicsServer2D", {
  610. #ifdef REAL_T_IS_DOUBLE
  611. { "area_add_shape", 754862190, 3597527023 },
  612. { "body_add_shape", 754862190, 3597527023 },
  613. { "body_apply_impulse", 34330743, 1124035137 },
  614. { "body_apply_force", 34330743, 1124035137 },
  615. { "body_add_constant_force", 34330743, 1124035137 },
  616. #else
  617. { "area_add_shape", 754862190, 339056240 },
  618. { "body_add_shape", 754862190, 339056240 },
  619. { "body_apply_impulse", 34330743, 205485391 },
  620. { "body_apply_force", 34330743, 205485391 },
  621. { "body_add_constant_force", 34330743, 205485391 },
  622. #endif
  623. { "joint_make_pin", 2288600450, 1612646186 },
  624. { "joint_make_groove", 3573265764, 481430435 },
  625. { "joint_make_damped_spring", 206603952, 1994657646 },
  626. });
  627. mappings.insert("PhysicsServer3D", {
  628. #ifdef REAL_T_IS_DOUBLE
  629. { "area_add_shape", 4040559639, 183938777 },
  630. { "body_add_shape", 4040559639, 183938777 },
  631. { "body_apply_impulse", 110375048, 2238283471 },
  632. { "body_apply_force", 110375048, 2238283471 },
  633. { "body_add_constant_force", 110375048, 2238283471 },
  634. #else
  635. { "area_add_shape", 4040559639, 3711419014 },
  636. { "body_add_shape", 4040559639, 3711419014 },
  637. { "body_apply_impulse", 110375048, 390416203 },
  638. { "body_apply_force", 110375048, 390416203 },
  639. { "body_add_constant_force", 110375048, 390416203 },
  640. #endif
  641. });
  642. mappings.insert("PopupMenu", {
  643. { "add_item", 3224536192, 3674230041 },
  644. { "add_icon_item", 1200674553, 1086190128 },
  645. { "add_check_item", 3224536192, 3674230041 },
  646. { "add_icon_check_item", 1200674553, 1086190128 },
  647. { "add_radio_check_item", 3224536192, 3674230041 },
  648. { "add_icon_radio_check_item", 1200674553, 1086190128 },
  649. { "add_multistate_item", 1585218420, 150780458 },
  650. { "add_shortcut", 2482211467, 3451850107 },
  651. { "add_icon_shortcut", 3060251822, 2997871092 },
  652. { "add_check_shortcut", 2168272394, 1642193386 },
  653. { "add_icon_check_shortcut", 68101841, 3856247530 },
  654. { "add_radio_check_shortcut", 2168272394, 1642193386 },
  655. { "add_icon_radio_check_shortcut", 68101841, 3856247530 },
  656. { "add_submenu_item", 3728518296, 2979222410 },
  657. // Pre-existing compatibility hashes.
  658. { "add_icon_shortcut", 68101841, 3856247530 },
  659. { "add_shortcut", 2168272394, 1642193386 },
  660. });
  661. mappings.insert("PortableCompressedTexture2D", {
  662. { "create_from_image", 97251393, 3679243433 },
  663. });
  664. mappings.insert("ProjectSettings", {
  665. { "load_resource_pack", 3001721055, 708980503 },
  666. });
  667. mappings.insert("RDShaderFile", {
  668. { "bake_from_source_geometry_data_async", 2469318639, 1286748856 },
  669. { "set_bytecode", 1558064255, 1526857008 },
  670. { "get_spirv", 3340165340, 2689310080 },
  671. });
  672. mappings.insert("RegEx", {
  673. { "search", 4087180739, 3365977994 },
  674. { "search_all", 3354100289, 849021363 },
  675. { "sub", 758293621, 54019702 },
  676. });
  677. mappings.insert("RenderingDevice", {
  678. { "texture_create", 3011278298, 3709173589 },
  679. { "texture_create_shared_from_slice", 864132525, 1808971279 },
  680. { "texture_update", 2736912341, 2096463824 },
  681. { "texture_copy", 3741367532, 2339493201 },
  682. { "texture_clear", 3423681478, 3396867530 },
  683. { "texture_resolve_multisample", 2126834943, 594679454 },
  684. { "framebuffer_format_create", 2635475316, 697032759 },
  685. { "framebuffer_format_create_multipass", 1992489524, 2647479094 },
  686. { "framebuffer_format_get_texture_samples", 1036806638, 4223391010 },
  687. { "framebuffer_create", 1884747791, 3284231055 },
  688. { "framebuffer_create_multipass", 452534725, 1750306695 },
  689. { "framebuffer_create_empty", 382373098, 3058360618 },
  690. { "vertex_buffer_create", 3491282828, 3410049843 },
  691. { "vertex_array_create", 3137892244, 3799816279 },
  692. { "index_buffer_create", 975915977, 3935920523 },
  693. { "shader_compile_spirv_from_source", 3459523685, 1178973306 },
  694. { "shader_compile_binary_from_spirv", 1395027180, 134910450 },
  695. { "shader_create_from_spirv", 3297482566, 342949005 },
  696. { "shader_create_from_bytecode", 2078349841, 1687031350 },
  697. { "uniform_buffer_create", 1453158401, 34556762 },
  698. { "storage_buffer_create", 1173156076, 2316365934 },
  699. { "texture_buffer_create", 2344087557, 1470338698 },
  700. { "buffer_update", 652628289, 3793150683 },
  701. { "buffer_clear", 1645170096, 2797041220 },
  702. { "buffer_get_data", 125363422, 3101830688 },
  703. { "render_pipeline_create", 2911419500, 2385451958 },
  704. { "compute_pipeline_create", 403593840, 1448838280 },
  705. { "draw_list_draw", 3710874499, 4230067973 },
  706. #ifdef REAL_T_IS_DOUBLE
  707. { "draw_list_begin", 4252992020, 848735039 },
  708. { "draw_list_begin_split", 832527510, 2228306807 },
  709. { "draw_list_enable_scissor", 338791288, 730833978 },
  710. #else
  711. { "draw_list_begin", 4252992020, 2468082605 },
  712. { "draw_list_begin_split", 832527510, 2406300660 },
  713. { "draw_list_enable_scissor", 338791288, 244650101 },
  714. #endif
  715. });
  716. mappings.insert("RenderingServer", {
  717. { "texture_rd_create", 3291180269, 1434128712 },
  718. { "shader_set_default_texture_parameter", 3864903085, 4094001817 },
  719. { "shader_get_default_texture_parameter", 2523186822, 1464608890 },
  720. { "mesh_create_from_surfaces", 4007581507, 4291747531 },
  721. { "mesh_add_surface_from_arrays", 1247008646, 2342446560 },
  722. { "environment_set_ambient_light", 491659071, 1214961493 },
  723. { "instances_cull_aabb", 2031554939, 2570105777 },
  724. { "instances_cull_ray", 3388524336, 2208759584 },
  725. { "instances_cull_convex", 3690700105, 2488539944 },
  726. { "canvas_item_add_line", 2843922985, 1819681853 },
  727. { "canvas_item_add_polyline", 3438017257, 3098767073 },
  728. { "canvas_item_add_multiline", 3176074788, 2088642721 },
  729. { "canvas_item_add_texture_rect", 3205360868, 324864032 },
  730. { "canvas_item_add_msdf_texture_rect_region", 349157222, 97408773 },
  731. { "canvas_item_add_texture_rect_region", 2782979504, 485157892 },
  732. { "canvas_item_add_nine_patch", 904428547, 389957886 },
  733. { "canvas_item_add_polygon", 2907936855, 3580000528 },
  734. { "canvas_item_add_triangle_array", 749685193, 660261329 },
  735. { "canvas_item_add_multimesh", 1541595251, 2131855138 },
  736. { "canvas_item_add_animation_slice", 4107531031, 2646834499 },
  737. { "canvas_item_set_canvas_group_mode", 41973386, 3973586316 },
  738. { "set_boot_image", 2244367877, 3759744527 },
  739. #ifdef REAL_T_IS_DOUBLE
  740. { "viewport_attach_to_screen", 1410474027, 2248302004 },
  741. { "canvas_item_set_custom_rect", 2180266943, 1134449082 },
  742. { "canvas_item_add_mesh", 3877492181, 3024949314 },
  743. #else
  744. { "viewport_attach_to_screen", 1278520651, 1062245816 },
  745. { "canvas_item_set_custom_rect", 2180266943, 1333997032 },
  746. { "canvas_item_add_mesh", 3548053052, 316450961 },
  747. #endif
  748. });
  749. mappings.insert("ResourceLoader", {
  750. { "load_threaded_request", 1939848623, 3614384323 },
  751. { "load_threaded_get_status", 3931021148, 4137685479 },
  752. { "load", 2622212233, 3358495409 },
  753. { "exists", 2220807150, 4185558881 },
  754. });
  755. mappings.insert("ResourceSaver", {
  756. { "save", 2303056517, 2983274697 },
  757. });
  758. mappings.insert("RichTextLabel", {
  759. { "push_font", 814287596, 2347424842 },
  760. { "push_paragraph", 3218895358, 3089306873 },
  761. { "push_list", 4036303897, 3017143144 },
  762. { "push_table", 1125058220, 2623499273 },
  763. { "set_table_column_expand", 4132157579, 2185176273 },
  764. #ifdef REAL_T_IS_DOUBLE
  765. { "add_image", 3346058748, 1507062345 },
  766. { "push_dropcap", 981432822, 763534173 },
  767. #else
  768. { "add_image", 3346058748, 3580801207 },
  769. { "push_dropcap", 311501835, 4061635501 },
  770. #endif
  771. });
  772. mappings.insert("RigidBody2D", {
  773. #ifdef REAL_T_IS_DOUBLE
  774. { "apply_impulse", 496058220, 1271588277 },
  775. { "apply_force", 496058220, 1271588277 },
  776. { "add_constant_force", 496058220, 1271588277 },
  777. #else
  778. { "apply_impulse", 496058220, 4288681949 },
  779. { "apply_force", 496058220, 4288681949 },
  780. { "add_constant_force", 496058220, 4288681949 },
  781. #endif
  782. });
  783. mappings.insert("RigidBody3D", {
  784. #ifdef REAL_T_IS_DOUBLE
  785. { "apply_impulse", 1002852006, 2485728502 },
  786. { "apply_force", 1002852006, 2485728502 },
  787. { "add_constant_force", 1002852006, 2485728502 },
  788. #else
  789. { "apply_impulse", 1002852006, 2754756483 },
  790. { "apply_force", 1002852006, 2754756483 },
  791. { "add_constant_force", 1002852006, 2754756483 },
  792. #endif
  793. });
  794. mappings.insert("SceneMultiplayer", {
  795. { "send_bytes", 2742700601, 1307428718 },
  796. });
  797. mappings.insert("SceneReplicationConfig", {
  798. { "add_property", 3818401521, 4094619021 },
  799. });
  800. mappings.insert("SceneTree", {
  801. { "create_timer", 1780978058, 2709170273 },
  802. });
  803. mappings.insert("ScriptCreateDialog", {
  804. { "config", 4210001628, 869314288 },
  805. });
  806. mappings.insert("Shader", {
  807. { "set_default_texture_parameter", 1628453603, 2750740428 },
  808. { "get_default_texture_parameter", 3823812009, 3090538643 },
  809. });
  810. mappings.insert("Skeleton3D", {
  811. { "set_bone_enabled", 4023243586, 972357352 },
  812. });
  813. mappings.insert("SpriteFrames", {
  814. { "add_frame", 407562921, 1351332740 },
  815. { "set_frame", 3155743884, 56804795 },
  816. });
  817. mappings.insert("StreamPeerTCP", {
  818. { "bind", 4025329869, 3167955072 },
  819. });
  820. mappings.insert("StreamPeerTLS", {
  821. { "connect_to_stream", 1325480781, 57169517 },
  822. });
  823. mappings.insert("SurfaceTool", {
  824. { "add_triangle_fan", 297960074, 2235017613 },
  825. { "generate_lod", 1894448909, 1938056459 },
  826. });
  827. mappings.insert("TCPServer", {
  828. { "listen", 4025329869, 3167955072 },
  829. });
  830. mappings.insert("TextEdit", {
  831. { "get_line_width", 3294126239, 688195400 },
  832. { "insert_text_at_caret", 3043792800, 2697778442 },
  833. { "get_line_column_at_pos", 850652858, 239517838 },
  834. { "is_mouse_over_selection", 1099474134, 1840282309 },
  835. { "set_caret_line", 1413195636, 1302582944 },
  836. { "set_caret_column", 1071284433, 3796796178 },
  837. { "set_selection_mode", 2920622473, 1443345937 },
  838. { "select", 4269665324, 2560984452 },
  839. { "get_scroll_pos_for_line", 3274652423, 3929084198 },
  840. { "set_line_as_first_visible", 3023605688, 2230941749 },
  841. { "set_line_as_center_visible", 3023605688, 2230941749 },
  842. { "set_line_as_last_visible", 3023605688, 2230941749 },
  843. });
  844. mappings.insert("TextLine", {
  845. { "add_string", 867188035, 621426851 },
  846. { "add_object", 735420116, 1316529304 },
  847. { "resize_object", 960819067, 2095776372 },
  848. { "draw", 1164457837, 856975658 },
  849. { "draw_outline", 1364491366, 1343401456 },
  850. });
  851. mappings.insert("TextParagraph", {
  852. #ifdef REAL_T_IS_DOUBLE
  853. { "set_dropcap", 2613124475, 2897844600 },
  854. #else
  855. { "set_dropcap", 2613124475, 2498990330 },
  856. #endif
  857. { "add_string", 867188035, 621426851 },
  858. { "add_object", 735420116, 1316529304 },
  859. { "resize_object", 960819067, 2095776372 },
  860. { "draw", 367324453, 1567802413 },
  861. { "draw_outline", 2159523405, 1893131224 },
  862. { "draw_line", 3963848920, 1242169894 },
  863. { "draw_line_outline", 1814903311, 2664926980 },
  864. { "draw_dropcap", 1164457837, 856975658 },
  865. { "draw_dropcap_outline", 1364491366, 1343401456 },
  866. });
  867. mappings.insert("TextServer", {
  868. { "font_draw_glyph", 1821196351, 1339057948 },
  869. { "font_draw_glyph_outline", 1124898203, 2626165733 },
  870. { "shaped_text_set_direction", 2616949700, 1551430183 },
  871. { "shaped_text_set_orientation", 104095128, 3019609126 },
  872. { "shaped_text_add_string", 2621279422, 623473029 },
  873. { "shaped_text_add_object", 2838446185, 3664424789 },
  874. { "shaped_text_resize_object", 2353789835, 790361552 },
  875. { "shaped_set_span_update_font", 1578983057, 2022725822 },
  876. { "shaped_text_fit_to_width", 603718830, 530670926 },
  877. { "shaped_text_get_line_breaks_adv", 4206849830, 2376991424 },
  878. { "shaped_text_get_line_breaks", 303410369, 2651359741 },
  879. { "shaped_text_get_word_breaks", 3299477123, 185957063 },
  880. { "shaped_text_overrun_trim_to_width", 1572579718, 2723146520 },
  881. { "shaped_text_draw", 70679950, 880389142 },
  882. { "shaped_text_draw_outline", 2673671346, 2559184194 },
  883. { "format_number", 2305636099, 2664628024 },
  884. { "parse_number", 2305636099, 2664628024 },
  885. { "string_get_word_breaks", 1398910359, 581857818 },
  886. { "string_get_character_breaks", 1586579831, 2333794773 },
  887. { "string_to_upper", 2305636099, 2664628024 },
  888. { "string_to_lower", 2305636099, 2664628024 },
  889. });
  890. mappings.insert("Texture2D", {
  891. { "draw", 1115460088, 2729649137 },
  892. { "draw_rect", 575156982, 3499451691 },
  893. { "draw_rect_region", 1066564656, 2963678660 },
  894. });
  895. mappings.insert("Thread", {
  896. { "start", 2779832528, 1327203254 },
  897. });
  898. mappings.insert("TileMap", {
  899. { "set_cell", 1732664643, 966713560 },
  900. { "set_cells_terrain_connect", 3072115677, 3578627656 },
  901. { "set_cells_terrain_path", 3072115677, 3578627656 },
  902. { "get_used_cells_by_id", 4152068407, 2931012785 },
  903. });
  904. mappings.insert("TileMapPattern", {
  905. { "set_cell", 634000503, 2224802556 },
  906. });
  907. mappings.insert("TileSet", {
  908. { "add_source", 276991387, 1059186179 },
  909. { "add_terrain", 3023605688, 1230568737 },
  910. { "add_pattern", 3009264082, 763712015 },
  911. });
  912. mappings.insert("TileSetAtlasSource", {
  913. { "create_tile", 1583819816, 190528769 },
  914. { "move_tile_in_atlas", 1375626516, 3870111920 },
  915. { "has_room_for_tile", 4182444377, 3018597268 },
  916. { "create_alternative_tile", 3531100812, 2226298068 },
  917. { "get_tile_texture_region", 1321423751, 241857547 },
  918. });
  919. mappings.insert("TileSetScenesCollectionSource", {
  920. { "create_scene_tile", 2633389122, 1117465415 },
  921. });
  922. mappings.insert("Translation", {
  923. { "add_message", 971803314, 3898530326 },
  924. { "add_plural_message", 360316719, 2356982266 },
  925. { "get_message", 58037827, 1829228469 },
  926. { "get_plural_message", 1333931916, 229954002 },
  927. { "erase_message", 3919944288, 3959009644 },
  928. });
  929. mappings.insert("TranslationServer", {
  930. { "translate", 58037827, 1829228469 },
  931. { "translate_plural", 1333931916, 229954002 },
  932. });
  933. mappings.insert("Tree", {
  934. { "get_item_area_rect", 1235226180, 47968679 },
  935. });
  936. mappings.insert("TreeItem", {
  937. { "propagate_check", 4023243586, 972357352 },
  938. { "add_button", 1507727907, 1688223362 },
  939. });
  940. mappings.insert("UDPServer", {
  941. { "listen", 4025329869, 3167955072 },
  942. });
  943. mappings.insert("UPNP", {
  944. { "add_port_mapping", 3358934458, 818314583 },
  945. { "delete_port_mapping", 760296170, 3444187325 },
  946. });
  947. mappings.insert("UPNPDevice", {
  948. { "add_port_mapping", 3358934458, 818314583 },
  949. { "delete_port_mapping", 760296170, 3444187325 },
  950. });
  951. mappings.insert("UndoRedo", {
  952. { "create_action", 3900135403, 3171901514 },
  953. });
  954. mappings.insert("VideoStreamPlayback", {
  955. { "mix_audio", 1369271885, 93876830 },
  956. });
  957. mappings.insert("WebRTCMultiplayerPeer", {
  958. { "create_client", 1777354631, 2641732907 },
  959. { "create_mesh", 1777354631, 2641732907 },
  960. { "add_peer", 2555866323, 4078953270 },
  961. });
  962. mappings.insert("WebRTCPeerConnection", {
  963. { "create_data_channel", 3997447457, 1288557393 },
  964. });
  965. mappings.insert("WebSocketMultiplayerPeer", {
  966. { "create_client", 3097527179, 1966198364 },
  967. { "create_server", 337374795, 2400822951 },
  968. });
  969. mappings.insert("WebSocketPeer", {
  970. { "connect_to_url", 3097527179, 1966198364 },
  971. { "send", 3440492527, 2780360567 },
  972. });
  973. mappings.insert("Window", {
  974. { "get_theme_icon", 2336455395, 3163973443 },
  975. { "get_theme_stylebox", 2759935355, 604739069 },
  976. { "get_theme_font", 387378635, 2826986490 },
  977. { "get_theme_font_size", 229578101, 1327056374 },
  978. { "get_theme_color", 2377051548, 2798751242 },
  979. { "get_theme_constant", 229578101, 1327056374 },
  980. { "has_theme_icon", 1187511791, 866386512 },
  981. { "has_theme_stylebox", 1187511791, 866386512 },
  982. { "has_theme_font", 1187511791, 866386512 },
  983. { "has_theme_font_size", 1187511791, 866386512 },
  984. { "has_theme_color", 1187511791, 866386512 },
  985. { "has_theme_constant", 1187511791, 866386512 },
  986. { "popup_exclusive", 1728044812, 2134721627 },
  987. { "popup_exclusive_centered", 2561668109, 3357594017 },
  988. { "popup_exclusive_centered_ratio", 4257659513, 2284776287 },
  989. { "popup_exclusive_centered_clamped", 224798062, 2612708785 },
  990. });
  991. mappings.insert("WorkerThreadPool", {
  992. { "add_task", 3976347598, 3745067146 },
  993. { "add_group_task", 2377228549, 1801953219 },
  994. });
  995. mappings.insert("ZIPPacker", {
  996. { "open", 3715508516, 1936816515 },
  997. });
  998. mappings.insert("ZIPReader", {
  999. { "read_file", 156385007, 740857591 },
  1000. { "file_exists", 1676256, 35364943 },
  1001. });
  1002. // clang-format on
  1003. }
  1004. void GDExtensionCompatHashes::finalize() {
  1005. mappings.clear();
  1006. }
  1007. #endif // DISABLE_DEPRECATED