From f1d501f97749fd70f590a3e82b81e55d6cf1d2d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Thu, 1 Dec 2022 18:17:11 +0100 Subject: [PATCH] headers: Sync with upstream commit 0ff874291 (4.0-beta7) --- godot-headers/extension_api.json | 649 +++++++++++++++++++------------ 1 file changed, 391 insertions(+), 258 deletions(-) diff --git a/godot-headers/extension_api.json b/godot-headers/extension_api.json index b09ef2ef..cfdb0232 100644 --- a/godot-headers/extension_api.json +++ b/godot-headers/extension_api.json @@ -3,9 +3,9 @@ "version_major": 4, "version_minor": 0, "version_patch": 0, - "version_status": "beta6", + "version_status": "beta7", "version_build": "official", - "version_full_name": "Godot Engine v4.0.beta6.official" + "version_full_name": "Godot Engine v4.0.beta7.official" }, "builtin_class_sizes": [ { @@ -4542,6 +4542,57 @@ } ] }, + { + "name": "snapped", + "return_type": "Variant", + "category": "math", + "is_vararg": false, + "hash": 459914704, + "arguments": [ + { + "name": "x", + "type": "Variant" + }, + { + "name": "step", + "type": "Variant" + } + ] + }, + { + "name": "snappedf", + "return_type": "float", + "category": "math", + "is_vararg": false, + "hash": 92296394, + "arguments": [ + { + "name": "x", + "type": "float" + }, + { + "name": "step", + "type": "float" + } + ] + }, + { + "name": "snappedi", + "return_type": "int", + "category": "math", + "is_vararg": false, + "hash": 3570758393, + "arguments": [ + { + "name": "x", + "type": "float" + }, + { + "name": "step", + "type": "int" + } + ] + }, { "name": "pow", "return_type": "float", @@ -4684,23 +4735,6 @@ } ] }, - { - "name": "snapped", - "return_type": "float", - "category": "math", - "is_vararg": false, - "hash": 92296394, - "arguments": [ - { - "name": "x", - "type": "float" - }, - { - "name": "step", - "type": "float" - } - ] - }, { "name": "lerp", "return_type": "Variant", @@ -4912,6 +4946,35 @@ } ] }, + { + "name": "bezier_derivative", + "return_type": "float", + "category": "math", + "is_vararg": false, + "hash": 1090965791, + "arguments": [ + { + "name": "start", + "type": "float" + }, + { + "name": "control_1", + "type": "float" + }, + { + "name": "control_2", + "type": "float" + }, + { + "name": "end", + "type": "float" + }, + { + "name": "t", + "type": "float" + } + ] + }, { "name": "lerp_angle", "return_type": "float", @@ -9133,6 +9196,32 @@ } ] }, + { + "name": "bezier_derivative", + "return_type": "Vector2", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 193522989, + "arguments": [ + { + "name": "control_1", + "type": "Vector2" + }, + { + "name": "control_2", + "type": "Vector2" + }, + { + "name": "end", + "type": "Vector2" + }, + { + "name": "t", + "type": "float" + } + ] + }, { "name": "max_axis_index", "return_type": "int", @@ -9647,6 +9736,20 @@ "type": "Vector2i" } ] + }, + { + "name": "snapped", + "return_type": "Vector2i", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1735278196, + "arguments": [ + { + "name": "step", + "type": "Vector2i" + } + ] } ], "constructors": [ @@ -10858,6 +10961,32 @@ } ] }, + { + "name": "bezier_derivative", + "return_type": "Vector3", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2597922253, + "arguments": [ + { + "name": "control_1", + "type": "Vector3" + }, + { + "name": "control_2", + "type": "Vector3" + }, + { + "name": "end", + "type": "Vector3" + }, + { + "name": "t", + "type": "float" + } + ] + }, { "name": "move_toward", "return_type": "Vector3", @@ -11377,6 +11506,20 @@ "type": "Vector3i" } ] + }, + { + "name": "snapped", + "return_type": "Vector3i", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1989319750, + "arguments": [ + { + "name": "step", + "type": "Vector3i" + } + ] } ], "constructors": [ @@ -12661,6 +12804,20 @@ "type": "Vector4i" } ] + }, + { + "name": "snapped", + "return_type": "Vector4i", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1181693102, + "arguments": [ + { + "name": "step", + "type": "Vector4i" + } + ] } ], "constructors": [ @@ -17683,20 +17840,6 @@ } ] }, - { - "name": "find_last", - "return_type": "int", - "is_vararg": false, - "is_const": true, - "is_static": false, - "hash": 1481661226, - "arguments": [ - { - "name": "value", - "type": "Variant" - } - ] - }, { "name": "count", "return_type": "int", @@ -25354,34 +25497,6 @@ } ] }, - { - "name": "value_track_get_key_indices", - "is_const": true, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 139121918, - "return_value": { - "type": "PackedInt32Array" - }, - "arguments": [ - { - "name": "track_idx", - "type": "int", - "meta": "int32" - }, - { - "name": "time_sec", - "type": "float", - "meta": "double" - }, - { - "name": "delta", - "type": "float", - "meta": "double" - } - ] - }, { "name": "value_track_interpolate", "is_const": true, @@ -25405,34 +25520,6 @@ } ] }, - { - "name": "method_track_get_key_indices", - "is_const": true, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 139121918, - "return_value": { - "type": "PackedInt32Array" - }, - "arguments": [ - { - "name": "track_idx", - "type": "int", - "meta": "int32" - }, - { - "name": "time_sec", - "type": "float", - "meta": "double" - }, - { - "name": "delta", - "type": "float", - "meta": "double" - } - ] - }, { "name": "method_track_get_name", "is_const": true, @@ -26358,7 +26445,7 @@ "type": "bool" }, { - "name": "seek_root", + "name": "is_external_seeking", "type": "bool" } ] @@ -26529,7 +26616,7 @@ "type": "bool" }, { - "name": "seek_root", + "name": "is_external_seeking", "type": "bool" }, { @@ -26575,7 +26662,7 @@ "type": "bool" }, { - "name": "seek_root", + "name": "is_external_seeking", "type": "bool" }, { @@ -26622,7 +26709,7 @@ "type": "bool" }, { - "name": "seek_root", + "name": "is_external_seeking", "type": "bool" }, { @@ -30217,14 +30304,36 @@ } }, { - "name": "get_root_motion_transform", + "name": "get_root_motion_position", "is_const": true, "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 3229777777, + "hash": 3360562783, "return_value": { - "type": "Transform3D" + "type": "Vector3" + } + }, + { + "name": "get_root_motion_rotation", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1222331677, + "return_value": { + "type": "Quaternion" + } + }, + { + "name": "get_root_motion_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" } }, { @@ -53234,6 +53343,83 @@ "type": "Color" } }, + { + "name": "set_z_index", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "z_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_z_index", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_z_as_relative", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_z_relative", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_y_sort_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_y_sort_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, { "name": "set_draw_behind_parent", "is_const": false, @@ -54738,6 +54924,27 @@ "getter": "get_visibility_layer", "index": -1 }, + { + "type": "int", + "name": "z_index", + "setter": "set_z_index", + "getter": "get_z_index", + "index": -1 + }, + { + "type": "bool", + "name": "z_as_relative", + "setter": "set_z_as_relative", + "getter": "is_z_relative", + "index": -1 + }, + { + "type": "bool", + "name": "y_sort_enabled", + "setter": "set_y_sort_enabled", + "getter": "is_y_sort_enabled", + "index": -1 + }, { "type": "int", "name": "texture_filter", @@ -68474,6 +68681,31 @@ "default_value": "4" } ] + }, + { + "name": "tessellate_even_length", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3915530683, + "return_value": { + "type": "PackedVector3Array" + }, + "arguments": [ + { + "name": "max_stages", + "type": "int", + "meta": "int32", + "default_value": "5" + }, + { + "name": "tolerance_length", + "type": "float", + "meta": "float", + "default_value": "0.2" + } + ] } ], "properties": [ @@ -80702,10 +80934,6 @@ { "name": "options", "type": "Dictionary" - }, - { - "name": "bake_fps", - "type": "int" } ] }, @@ -93068,7 +93296,7 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 151088826, + "hash": 1862991421, "return_value": { "type": "enum::Error" }, @@ -93087,12 +93315,6 @@ "meta": "uint32", "default_value": "0" }, - { - "name": "bake_fps", - "type": "int", - "meta": "int32", - "default_value": "30" - }, { "name": "base_path", "type": "String", @@ -93106,7 +93328,7 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 3407700015, + "hash": 2818062664, "return_value": { "type": "enum::Error" }, @@ -93128,12 +93350,6 @@ "type": "int", "meta": "uint32", "default_value": "0" - }, - { - "name": "bake_fps", - "type": "int", - "meta": "int32", - "default_value": "30" } ] }, @@ -93143,7 +93359,7 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 2536678188, + "hash": 374125375, "return_value": { "type": "enum::Error" }, @@ -93161,12 +93377,6 @@ "type": "int", "meta": "uint32", "default_value": "0" - }, - { - "name": "bake_fps", - "type": "int", - "meta": "int32", - "default_value": "30" } ] }, @@ -93176,7 +93386,7 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 1603623551, + "hash": 3417515375, "return_value": { "type": "Node" }, @@ -93187,9 +93397,14 @@ }, { "name": "bake_fps", - "type": "int", - "meta": "int32", + "type": "float", + "meta": "float", "default_value": "30" + }, + { + "name": "trimming", + "type": "bool", + "default_value": "false" } ] }, @@ -93249,6 +93464,20 @@ "default_value": "false" } ] + }, + { + "name": "unregister_gltf_document_extension", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 2684415758, + "arguments": [ + { + "name": "extension", + "type": "GLTFDocumentExtension" + } + ] } ] }, @@ -95353,7 +95582,7 @@ "is_virtual": false, "hash": 2915620761, "return_value": { - "type": "typedarray::BaseMaterial3D" + "type": "typedarray::Material" } }, { @@ -95366,7 +95595,7 @@ "arguments": [ { "name": "materials", - "type": "typedarray::BaseMaterial3D" + "type": "typedarray::Material" } ] }, @@ -122149,9 +122378,9 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 3214262478, + "hash": 4160111210, "return_value": { - "type": "Shape3D" + "type": "ConcavePolygonShape3D" } }, { @@ -122160,9 +122389,9 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 1330343779, + "hash": 2529984628, "return_value": { - "type": "Shape3D" + "type": "ConvexPolygonShape3D" }, "arguments": [ { @@ -133968,6 +134197,14 @@ } ] }, + { + "name": "print_orphan_nodes", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 3218959716 + }, { "name": "add_sibling", "is_const": false, @@ -134344,7 +134581,7 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 2147067491, + "hash": 498846349, "return_value": { "type": "NodePath" }, @@ -134352,6 +134589,11 @@ { "name": "node", "type": "Node" + }, + { + "name": "use_unique_path", + "type": "bool", + "default_value": "false" } ] }, @@ -134796,14 +135038,6 @@ "type": "bool" } }, - { - "name": "print_orphan_nodes", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 3218959716 - }, { "name": "set_display_folded", "is_const": false, @@ -135695,83 +135929,6 @@ } ] }, - { - "name": "set_z_index", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 1286410249, - "arguments": [ - { - "name": "z_index", - "type": "int", - "meta": "int32" - } - ] - }, - { - "name": "get_z_index", - "is_const": true, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 3905245786, - "return_value": { - "type": "int", - "meta": "int32" - } - }, - { - "name": "set_z_as_relative", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 2586408642, - "arguments": [ - { - "name": "enable", - "type": "bool" - } - ] - }, - { - "name": "is_z_relative", - "is_const": true, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 36873697, - "return_value": { - "type": "bool" - } - }, - { - "name": "set_y_sort_enabled", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 2586408642, - "arguments": [ - { - "name": "enabled", - "type": "bool" - } - ] - }, - { - "name": "is_y_sort_enabled", - "is_const": true, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 36873697, - "return_value": { - "type": "bool" - } - }, { "name": "get_relative_transform_to_parent", "is_const": true, @@ -135860,27 +136017,6 @@ "setter": "set_global_transform", "getter": "get_global_transform", "index": -1 - }, - { - "type": "int", - "name": "z_index", - "setter": "set_z_index", - "getter": "get_z_index", - "index": -1 - }, - { - "type": "bool", - "name": "z_as_relative", - "setter": "set_z_as_relative", - "getter": "is_z_relative", - "index": -1 - }, - { - "type": "bool", - "name": "y_sort_enabled", - "setter": "set_y_sort_enabled", - "getter": "is_y_sort_enabled", - "index": -1 } ] }, @@ -150560,7 +150696,7 @@ "arguments": [ { "name": "exclude", - "type": "Array" + "type": "typedarray::RID" } ] }, @@ -150572,7 +150708,7 @@ "is_virtual": false, "hash": 3995934104, "return_value": { - "type": "Array" + "type": "typedarray::RID" } }, { @@ -163139,7 +163275,7 @@ "arguments": [ { "name": "exclude", - "type": "Array" + "type": "typedarray::RID" } ] }, @@ -163151,7 +163287,7 @@ "is_virtual": false, "hash": 3995934104, "return_value": { - "type": "Array" + "type": "typedarray::RID" } }, { @@ -163413,7 +163549,7 @@ "is_virtual": false, "hash": 3995934104, "return_value": { - "type": "Array" + "type": "typedarray::int" } }, { @@ -163426,7 +163562,7 @@ "arguments": [ { "name": "exclude_list", - "type": "Array" + "type": "typedarray::int" } ] }, @@ -163652,7 +163788,7 @@ "is_virtual": false, "hash": 3995934104, "return_value": { - "type": "Array" + "type": "typedarray::RID" } }, { @@ -163665,7 +163801,7 @@ "arguments": [ { "name": "exclude_list", - "type": "Array" + "type": "typedarray::RID" } ] }, @@ -163677,7 +163813,7 @@ "is_virtual": false, "hash": 3995934104, "return_value": { - "type": "Array" + "type": "typedarray::int" } }, { @@ -163690,7 +163826,7 @@ "arguments": [ { "name": "exclude_list", - "type": "Array" + "type": "typedarray::int" } ] }, @@ -171806,12 +171942,11 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 1286410249, + "hash": 245642367, "arguments": [ { "name": "p_member", - "type": "int", - "meta": "uint32" + "type": "bitfield::RenderingDevice.TextureUsageBits" } ] }, @@ -171821,10 +171956,9 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 3905245786, + "hash": 1313398998, "return_value": { - "type": "int", - "meta": "uint32" + "type": "bitfield::RenderingDevice.TextureUsageBits" } }, { @@ -176315,7 +176449,7 @@ }, { "name": "TextureUsageBits", - "is_bitfield": false, + "is_bitfield": true, "values": [ { "name": "TEXTURE_USAGE_SAMPLING_BIT", @@ -177435,7 +177569,7 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 1616490902, + "hash": 2592520478, "return_value": { "type": "bool" }, @@ -177446,8 +177580,7 @@ }, { "name": "usage_flags", - "type": "int", - "meta": "uint32" + "type": "bitfield::RenderingDevice.TextureUsageBits" } ] }, @@ -190833,7 +190966,7 @@ "index": -1 }, { - "type": "StringName", + "type": "String", "name": "resource_name", "setter": "set_name", "getter": "get_name",