diff --git a/binding_generator.py b/binding_generator.py index 316bd7b..c1e2a69 100644 --- a/binding_generator.py +++ b/binding_generator.py @@ -276,7 +276,10 @@ def generate_builtin_class_header(builtin_api, size, used_classes, fully_used_cl result.append("#include ") for include in fully_used_classes: - result.append(f"#include ") + if include == "TypedArray": + result.append("#include ") + else: + result.append(f"#include ") if len(fully_used_classes) > 0: result.append("") @@ -860,7 +863,21 @@ def generate_engine_classes_bindings(api, output_dir, use_template_get_node): if type_name.endswith("*"): type_name = type_name[:-1] if is_included(type_name, class_name): - if is_enum(type_name): + if type_name.startswith("typedarray::"): + fully_used_classes.add("TypedArray") + array_type_name = type_name.replace("typedarray::", "") + if array_type_name.startswith("const "): + array_type_name = array_type_name[6:] + if array_type_name.endswith("*"): + array_type_name = array_type_name[:-1] + if is_included(array_type_name, class_name): + if is_enum(array_type_name): + fully_used_classes.add(get_enum_class(array_type_name)) + elif "default_value" in argument: + fully_used_classes.add(array_type_name) + else: + used_classes.add(array_type_name) + elif is_enum(type_name): fully_used_classes.add(get_enum_class(type_name)) elif "default_value" in argument: fully_used_classes.add(type_name) @@ -875,7 +892,21 @@ def generate_engine_classes_bindings(api, output_dir, use_template_get_node): if type_name.endswith("*"): type_name = type_name[:-1] if is_included(type_name, class_name): - if is_enum(type_name): + if type_name.startswith("typedarray::"): + fully_used_classes.add("TypedArray") + array_type_name = type_name.replace("typedarray::", "") + if array_type_name.startswith("const "): + array_type_name = array_type_name[6:] + if array_type_name.endswith("*"): + array_type_name = array_type_name[:-1] + if is_included(array_type_name, class_name): + if is_enum(array_type_name): + fully_used_classes.add(get_enum_class(array_type_name)) + elif is_variant(array_type_name): + fully_used_classes.add(array_type_name) + else: + used_classes.add(array_type_name) + elif is_enum(type_name): fully_used_classes.add(get_enum_class(type_name)) elif is_variant(type_name): fully_used_classes.add(type_name) @@ -988,7 +1019,10 @@ def generate_engine_class_header(class_api, used_classes, fully_used_classes, us result.append("") for included in fully_used_classes: - result.append(f"#include ") + if included == "TypedArray": + result.append("#include ") + else: + result.append(f"#include ") if len(fully_used_classes) > 0: result.append("") @@ -1803,7 +1837,12 @@ def get_enum_name(enum_name: str): def is_variant(type_name): - return type_name == "Variant" or type_name in builtin_classes or type_name == "Nil" + return ( + type_name == "Variant" + or type_name in builtin_classes + or type_name == "Nil" + or type_name.startswith("typedarray::") + ) def is_engine_class(type_name): @@ -1825,6 +1864,8 @@ def is_included(type_name, current_type): Check if a builtin type should be included. This removes Variant and POD types from inclusion, and the current type. """ + if type_name.startswith("typedarray::"): + return True to_include = get_enum_class(type_name) if is_enum(type_name) else type_name if to_include == current_type or is_pod_type(to_include): return False @@ -1850,6 +1891,12 @@ def correct_default_value(value, type_name): return value +def correct_typed_array(type_name): + if type_name.startswith("typedarray::"): + return type_name.replace("typedarray::", "TypedArray<") + ">" + return type_name + + def correct_type(type_name, meta=None): type_conversion = {"float": "double", "int": "int64_t", "Nil": "Variant"} if meta != None: @@ -1861,6 +1908,8 @@ def correct_type(type_name, meta=None): return meta if type_name in type_conversion: return type_conversion[type_name] + if type_name.startswith("typedarray::"): + return type_name.replace("typedarray::", "TypedArray<") + ">" if is_enum(type_name): if is_bitfield(type_name): base_class = get_enum_class(type_name) @@ -1962,6 +2011,8 @@ def get_default_value_for_type(type_name): return "0.0" if type_name == "bool": return "false" + if type_name.startswith("typedarray::"): + return f"{correct_type(type_name)}()" if is_enum(type_name): return f"{correct_type(type_name)}(0)" if is_variant(type_name): diff --git a/godot-headers/extension_api.json b/godot-headers/extension_api.json index 14aa2d3..efdaab6 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": "beta1", - "version_build": "official", - "version_full_name": "Godot Engine v4.0.beta1.official" + "version_status": "beta", + "version_build": "custom_build", + "version_full_name": "Godot Engine v4.0.beta.custom_build" }, "builtin_class_sizes": [ { @@ -6177,7 +6177,7 @@ }, { "name": "bool", - "is_keyed": true, + "is_keyed": false, "operators": [ { "name": "==", @@ -6335,7 +6335,7 @@ }, { "name": "int", - "is_keyed": true, + "is_keyed": false, "operators": [ { "name": "==", @@ -6695,7 +6695,7 @@ }, { "name": "float", - "is_keyed": true, + "is_keyed": false, "operators": [ { "name": "==", @@ -7017,7 +7017,7 @@ { "name": "String", "indexing_return_type": "String", - "is_keyed": true, + "is_keyed": false, "operators": [ { "name": "==", @@ -8568,7 +8568,7 @@ { "name": "Vector2", "indexing_return_type": "float", - "is_keyed": true, + "is_keyed": false, "members": [ { "name": "x", @@ -9329,7 +9329,7 @@ { "name": "Vector2i", "indexing_return_type": "int", - "is_keyed": true, + "is_keyed": false, "members": [ { "name": "x", @@ -9623,7 +9623,7 @@ }, { "name": "Rect2", - "is_keyed": true, + "is_keyed": false, "members": [ { "name": "position", @@ -9931,7 +9931,7 @@ }, { "name": "Rect2i", - "is_keyed": true, + "is_keyed": false, "members": [ { "name": "position", @@ -10216,7 +10216,7 @@ { "name": "Vector3", "indexing_return_type": "float", - "is_keyed": true, + "is_keyed": false, "members": [ { "name": "x", @@ -11028,7 +11028,7 @@ { "name": "Vector3i", "indexing_return_type": "int", - "is_keyed": true, + "is_keyed": false, "members": [ { "name": "x", @@ -11342,7 +11342,7 @@ { "name": "Transform2D", "indexing_return_type": "Vector2", - "is_keyed": true, + "is_keyed": false, "members": [ { "name": "x", @@ -11762,7 +11762,7 @@ { "name": "Vector4", "indexing_return_type": "float", - "is_keyed": true, + "is_keyed": false, "members": [ { "name": "x", @@ -12313,7 +12313,7 @@ { "name": "Vector4i", "indexing_return_type": "int", - "is_keyed": true, + "is_keyed": false, "members": [ { "name": "x", @@ -12613,7 +12613,7 @@ }, { "name": "Plane", - "is_keyed": true, + "is_keyed": false, "members": [ { "name": "x", @@ -12937,7 +12937,7 @@ { "name": "Quaternion", "indexing_return_type": "float", - "is_keyed": true, + "is_keyed": false, "members": [ { "name": "x", @@ -13350,7 +13350,7 @@ }, { "name": "AABB", - "is_keyed": true, + "is_keyed": false, "members": [ { "name": "position", @@ -13714,7 +13714,7 @@ { "name": "Basis", "indexing_return_type": "Vector3", - "is_keyed": true, + "is_keyed": false, "members": [ { "name": "x", @@ -14144,7 +14144,7 @@ }, { "name": "Transform3D", - "is_keyed": true, + "is_keyed": false, "members": [ { "name": "basis", @@ -14475,7 +14475,7 @@ { "name": "Projection", "indexing_return_type": "Vector4", - "is_keyed": true, + "is_keyed": false, "members": [ { "name": "x", @@ -15103,7 +15103,7 @@ { "name": "Color", "indexing_return_type": "float", - "is_keyed": true, + "is_keyed": false, "members": [ { "name": "r", @@ -16441,7 +16441,7 @@ }, { "name": "StringName", - "is_keyed": true, + "is_keyed": false, "operators": [ { "name": "==", @@ -16556,7 +16556,7 @@ }, { "name": "NodePath", - "is_keyed": true, + "is_keyed": false, "operators": [ { "name": "==", @@ -16710,7 +16710,7 @@ }, { "name": "RID", - "is_keyed": true, + "is_keyed": false, "operators": [ { "name": "==", @@ -16789,7 +16789,7 @@ }, { "name": "Callable", - "is_keyed": true, + "is_keyed": false, "operators": [ { "name": "==", @@ -16976,7 +16976,7 @@ }, { "name": "Signal", - "is_keyed": true, + "is_keyed": false, "operators": [ { "name": "==", @@ -17345,7 +17345,7 @@ { "name": "Array", "indexing_return_type": "Variant", - "is_keyed": true, + "is_keyed": false, "operators": [ { "name": "==", @@ -17894,6 +17894,94 @@ "is_const": true, "is_static": false, "hash": 1460142086 + }, + { + "name": "typed_assign", + "return_type": "bool", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 1485459766, + "arguments": [ + { + "name": "array", + "type": "Array" + } + ] + }, + { + "name": "set_typed", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 2557487401, + "arguments": [ + { + "name": "type", + "type": "int" + }, + { + "name": "class_name", + "type": "StringName" + }, + { + "name": "script", + "type": "Variant" + } + ] + }, + { + "name": "is_typed", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3918633141 + }, + { + "name": "get_typed_builtin", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3173160232 + }, + { + "name": "get_typed_class_name", + "return_type": "StringName", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1825232092 + }, + { + "name": "get_typed_script", + "return_type": "Variant", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1460142086 + }, + { + "name": "set_read_only", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 315553568, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_read_only", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3918633141 } ], "constructors": [ @@ -17913,8 +18001,20 @@ "index": 2, "arguments": [ { - "name": "from", - "type": "PackedByteArray" + "name": "base", + "type": "Array" + }, + { + "name": "type", + "type": "int" + }, + { + "name": "class_name", + "type": "StringName" + }, + { + "name": "script", + "type": "Nil" } ] }, @@ -17923,7 +18023,7 @@ "arguments": [ { "name": "from", - "type": "PackedInt32Array" + "type": "PackedByteArray" } ] }, @@ -17932,7 +18032,7 @@ "arguments": [ { "name": "from", - "type": "PackedInt64Array" + "type": "PackedInt32Array" } ] }, @@ -17941,7 +18041,7 @@ "arguments": [ { "name": "from", - "type": "PackedFloat32Array" + "type": "PackedInt64Array" } ] }, @@ -17950,7 +18050,7 @@ "arguments": [ { "name": "from", - "type": "PackedFloat64Array" + "type": "PackedFloat32Array" } ] }, @@ -17959,7 +18059,7 @@ "arguments": [ { "name": "from", - "type": "PackedStringArray" + "type": "PackedFloat64Array" } ] }, @@ -17968,7 +18068,7 @@ "arguments": [ { "name": "from", - "type": "PackedVector2Array" + "type": "PackedStringArray" } ] }, @@ -17977,12 +18077,21 @@ "arguments": [ { "name": "from", - "type": "PackedVector3Array" + "type": "PackedVector2Array" } ] }, { "index": 10, + "arguments": [ + { + "name": "from", + "type": "PackedVector3Array" + } + ] + }, + { + "index": 11, "arguments": [ { "name": "from", @@ -17996,7 +18105,7 @@ { "name": "PackedByteArray", "indexing_return_type": "int", - "is_keyed": true, + "is_keyed": false, "operators": [ { "name": "==", @@ -18875,7 +18984,7 @@ { "name": "PackedInt32Array", "indexing_return_type": "int", - "is_keyed": true, + "is_keyed": false, "operators": [ { "name": "==", @@ -19216,7 +19325,7 @@ { "name": "PackedInt64Array", "indexing_return_type": "int", - "is_keyed": true, + "is_keyed": false, "operators": [ { "name": "==", @@ -19557,7 +19666,7 @@ { "name": "PackedFloat32Array", "indexing_return_type": "float", - "is_keyed": true, + "is_keyed": false, "operators": [ { "name": "==", @@ -19898,7 +20007,7 @@ { "name": "PackedFloat64Array", "indexing_return_type": "float", - "is_keyed": true, + "is_keyed": false, "operators": [ { "name": "==", @@ -20239,7 +20348,7 @@ { "name": "PackedStringArray", "indexing_return_type": "String", - "is_keyed": true, + "is_keyed": false, "operators": [ { "name": "==", @@ -20580,7 +20689,7 @@ { "name": "PackedVector2Array", "indexing_return_type": "Vector2", - "is_keyed": true, + "is_keyed": false, "operators": [ { "name": "==", @@ -20926,7 +21035,7 @@ { "name": "PackedVector3Array", "indexing_return_type": "Vector3", - "is_keyed": true, + "is_keyed": false, "operators": [ { "name": "==", @@ -21272,7 +21381,7 @@ { "name": "PackedColorArray", "indexing_return_type": "Color", - "is_keyed": true, + "is_keyed": false, "operators": [ { "name": "==", @@ -26043,7 +26152,7 @@ "is_virtual": false, "hash": 3995934104, "return_value": { - "type": "Array" + "type": "typedarray::StringName" } } ], @@ -27683,6 +27792,17 @@ } } ], + "signals": [ + { + "name": "node_changed", + "arguments": [ + { + "name": "node_name", + "type": "StringName" + } + ] + } + ], "properties": [ { "type": "Vector2", @@ -29102,7 +29222,7 @@ "is_virtual": false, "hash": 3995934104, "return_value": { - "type": "Array" + "type": "typedarray::StringName" } }, { @@ -29767,6 +29887,9 @@ } ] }, + { + "name": "animation_list_changed" + }, { "name": "caches_cleared" } @@ -30101,6 +30224,11 @@ ] } ], + "signals": [ + { + "name": "animation_player_changed" + } + ], "properties": [ { "type": "AnimationRootNode", @@ -30524,7 +30652,7 @@ "is_virtual": false, "hash": 3995934104, "return_value": { - "type": "Array" + "type": "typedarray::Node2D" } }, { @@ -30535,7 +30663,7 @@ "is_virtual": false, "hash": 3995934104, "return_value": { - "type": "Array" + "type": "typedarray::Area2D" } }, { @@ -31332,7 +31460,7 @@ "is_virtual": false, "hash": 3995934104, "return_value": { - "type": "Array" + "type": "typedarray::Node3D" } }, { @@ -31343,7 +31471,7 @@ "is_virtual": false, "hash": 3995934104, "return_value": { - "type": "Array" + "type": "typedarray::Area3D" } }, { @@ -31957,7 +32085,7 @@ }, { "name": "blend_shapes", - "type": "Array", + "type": "typedarray::Array", "default_value": "[]" }, { @@ -40200,7 +40328,7 @@ "index": -1 }, { - "type": "Node", + "type": "Object", "name": "shortcut_context", "setter": "set_shortcut_context", "getter": "get_shortcut_context", @@ -43579,7 +43707,7 @@ "is_virtual": false, "hash": 876132484, "return_value": { - "type": "Array" + "type": "typedarray::PackedVector2Array" }, "arguments": [ { @@ -44782,7 +44910,7 @@ "is_virtual": false, "hash": 2915620761, "return_value": { - "type": "Array" + "type": "typedarray::BaseButton" } } ], @@ -49892,7 +50020,7 @@ } }, { - "name": "set_rotating", + "name": "set_ignore_rotation", "is_const": false, "is_vararg": false, "is_static": false, @@ -49900,13 +50028,13 @@ "hash": 2586408642, "arguments": [ { - "name": "rotating", + "name": "ignore", "type": "bool" } ] }, { - "name": "is_rotating", + "name": "is_ignoring_rotation", "is_const": true, "is_vararg": false, "is_static": false, @@ -50410,9 +50538,9 @@ }, { "type": "bool", - "name": "rotating", - "setter": "set_rotating", - "getter": "is_rotating", + "name": "ignore_rotation", + "setter": "set_ignore_rotation", + "getter": "is_ignoring_rotation", "index": -1 }, { @@ -51222,7 +51350,7 @@ "is_virtual": false, "hash": 3995934104, "return_value": { - "type": "Array" + "type": "typedarray::Plane" } }, { @@ -52421,7 +52549,7 @@ "is_virtual": false, "hash": 2915620761, "return_value": { - "type": "Array" + "type": "typedarray::CameraFeed" } }, { @@ -57750,7 +57878,7 @@ "is_virtual": false, "hash": 3504980660, "return_value": { - "type": "Array" + "type": "typedarray::Dictionary" }, "arguments": [ { @@ -57772,7 +57900,7 @@ "is_virtual": false, "hash": 3504980660, "return_value": { - "type": "Array" + "type": "typedarray::Dictionary" }, "arguments": [ { @@ -57866,7 +57994,7 @@ "is_virtual": false, "hash": 3504980660, "return_value": { - "type": "Array" + "type": "typedarray::Dictionary" }, "arguments": [ { @@ -58152,12 +58280,12 @@ "is_vararg": false, "is_virtual": true, "return_value": { - "type": "Array" + "type": "typedarray::Dictionary" }, "arguments": [ { "name": "candidates", - "type": "Array" + "type": "typedarray::Dictionary" } ] }, @@ -58248,7 +58376,7 @@ "arguments": [ { "name": "prefixes", - "type": "Array" + "type": "typedarray::String" } ] }, @@ -58260,7 +58388,7 @@ "is_virtual": false, "hash": 3995934104, "return_value": { - "type": "Array" + "type": "typedarray::String" } }, { @@ -58887,7 +59015,7 @@ "is_virtual": false, "hash": 3995934104, "return_value": { - "type": "Array" + "type": "typedarray::int" } }, { @@ -58954,7 +59082,7 @@ "arguments": [ { "name": "string_delimiters", - "type": "Array" + "type": "typedarray::String" } ] }, @@ -58974,7 +59102,7 @@ "is_virtual": false, "hash": 3995934104, "return_value": { - "type": "Array" + "type": "typedarray::String" } }, { @@ -59066,7 +59194,7 @@ "arguments": [ { "name": "comment_delimiters", - "type": "Array" + "type": "typedarray::String" } ] }, @@ -59086,7 +59214,7 @@ "is_virtual": false, "hash": 3995934104, "return_value": { - "type": "Array" + "type": "typedarray::String" } }, { @@ -59309,7 +59437,7 @@ "is_virtual": false, "hash": 3995934104, "return_value": { - "type": "Array" + "type": "typedarray::Dictionary" } }, { @@ -59415,7 +59543,7 @@ "arguments": [ { "name": "prefixes", - "type": "Array" + "type": "typedarray::String" } ] }, @@ -59427,7 +59555,7 @@ "is_virtual": false, "hash": 3995934104, "return_value": { - "type": "Array" + "type": "typedarray::String" } }, { @@ -59440,7 +59568,7 @@ "arguments": [ { "name": "guideline_columns", - "type": "Array" + "type": "typedarray::int" } ] }, @@ -59452,7 +59580,7 @@ "is_virtual": false, "hash": 3995934104, "return_value": { - "type": "Array" + "type": "typedarray::int" } }, { @@ -63822,7 +63950,7 @@ "is_vararg": false, "is_virtual": true, "return_value": { - "type": "Array" + "type": "typedarray::Vector2i" }, "arguments": [ { @@ -69082,6 +69210,544 @@ } ] }, + { + "name": "DirAccess", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "open", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 1923528528, + "return_value": { + "type": "DirAccess" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "get_open_error", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 166280745, + "return_value": { + "type": "enum::Error" + } + }, + { + "name": "list_dir_begin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2018049411, + "return_value": { + "type": "enum::Error" + } + }, + { + "name": "get_next", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2841200299, + "return_value": { + "type": "String" + } + }, + { + "name": "current_is_dir", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "list_dir_end", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "get_files", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2981934095, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "get_files_at", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 3538744774, + "return_value": { + "type": "PackedStringArray" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "get_directories", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2981934095, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "get_directories_at", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 3538744774, + "return_value": { + "type": "PackedStringArray" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "get_drive_count", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_drive_name", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 990163283, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_current_drive", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "change_dir", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 166001499, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "to_dir", + "type": "String" + } + ] + }, + { + "name": "get_current_dir", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1287308131, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "include_drive", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "make_dir", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 166001499, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "make_dir_absolute", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 166001499, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "make_dir_recursive", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 166001499, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "make_dir_recursive_absolute", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 166001499, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "file_exists", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2323990056, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "dir_exists", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2323990056, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "dir_exists_absolute", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 2323990056, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "get_space_left", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "uint64" + } + }, + { + "name": "copy", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 198434953, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "from", + "type": "String" + }, + { + "name": "to", + "type": "String" + }, + { + "name": "chmod_flags", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "copy_absolute", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 198434953, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "from", + "type": "String" + }, + { + "name": "to", + "type": "String" + }, + { + "name": "chmod_flags", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "rename", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 852856452, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "from", + "type": "String" + }, + { + "name": "to", + "type": "String" + } + ] + }, + { + "name": "rename_absolute", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 852856452, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "from", + "type": "String" + }, + { + "name": "to", + "type": "String" + } + ] + }, + { + "name": "remove", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 166001499, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "remove_absolute", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 166001499, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "set_include_navigational", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "get_include_navigational", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_include_hidden", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "get_include_hidden", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "bool", + "name": "include_navigational", + "setter": "set_include_navigational", + "getter": "get_include_navigational", + "index": -1 + }, + { + "type": "bool", + "name": "include_hidden", + "setter": "set_include_hidden", + "getter": "get_include_hidden", + "index": -1 + } + ] + }, { "name": "DirectionalLight2D", "is_refcounted": false, @@ -69321,370 +69987,6 @@ } ] }, - { - "name": "Directory", - "is_refcounted": true, - "is_instantiable": true, - "inherits": "RefCounted", - "api_type": "core", - "methods": [ - { - "name": "open", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 166001499, - "return_value": { - "type": "enum::Error" - }, - "arguments": [ - { - "name": "path", - "type": "String" - } - ] - }, - { - "name": "list_dir_begin", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 2018049411, - "return_value": { - "type": "enum::Error" - } - }, - { - "name": "get_next", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 2841200299, - "return_value": { - "type": "String" - } - }, - { - "name": "current_is_dir", - "is_const": true, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 36873697, - "return_value": { - "type": "bool" - } - }, - { - "name": "list_dir_end", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 3218959716 - }, - { - "name": "get_files", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 2981934095, - "return_value": { - "type": "PackedStringArray" - } - }, - { - "name": "get_directories", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 2981934095, - "return_value": { - "type": "PackedStringArray" - } - }, - { - "name": "get_drive_count", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 2455072627, - "return_value": { - "type": "int", - "meta": "int32" - } - }, - { - "name": "get_drive", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 990163283, - "return_value": { - "type": "String" - }, - "arguments": [ - { - "name": "idx", - "type": "int", - "meta": "int32" - } - ] - }, - { - "name": "get_current_drive", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 2455072627, - "return_value": { - "type": "int", - "meta": "int32" - } - }, - { - "name": "change_dir", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 166001499, - "return_value": { - "type": "enum::Error" - }, - "arguments": [ - { - "name": "todir", - "type": "String" - } - ] - }, - { - "name": "get_current_dir", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 2841200299, - "return_value": { - "type": "String" - } - }, - { - "name": "make_dir", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 166001499, - "return_value": { - "type": "enum::Error" - }, - "arguments": [ - { - "name": "path", - "type": "String" - } - ] - }, - { - "name": "make_dir_recursive", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 166001499, - "return_value": { - "type": "enum::Error" - }, - "arguments": [ - { - "name": "path", - "type": "String" - } - ] - }, - { - "name": "file_exists", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 2323990056, - "return_value": { - "type": "bool" - }, - "arguments": [ - { - "name": "path", - "type": "String" - } - ] - }, - { - "name": "dir_exists", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 2323990056, - "return_value": { - "type": "bool" - }, - "arguments": [ - { - "name": "path", - "type": "String" - } - ] - }, - { - "name": "get_space_left", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 2455072627, - "return_value": { - "type": "int", - "meta": "uint64" - } - }, - { - "name": "copy", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 852856452, - "return_value": { - "type": "enum::Error" - }, - "arguments": [ - { - "name": "from", - "type": "String" - }, - { - "name": "to", - "type": "String" - } - ] - }, - { - "name": "rename", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 852856452, - "return_value": { - "type": "enum::Error" - }, - "arguments": [ - { - "name": "from", - "type": "String" - }, - { - "name": "to", - "type": "String" - } - ] - }, - { - "name": "remove", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 166001499, - "return_value": { - "type": "enum::Error" - }, - "arguments": [ - { - "name": "path", - "type": "String" - } - ] - }, - { - "name": "set_include_navigational", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 2586408642, - "arguments": [ - { - "name": "enable", - "type": "bool" - } - ] - }, - { - "name": "get_include_navigational", - "is_const": true, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 36873697, - "return_value": { - "type": "bool" - } - }, - { - "name": "set_include_hidden", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 2586408642, - "arguments": [ - { - "name": "enable", - "type": "bool" - } - ] - }, - { - "name": "get_include_hidden", - "is_const": true, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 36873697, - "return_value": { - "type": "bool" - } - } - ], - "properties": [ - { - "type": "bool", - "name": "include_navigational", - "setter": "set_include_navigational", - "getter": "get_include_navigational", - "index": -1 - }, - { - "type": "bool", - "name": "include_hidden", - "setter": "set_include_hidden", - "getter": "get_include_hidden", - "index": -1 - } - ] - }, { "name": "DisplayServer", "is_refcounted": false, @@ -71360,7 +71662,7 @@ "is_virtual": false, "hash": 3995934104, "return_value": { - "type": "Array" + "type": "typedarray::Dictionary" } }, { @@ -71632,7 +71934,7 @@ "is_virtual": false, "hash": 3995934104, "return_value": { - "type": "Array" + "type": "typedarray::Rect2" } }, { @@ -72502,6 +72804,26 @@ } ] }, + { + "name": "window_set_window_buttons_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3614040015, + "arguments": [ + { + "name": "offset", + "type": "Vector2i" + }, + { + "name": "window_id", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, { "name": "window_get_safe_title_margins", "is_const": true, @@ -73122,6 +73444,13 @@ } ] }, + { + "name": "DisplayServerMacOS", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "DisplayServer", + "api_type": "core" + }, { "name": "ENetConnection", "is_refcounted": true, @@ -73543,7 +73872,7 @@ "is_virtual": false, "hash": 2915620761, "return_value": { - "type": "Array" + "type": "typedarray::ENetPacketPeer" } } ] @@ -75831,7 +76160,7 @@ "is_vararg": false, "is_virtual": true, "return_value": { - "type": "Array" + "type": "typedarray::Dictionary" }, "arguments": [ { @@ -75932,11 +76261,11 @@ }, { "name": "platform_variants", - "type": "Array" + "type": "typedarray::String" }, { "name": "gen_files", - "type": "Array" + "type": "typedarray::String" } ] } @@ -75948,6 +76277,19 @@ "is_instantiable": false, "inherits": "ScrollContainer", "api_type": "editor", + "methods": [ + { + "name": "get_selected_path", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + } + ], "signals": [ { "name": "property_selected", @@ -76517,12 +76859,12 @@ "is_virtual": false, "hash": 878078554, "return_value": { - "type": "Array" + "type": "typedarray::Texture2D" }, "arguments": [ { "name": "meshes", - "type": "Array" + "type": "typedarray::Mesh" }, { "name": "preview_size", @@ -76901,7 +77243,7 @@ }, { "name": "frustum", - "type": "Array" + "type": "typedarray::Plane" } ] }, @@ -76951,7 +77293,7 @@ }, { "name": "restores", - "type": "Array" + "type": "typedarray::Transform3D" }, { "name": "cancel", @@ -77456,7 +77798,7 @@ }, { "name": "frustum_planes", - "type": "Array" + "type": "typedarray::Plane" } ] }, @@ -77518,7 +77860,7 @@ }, { "name": "restores", - "type": "Array" + "type": "typedarray::Transform3D" }, { "name": "cancel", @@ -78766,6 +79108,19 @@ "is_vararg": false, "is_virtual": true }, + { + "name": "_set_read_only", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "read_only", + "type": "bool" + } + ] + }, { "name": "set_label", "is_const": false, @@ -80282,7 +80637,7 @@ "is_virtual": false, "hash": 2915620761, "return_value": { - "type": "Array" + "type": "typedarray::Node" } }, { @@ -80293,7 +80648,7 @@ "is_virtual": false, "hash": 2915620761, "return_value": { - "type": "Array" + "type": "typedarray::Node" } } ], @@ -80530,7 +80885,7 @@ }, { "name": "actions_list", - "type": "Array" + "type": "typedarray::InputEvent" } ] }, @@ -80803,11 +81158,11 @@ }, { "name": "msgids", - "type": "Array" + "type": "typedarray::String" }, { "name": "msgids_context_plural", - "type": "Array" + "type": "typedarray::Array" } ] }, @@ -81151,7 +81506,7 @@ "is_vararg": false, "is_virtual": true, "return_value": { - "type": "Array" + "type": "typedarray::Dictionary" } }, { @@ -81213,7 +81568,7 @@ "is_vararg": false, "is_virtual": true, "return_value": { - "type": "Array" + "type": "typedarray::Dictionary" }, "arguments": [ { @@ -81253,7 +81608,7 @@ "is_vararg": false, "is_virtual": true, "return_value": { - "type": "Array" + "type": "typedarray::Dictionary" }, "arguments": [ { @@ -81269,7 +81624,7 @@ "is_vararg": false, "is_virtual": true, "return_value": { - "type": "Array" + "type": "typedarray::Dictionary" } }, { @@ -81279,7 +81634,7 @@ "is_vararg": false, "is_virtual": true, "return_value": { - "type": "Array" + "type": "typedarray::Dictionary" } }, { @@ -81414,7 +81769,7 @@ "is_vararg": false, "is_virtual": true, "return_value": { - "type": "Array" + "type": "typedarray::Dictionary" }, "arguments": [ { @@ -81589,7 +81944,7 @@ }, { "name": "diff_hunks", - "type": "Array" + "type": "typedarray::Dictionary" } ] }, @@ -81610,7 +81965,7 @@ }, { "name": "line_diffs", - "type": "Array" + "type": "typedarray::Dictionary" } ] }, @@ -81891,7 +82246,7 @@ "is_virtual": false, "hash": 3995934104, "return_value": { - "type": "Array" + "type": "typedarray::Dictionary" } }, { @@ -86452,9 +86807,9 @@ ] }, { - "name": "File", + "name": "FileAccess", "is_refcounted": true, - "is_instantiable": true, + "is_instantiable": false, "inherits": "RefCounted", "api_type": "core", "enums": [ @@ -86504,15 +86859,36 @@ } ], "methods": [ + { + "name": "open", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 1247358404, + "return_value": { + "type": "FileAccess" + }, + "arguments": [ + { + "name": "path", + "type": "String" + }, + { + "name": "flags", + "type": "enum::FileAccess.ModeFlags" + } + ] + }, { "name": "open_encrypted", "is_const": false, "is_vararg": false, - "is_static": false, + "is_static": true, "is_virtual": false, - "hash": 1337424764, + "hash": 1482131466, "return_value": { - "type": "enum::Error" + "type": "FileAccess" }, "arguments": [ { @@ -86521,7 +86897,7 @@ }, { "name": "mode_flags", - "type": "enum::File.ModeFlags" + "type": "enum::FileAccess.ModeFlags" }, { "name": "key", @@ -86533,11 +86909,11 @@ "name": "open_encrypted_with_pass", "is_const": false, "is_vararg": false, - "is_static": false, + "is_static": true, "is_virtual": false, - "hash": 1053231221, + "hash": 790283377, "return_value": { - "type": "enum::Error" + "type": "FileAccess" }, "arguments": [ { @@ -86546,7 +86922,7 @@ }, { "name": "mode_flags", - "type": "enum::File.ModeFlags" + "type": "enum::FileAccess.ModeFlags" }, { "name": "pass", @@ -86558,11 +86934,11 @@ "name": "open_compressed", "is_const": false, "is_vararg": false, - "is_static": false, + "is_static": true, "is_virtual": false, - "hash": 2636971738, + "hash": 2874458257, "return_value": { - "type": "enum::Error" + "type": "FileAccess" }, "arguments": [ { @@ -86571,35 +86947,25 @@ }, { "name": "mode_flags", - "type": "enum::File.ModeFlags" + "type": "enum::FileAccess.ModeFlags" }, { "name": "compression_mode", - "type": "enum::File.CompressionMode", + "type": "enum::FileAccess.CompressionMode", "default_value": "0" } ] }, { - "name": "open", + "name": "get_open_error", "is_const": false, "is_vararg": false, - "is_static": false, + "is_static": true, "is_virtual": false, - "hash": 985763342, + "hash": 166280745, "return_value": { "type": "enum::Error" - }, - "arguments": [ - { - "name": "path", - "type": "String" - }, - { - "name": "flags", - "type": "enum::File.ModeFlags" - } - ] + } }, { "name": "flush", @@ -86609,14 +86975,6 @@ "is_virtual": false, "hash": 3218959716 }, - { - "name": "close", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 3218959716 - }, { "name": "get_path", "is_const": true, @@ -86661,7 +87019,7 @@ { "name": "position", "type": "int", - "meta": "int64" + "meta": "uint64" } ] }, @@ -86867,11 +87225,11 @@ }, { "name": "get_md5", - "is_const": true, + "is_const": false, "is_vararg": false, - "is_static": false, + "is_static": true, "is_virtual": false, - "hash": 3135753539, + "hash": 1703090593, "return_value": { "type": "String" }, @@ -86884,11 +87242,11 @@ }, { "name": "get_sha256", - "is_const": true, + "is_const": false, "is_vararg": false, - "is_static": false, + "is_static": true, "is_virtual": false, - "hash": 3135753539, + "hash": 1703090593, "return_value": { "type": "String" }, @@ -86901,11 +87259,11 @@ }, { "name": "is_big_endian", - "is_const": false, + "is_const": true, "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 2240911060, + "hash": 36873697, "return_value": { "type": "bool" } @@ -87182,11 +87540,11 @@ }, { "name": "get_modified_time", - "is_const": true, + "is_const": false, "is_vararg": false, - "is_static": false, + "is_static": true, "is_virtual": false, - "hash": 1321353865, + "hash": 1597066294, "return_value": { "type": "int", "meta": "uint64" @@ -88126,7 +88484,7 @@ "arguments": [ { "name": "fallbacks", - "type": "Array" + "type": "typedarray::Font" } ] }, @@ -88138,7 +88496,7 @@ "is_virtual": false, "hash": 3995934104, "return_value": { - "type": "Array" + "type": "typedarray::Font" } }, { @@ -88183,7 +88541,7 @@ "is_virtual": false, "hash": 3995934104, "return_value": { - "type": "Array" + "type": "typedarray::RID" } }, { @@ -89354,7 +89712,7 @@ "is_virtual": false, "hash": 663333327, "return_value": { - "type": "Array" + "type": "typedarray::Vector2i" }, "arguments": [ { @@ -90323,7 +90681,7 @@ "is_virtual": false, "hash": 2345056839, "return_value": { - "type": "Array" + "type": "typedarray::Vector2i" }, "arguments": [ { @@ -90768,7 +91126,7 @@ "index": -1 }, { - "type": "Array", + "type": "typedarray::24/17:Font", "name": "fallbacks", "setter": "set_fallbacks", "getter": "get_fallbacks", @@ -90955,7 +91313,7 @@ "index": -1 }, { - "type": "Array", + "type": "typedarray::24/17:Font", "name": "fallbacks", "setter": "set_fallbacks", "getter": "get_fallbacks", @@ -91026,6 +91384,13 @@ } ] }, + { + "name": "FramebufferCacheRD", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "Object", + "api_type": "core" + }, { "name": "GDScript", "is_refcounted": true, @@ -92208,7 +92573,7 @@ "arguments": [ { "name": "extensions", - "type": "Array" + "type": "typedarray::GLTFDocumentExtension" } ] }, @@ -92220,13 +92585,13 @@ "is_virtual": false, "hash": 3995934104, "return_value": { - "type": "Array" + "type": "typedarray::GLTFDocumentExtension" } } ], "properties": [ { - "type": "Array", + "type": "typedarray::24/17:GLTFDocumentExtension", "name": "extensions", "setter": "set_extensions", "getter": "get_extensions", @@ -92241,6 +92606,16 @@ "inherits": "Resource", "api_type": "core", "methods": [ + { + "name": "_get_supported_extensions", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "PackedStringArray" + } + }, { "name": "_import_preflight", "is_const": false, @@ -92722,7 +93097,7 @@ "is_virtual": false, "hash": 2915620761, "return_value": { - "type": "Array" + "type": "typedarray::Material" } }, { @@ -92735,7 +93110,7 @@ "arguments": [ { "name": "instance_materials", - "type": "Array" + "type": "typedarray::Material" } ] } @@ -93281,7 +93656,7 @@ "is_virtual": false, "hash": 2915620761, "return_value": { - "type": "Array" + "type": "typedarray::String" } }, { @@ -93294,7 +93669,7 @@ "arguments": [ { "name": "unique_names", - "type": "Array" + "type": "typedarray::String" } ] }, @@ -93452,7 +93827,7 @@ "is_virtual": false, "hash": 2915620761, "return_value": { - "type": "Array" + "type": "typedarray::Transform3D" } }, { @@ -93465,7 +93840,7 @@ "arguments": [ { "name": "inverse_binds", - "type": "Array" + "type": "typedarray::Transform3D" } ] }, @@ -93900,6 +94275,24 @@ "inherits": "Resource", "api_type": "core", "methods": [ + { + "name": "add_used_extension", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2678287736, + "arguments": [ + { + "name": "extension_name", + "type": "String" + }, + { + "name": "required", + "type": "bool" + } + ] + }, { "name": "get_json", "is_const": false, @@ -94037,7 +94430,7 @@ "is_virtual": false, "hash": 2915620761, "return_value": { - "type": "Array" + "type": "typedarray::GLTFNode" } }, { @@ -94050,7 +94443,7 @@ "arguments": [ { "name": "nodes", - "type": "Array" + "type": "typedarray::GLTFNode" } ] }, @@ -94062,7 +94455,7 @@ "is_virtual": false, "hash": 2915620761, "return_value": { - "type": "Array" + "type": "typedarray::PackedByteArray" } }, { @@ -94075,7 +94468,7 @@ "arguments": [ { "name": "buffers", - "type": "Array" + "type": "typedarray::PackedByteArray" } ] }, @@ -94087,7 +94480,7 @@ "is_virtual": false, "hash": 2915620761, "return_value": { - "type": "Array" + "type": "typedarray::GLTFBufferView" } }, { @@ -94100,7 +94493,7 @@ "arguments": [ { "name": "buffer_views", - "type": "Array" + "type": "typedarray::GLTFBufferView" } ] }, @@ -94112,7 +94505,7 @@ "is_virtual": false, "hash": 2915620761, "return_value": { - "type": "Array" + "type": "typedarray::GLTFAccessor" } }, { @@ -94125,7 +94518,7 @@ "arguments": [ { "name": "accessors", - "type": "Array" + "type": "typedarray::GLTFAccessor" } ] }, @@ -94137,7 +94530,7 @@ "is_virtual": false, "hash": 2915620761, "return_value": { - "type": "Array" + "type": "typedarray::GLTFMesh" } }, { @@ -94150,7 +94543,7 @@ "arguments": [ { "name": "meshes", - "type": "Array" + "type": "typedarray::GLTFMesh" } ] }, @@ -94199,7 +94592,7 @@ "is_virtual": false, "hash": 2915620761, "return_value": { - "type": "Array" + "type": "typedarray::BaseMaterial3D" } }, { @@ -94212,7 +94605,7 @@ "arguments": [ { "name": "materials", - "type": "Array" + "type": "typedarray::BaseMaterial3D" } ] }, @@ -94299,7 +94692,7 @@ "is_virtual": false, "hash": 2915620761, "return_value": { - "type": "Array" + "type": "typedarray::GLTFTexture" } }, { @@ -94312,7 +94705,7 @@ "arguments": [ { "name": "textures", - "type": "Array" + "type": "typedarray::GLTFTexture" } ] }, @@ -94324,7 +94717,7 @@ "is_virtual": false, "hash": 2915620761, "return_value": { - "type": "Array" + "type": "typedarray::Texture2D" } }, { @@ -94337,7 +94730,7 @@ "arguments": [ { "name": "images", - "type": "Array" + "type": "typedarray::Texture2D" } ] }, @@ -94349,7 +94742,7 @@ "is_virtual": false, "hash": 2915620761, "return_value": { - "type": "Array" + "type": "typedarray::GLTFSkin" } }, { @@ -94362,7 +94755,7 @@ "arguments": [ { "name": "skins", - "type": "Array" + "type": "typedarray::GLTFSkin" } ] }, @@ -94374,7 +94767,7 @@ "is_virtual": false, "hash": 2915620761, "return_value": { - "type": "Array" + "type": "typedarray::GLTFCamera" } }, { @@ -94387,7 +94780,7 @@ "arguments": [ { "name": "cameras", - "type": "Array" + "type": "typedarray::GLTFCamera" } ] }, @@ -94399,7 +94792,7 @@ "is_virtual": false, "hash": 2915620761, "return_value": { - "type": "Array" + "type": "typedarray::GLTFLight" } }, { @@ -94412,7 +94805,7 @@ "arguments": [ { "name": "lights", - "type": "Array" + "type": "typedarray::GLTFLight" } ] }, @@ -94424,7 +94817,7 @@ "is_virtual": false, "hash": 2915620761, "return_value": { - "type": "Array" + "type": "typedarray::String" } }, { @@ -94437,7 +94830,7 @@ "arguments": [ { "name": "unique_names", - "type": "Array" + "type": "typedarray::String" } ] }, @@ -94449,7 +94842,7 @@ "is_virtual": false, "hash": 2915620761, "return_value": { - "type": "Array" + "type": "typedarray::String" } }, { @@ -94462,7 +94855,7 @@ "arguments": [ { "name": "unique_animation_names", - "type": "Array" + "type": "typedarray::String" } ] }, @@ -94474,7 +94867,7 @@ "is_virtual": false, "hash": 2915620761, "return_value": { - "type": "Array" + "type": "typedarray::GLTFSkeleton" } }, { @@ -94487,7 +94880,7 @@ "arguments": [ { "name": "skeletons", - "type": "Array" + "type": "typedarray::GLTFSkeleton" } ] }, @@ -94549,7 +94942,7 @@ "is_virtual": false, "hash": 2915620761, "return_value": { - "type": "Array" + "type": "typedarray::GLTFAnimation" } }, { @@ -94562,7 +94955,7 @@ "arguments": [ { "name": "animations", - "type": "Array" + "type": "typedarray::GLTFAnimation" } ] }, @@ -98195,6 +98588,23 @@ } ] }, + { + "name": "decompose_polygon_in_convex", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3982393695, + "return_value": { + "type": "typedarray::PackedVector2Array" + }, + "arguments": [ + { + "name": "polygon", + "type": "PackedVector2Array" + } + ] + }, { "name": "merge_polygons", "is_const": false, @@ -98203,7 +98613,7 @@ "is_virtual": false, "hash": 3637387053, "return_value": { - "type": "Array" + "type": "typedarray::PackedVector2Array" }, "arguments": [ { @@ -98224,7 +98634,7 @@ "is_virtual": false, "hash": 3637387053, "return_value": { - "type": "Array" + "type": "typedarray::PackedVector2Array" }, "arguments": [ { @@ -98245,7 +98655,7 @@ "is_virtual": false, "hash": 3637387053, "return_value": { - "type": "Array" + "type": "typedarray::PackedVector2Array" }, "arguments": [ { @@ -98266,7 +98676,7 @@ "is_virtual": false, "hash": 3637387053, "return_value": { - "type": "Array" + "type": "typedarray::PackedVector2Array" }, "arguments": [ { @@ -98287,7 +98697,7 @@ "is_virtual": false, "hash": 3637387053, "return_value": { - "type": "Array" + "type": "typedarray::PackedVector2Array" }, "arguments": [ { @@ -98308,7 +98718,7 @@ "is_virtual": false, "hash": 3637387053, "return_value": { - "type": "Array" + "type": "typedarray::PackedVector2Array" }, "arguments": [ { @@ -98329,7 +98739,7 @@ "is_virtual": false, "hash": 3837618924, "return_value": { - "type": "Array" + "type": "typedarray::PackedVector2Array" }, "arguments": [ { @@ -98356,7 +98766,7 @@ "is_virtual": false, "hash": 328033063, "return_value": { - "type": "Array" + "type": "typedarray::PackedVector2Array" }, "arguments": [ { @@ -98414,7 +98824,7 @@ "is_virtual": false, "hash": 3622277145, "return_value": { - "type": "Array" + "type": "typedarray::Plane" }, "arguments": [ { @@ -98431,7 +98841,7 @@ "is_virtual": false, "hash": 3142160516, "return_value": { - "type": "Array" + "type": "typedarray::Plane" }, "arguments": [ { @@ -98464,7 +98874,7 @@ "is_virtual": false, "hash": 410870045, "return_value": { - "type": "Array" + "type": "typedarray::Plane" }, "arguments": [ { @@ -100273,7 +100683,7 @@ "is_virtual": false, "hash": 3995934104, "return_value": { - "type": "Array" + "type": "typedarray::Dictionary" } }, { @@ -101029,7 +101439,7 @@ "arguments": [ { "name": "nodes", - "type": "Array" + "type": "typedarray::StringName" } ] }, @@ -102856,7 +103266,7 @@ "is_virtual": false, "hash": 3995934104, "return_value": { - "type": "Array" + "type": "typedarray::Vector3i" } }, { @@ -102867,7 +103277,7 @@ "is_virtual": false, "hash": 663333327, "return_value": { - "type": "Array" + "type": "typedarray::Vector3i" }, "arguments": [ { @@ -104964,7 +105374,7 @@ "is_virtual": false, "hash": 3995934104, "return_value": { - "type": "Array" + "type": "typedarray::Dictionary" } }, { @@ -106349,6 +106759,96 @@ } ] }, + { + "name": "ImageFormatLoader", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "RefCounted", + "api_type": "core", + "enums": [ + { + "name": "LoaderFlags", + "is_bitfield": true, + "values": [ + { + "name": "FLAG_NONE", + "value": 0 + }, + { + "name": "FLAG_FORCE_LINEAR", + "value": 1 + }, + { + "name": "FLAG_CONVERT_COLORS", + "value": 2 + } + ] + } + ] + }, + { + "name": "ImageFormatLoaderExtension", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "ImageFormatLoader", + "api_type": "core", + "methods": [ + { + "name": "_get_recognized_extensions", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "_load_image", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "image", + "type": "Image" + }, + { + "name": "fileaccess", + "type": "FileAccess" + }, + { + "name": "flags", + "type": "bitfield::ImageFormatLoader.LoaderFlags" + }, + { + "name": "scale", + "type": "float" + } + ] + }, + { + "name": "add_format_loader", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "remove_format_loader", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + } + ] + }, { "name": "ImageTexture", "is_refcounted": true, @@ -106471,7 +106971,7 @@ }, { "name": "data", - "type": "Array" + "type": "typedarray::Image" } ] }, @@ -106485,7 +106985,7 @@ "arguments": [ { "name": "data", - "type": "Array" + "type": "typedarray::Image" } ] } @@ -106511,7 +107011,7 @@ "arguments": [ { "name": "images", - "type": "Array" + "type": "typedarray::Image" } ] }, @@ -106772,7 +107272,7 @@ }, { "name": "blend_shapes", - "type": "Array", + "type": "typedarray::Array", "default_value": "[]" }, { @@ -107692,7 +108192,7 @@ "is_virtual": false, "hash": 2915620761, "return_value": { - "type": "Array" + "type": "typedarray::int" } }, { @@ -110170,7 +110670,7 @@ "is_virtual": false, "hash": 2915620761, "return_value": { - "type": "Array" + "type": "typedarray::StringName" } }, { @@ -110323,7 +110823,7 @@ "is_virtual": false, "hash": 689397652, "return_value": { - "type": "Array" + "type": "typedarray::InputEvent" }, "arguments": [ { @@ -111802,6 +112302,20 @@ "type": "Variant" } }, + { + "name": "set_data", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1114965689, + "arguments": [ + { + "name": "data", + "type": "Variant" + } + ] + }, { "name": "get_error_line", "is_const": true, @@ -111825,6 +112339,15 @@ "type": "String" } } + ], + "properties": [ + { + "type": "Variant", + "name": "data", + "setter": "set_data", + "getter": "get_data", + "index": -1 + } ] }, { @@ -119778,7 +120301,7 @@ "index": -1 }, { - "type": "Node", + "type": "Object", "name": "shortcut_context", "setter": "set_shortcut_context", "getter": "get_shortcut_context", @@ -120231,7 +120754,7 @@ "is_vararg": false, "is_virtual": true, "return_value": { - "type": "Array" + "type": "typedarray::Array" }, "arguments": [ { @@ -120448,7 +120971,7 @@ "is_virtual": false, "hash": 663333327, "return_value": { - "type": "Array" + "type": "typedarray::Array" }, "arguments": [ { @@ -127934,6 +128457,554 @@ } ] }, + { + "name": "NavigationPathQueryParameters2D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "enums": [ + { + "name": "PathfindingAlgorithm", + "is_bitfield": false, + "values": [ + { + "name": "PATHFINDING_ALGORITHM_ASTAR", + "value": 0 + } + ] + }, + { + "name": "PathPostProcessing", + "is_bitfield": false, + "values": [ + { + "name": "PATH_POSTPROCESSING_CORRIDORFUNNEL", + "value": 0 + }, + { + "name": "PATH_POSTPROCESSING_EDGECENTERED", + "value": 1 + } + ] + } + ], + "methods": [ + { + "name": "set_pathfinding_algorithm", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2783519915, + "arguments": [ + { + "name": "pathfinding_algorithm", + "type": "enum::NavigationPathQueryParameters2D.PathfindingAlgorithm" + } + ] + }, + { + "name": "get_pathfinding_algorithm", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3000421146, + "return_value": { + "type": "enum::NavigationPathQueryParameters2D.PathfindingAlgorithm" + } + }, + { + "name": "set_path_postprocessing", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2864409082, + "arguments": [ + { + "name": "path_postprocessing", + "type": "enum::NavigationPathQueryParameters2D.PathPostProcessing" + } + ] + }, + { + "name": "get_path_postprocessing", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3798118993, + "return_value": { + "type": "enum::NavigationPathQueryParameters2D.PathPostProcessing" + } + }, + { + "name": "set_map", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "map", + "type": "RID" + } + ] + }, + { + "name": "get_map", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + }, + { + "name": "set_start_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "start_position", + "type": "Vector2" + } + ] + }, + { + "name": "get_start_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_target_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "target_position", + "type": "Vector2" + } + ] + }, + { + "name": "get_target_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_navigation_layers", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "navigation_layers", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_navigation_layers", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + } + ], + "properties": [ + { + "type": "RID", + "name": "map", + "setter": "set_map", + "getter": "get_map", + "index": -1 + }, + { + "type": "Vector2", + "name": "start_position", + "setter": "set_start_position", + "getter": "get_start_position", + "index": -1 + }, + { + "type": "Vector2", + "name": "target_position", + "setter": "set_target_position", + "getter": "get_target_position", + "index": -1 + }, + { + "type": "int", + "name": "navigation_layers", + "setter": "set_navigation_layers", + "getter": "get_navigation_layers", + "index": -1 + }, + { + "type": "int", + "name": "pathfinding_algorithm", + "setter": "set_pathfinding_algorithm", + "getter": "get_pathfinding_algorithm", + "index": -1 + }, + { + "type": "int", + "name": "path_postprocessing", + "setter": "set_path_postprocessing", + "getter": "get_path_postprocessing", + "index": -1 + } + ] + }, + { + "name": "NavigationPathQueryParameters3D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "enums": [ + { + "name": "PathfindingAlgorithm", + "is_bitfield": false, + "values": [ + { + "name": "PATHFINDING_ALGORITHM_ASTAR", + "value": 0 + } + ] + }, + { + "name": "PathPostProcessing", + "is_bitfield": false, + "values": [ + { + "name": "PATH_POSTPROCESSING_CORRIDORFUNNEL", + "value": 0 + }, + { + "name": "PATH_POSTPROCESSING_EDGECENTERED", + "value": 1 + } + ] + } + ], + "methods": [ + { + "name": "set_pathfinding_algorithm", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 394560454, + "arguments": [ + { + "name": "pathfinding_algorithm", + "type": "enum::NavigationPathQueryParameters3D.PathfindingAlgorithm" + } + ] + }, + { + "name": "get_pathfinding_algorithm", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3398491350, + "return_value": { + "type": "enum::NavigationPathQueryParameters3D.PathfindingAlgorithm" + } + }, + { + "name": "set_path_postprocessing", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2267362344, + "arguments": [ + { + "name": "path_postprocessing", + "type": "enum::NavigationPathQueryParameters3D.PathPostProcessing" + } + ] + }, + { + "name": "get_path_postprocessing", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3883858360, + "return_value": { + "type": "enum::NavigationPathQueryParameters3D.PathPostProcessing" + } + }, + { + "name": "set_map", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "map", + "type": "RID" + } + ] + }, + { + "name": "get_map", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + }, + { + "name": "set_start_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "start_position", + "type": "Vector3" + } + ] + }, + { + "name": "get_start_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_target_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "target_position", + "type": "Vector3" + } + ] + }, + { + "name": "get_target_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_navigation_layers", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "navigation_layers", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_navigation_layers", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + } + ], + "properties": [ + { + "type": "RID", + "name": "map", + "setter": "set_map", + "getter": "get_map", + "index": -1 + }, + { + "type": "Vector3", + "name": "start_position", + "setter": "set_start_position", + "getter": "get_start_position", + "index": -1 + }, + { + "type": "Vector3", + "name": "target_position", + "setter": "set_target_position", + "getter": "get_target_position", + "index": -1 + }, + { + "type": "int", + "name": "navigation_layers", + "setter": "set_navigation_layers", + "getter": "get_navigation_layers", + "index": -1 + }, + { + "type": "int", + "name": "pathfinding_algorithm", + "setter": "set_pathfinding_algorithm", + "getter": "get_pathfinding_algorithm", + "index": -1 + }, + { + "type": "int", + "name": "path_postprocessing", + "setter": "set_path_postprocessing", + "getter": "get_path_postprocessing", + "index": -1 + } + ] + }, + { + "name": "NavigationPathQueryResult2D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "set_path", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1509147220, + "arguments": [ + { + "name": "path", + "type": "PackedVector2Array" + } + ] + }, + { + "name": "get_path", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2961356807, + "return_value": { + "type": "PackedVector2Array" + } + } + ], + "properties": [ + { + "type": "PackedVector2Array", + "name": "path", + "setter": "set_path", + "getter": "get_path", + "index": -1 + } + ] + }, + { + "name": "NavigationPathQueryResult3D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "set_path", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 334873810, + "arguments": [ + { + "name": "path", + "type": "PackedVector3Array" + } + ] + }, + { + "name": "get_path", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 497664490, + "return_value": { + "type": "PackedVector3Array" + } + } + ], + "properties": [ + { + "type": "PackedVector3Array", + "name": "path", + "setter": "set_path", + "getter": "get_path", + "index": -1 + } + ] + }, { "name": "NavigationPolygon", "is_refcounted": true, @@ -128655,7 +129726,7 @@ "is_virtual": false, "hash": 3995934104, "return_value": { - "type": "Array" + "type": "typedarray::RID" } }, { @@ -128900,7 +129971,7 @@ "is_virtual": false, "hash": 2684255073, "return_value": { - "type": "Array" + "type": "typedarray::RID" }, "arguments": [ { @@ -128917,7 +129988,7 @@ "is_virtual": false, "hash": 2684255073, "return_value": { - "type": "Array" + "type": "typedarray::RID" }, "arguments": [ { @@ -128934,7 +130005,7 @@ "is_virtual": false, "hash": 2684255073, "return_value": { - "type": "Array" + "type": "typedarray::RID" }, "arguments": [ { @@ -128957,6 +130028,24 @@ } ] }, + { + "name": "query_path", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3394638789, + "arguments": [ + { + "name": "parameters", + "type": "NavigationPathQueryParameters2D" + }, + { + "name": "result", + "type": "NavigationPathQueryResult2D" + } + ] + }, { "name": "region_create", "is_const": true, @@ -129776,7 +130865,7 @@ "is_virtual": false, "hash": 3995934104, "return_value": { - "type": "Array" + "type": "typedarray::RID" } }, { @@ -130107,7 +131196,7 @@ "is_virtual": false, "hash": 2684255073, "return_value": { - "type": "Array" + "type": "typedarray::RID" }, "arguments": [ { @@ -130124,7 +131213,7 @@ "is_virtual": false, "hash": 2684255073, "return_value": { - "type": "Array" + "type": "typedarray::RID" }, "arguments": [ { @@ -130141,7 +131230,7 @@ "is_virtual": false, "hash": 2684255073, "return_value": { - "type": "Array" + "type": "typedarray::RID" }, "arguments": [ { @@ -130164,6 +131253,24 @@ } ] }, + { + "name": "query_path", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3415008901, + "arguments": [ + { + "name": "parameters", + "type": "NavigationPathQueryParameters3D" + }, + { + "name": "result", + "type": "NavigationPathQueryResult3D" + } + ] + }, { "name": "region_create", "is_const": true, @@ -131738,7 +132845,7 @@ "is_virtual": false, "hash": 873284517, "return_value": { - "type": "Array" + "type": "typedarray::Node" }, "arguments": [ { @@ -131868,7 +132975,7 @@ "is_virtual": false, "hash": 1585018254, "return_value": { - "type": "Array" + "type": "typedarray::Node" }, "arguments": [ { @@ -132093,7 +133200,7 @@ "is_virtual": false, "hash": 3995934104, "return_value": { - "type": "Array" + "type": "typedarray::StringName" } }, { @@ -133567,6 +134674,10 @@ { "name": "NOTIFICATION_VISIBILITY_CHANGED", "value": 43 + }, + { + "name": "NOTIFICATION_LOCAL_TRANSFORM_CHANGED", + "value": 44 } ], "enums": [ @@ -134044,7 +135155,7 @@ "is_virtual": false, "hash": 3995934104, "return_value": { - "type": "Array" + "type": "typedarray::Node3DGizmo" } }, { @@ -135655,6 +136766,28 @@ "type": "String" } }, + { + "name": "get_distribution_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "get_version", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, { "name": "get_cmdline_args", "is_const": false, @@ -136269,7 +137402,7 @@ "is_virtual": false, "hash": 3995934104, "return_value": { - "type": "Array" + "type": "typedarray::Dictionary" } }, { @@ -136280,7 +137413,7 @@ "is_virtual": false, "hash": 3995934104, "return_value": { - "type": "Array" + "type": "typedarray::Dictionary" } }, { @@ -136601,7 +137734,7 @@ "is_virtual": false, "hash": 3995934104, "return_value": { - "type": "Array" + "type": "typedarray::Dictionary" } }, { @@ -136612,7 +137745,7 @@ "is_virtual": false, "hash": 3147814860, "return_value": { - "type": "Array" + "type": "typedarray::Dictionary" }, "arguments": [ { @@ -136629,7 +137762,7 @@ "is_virtual": false, "hash": 3995934104, "return_value": { - "type": "Array" + "type": "typedarray::Dictionary" } }, { @@ -137153,7 +138286,7 @@ "arguments": [ { "name": "packet_data", - "type": "Array" + "type": "typedarray::Array" } ] }, @@ -137165,7 +138298,7 @@ "is_virtual": false, "hash": 3995934104, "return_value": { - "type": "Array" + "type": "typedarray::Array" } }, { @@ -137235,7 +138368,7 @@ ], "properties": [ { - "type": "Array", + "type": "typedarray::PackedByteArray", "name": "packet_data", "setter": "set_packet_data", "getter": "get_packet_data", @@ -137337,780 +138470,6 @@ } ] }, - { - "name": "OpenXRAction", - "is_refcounted": true, - "is_instantiable": true, - "inherits": "Resource", - "api_type": "core", - "enums": [ - { - "name": "ActionType", - "is_bitfield": false, - "values": [ - { - "name": "OPENXR_ACTION_BOOL", - "value": 0 - }, - { - "name": "OPENXR_ACTION_FLOAT", - "value": 1 - }, - { - "name": "OPENXR_ACTION_VECTOR2", - "value": 2 - }, - { - "name": "OPENXR_ACTION_POSE", - "value": 3 - } - ] - } - ], - "methods": [ - { - "name": "set_localized_name", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 83702148, - "arguments": [ - { - "name": "localized_name", - "type": "String" - } - ] - }, - { - "name": "get_localized_name", - "is_const": true, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 201670096, - "return_value": { - "type": "String" - } - }, - { - "name": "set_action_type", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 1675238366, - "arguments": [ - { - "name": "action_type", - "type": "enum::OpenXRAction.ActionType" - } - ] - }, - { - "name": "get_action_type", - "is_const": true, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 3536542431, - "return_value": { - "type": "enum::OpenXRAction.ActionType" - } - }, - { - "name": "set_toplevel_paths", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 4015028928, - "arguments": [ - { - "name": "toplevel_paths", - "type": "PackedStringArray" - } - ] - }, - { - "name": "get_toplevel_paths", - "is_const": true, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 1139954409, - "return_value": { - "type": "PackedStringArray" - } - } - ], - "properties": [ - { - "type": "String", - "name": "localized_name", - "setter": "set_localized_name", - "getter": "get_localized_name", - "index": -1 - }, - { - "type": "int", - "name": "action_type", - "setter": "set_action_type", - "getter": "get_action_type", - "index": -1 - }, - { - "type": "Array", - "name": "toplevel_paths", - "setter": "set_toplevel_paths", - "getter": "get_toplevel_paths", - "index": -1 - } - ] - }, - { - "name": "OpenXRActionMap", - "is_refcounted": true, - "is_instantiable": true, - "inherits": "Resource", - "api_type": "core", - "methods": [ - { - "name": "set_action_sets", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 381264803, - "arguments": [ - { - "name": "action_sets", - "type": "Array" - } - ] - }, - { - "name": "get_action_sets", - "is_const": true, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 3995934104, - "return_value": { - "type": "Array" - } - }, - { - "name": "get_action_set_count", - "is_const": true, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 3905245786, - "return_value": { - "type": "int", - "meta": "int32" - } - }, - { - "name": "find_action_set", - "is_const": true, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 1888809267, - "return_value": { - "type": "OpenXRActionSet" - }, - "arguments": [ - { - "name": "name", - "type": "String" - } - ] - }, - { - "name": "get_action_set", - "is_const": true, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 1789580336, - "return_value": { - "type": "OpenXRActionSet" - }, - "arguments": [ - { - "name": "idx", - "type": "int", - "meta": "int32" - } - ] - }, - { - "name": "add_action_set", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 2093310581, - "arguments": [ - { - "name": "action_set", - "type": "OpenXRActionSet" - } - ] - }, - { - "name": "remove_action_set", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 2093310581, - "arguments": [ - { - "name": "action_set", - "type": "OpenXRActionSet" - } - ] - }, - { - "name": "set_interaction_profiles", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 381264803, - "arguments": [ - { - "name": "interaction_profiles", - "type": "Array" - } - ] - }, - { - "name": "get_interaction_profiles", - "is_const": true, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 3995934104, - "return_value": { - "type": "Array" - } - }, - { - "name": "get_interaction_profile_count", - "is_const": true, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 3905245786, - "return_value": { - "type": "int", - "meta": "int32" - } - }, - { - "name": "find_interaction_profile", - "is_const": true, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 3095875538, - "return_value": { - "type": "OpenXRInteractionProfile" - }, - "arguments": [ - { - "name": "name", - "type": "String" - } - ] - }, - { - "name": "get_interaction_profile", - "is_const": true, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 2546151210, - "return_value": { - "type": "OpenXRInteractionProfile" - }, - "arguments": [ - { - "name": "idx", - "type": "int", - "meta": "int32" - } - ] - }, - { - "name": "add_interaction_profile", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 2697953512, - "arguments": [ - { - "name": "interaction_profile", - "type": "OpenXRInteractionProfile" - } - ] - }, - { - "name": "remove_interaction_profile", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 2697953512, - "arguments": [ - { - "name": "interaction_profile", - "type": "OpenXRInteractionProfile" - } - ] - }, - { - "name": "create_default_action_sets", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 3218959716 - } - ], - "properties": [ - { - "type": "OpenXRActionSet", - "name": "action_sets", - "setter": "set_action_sets", - "getter": "get_action_sets", - "index": -1 - }, - { - "type": "OpenXRInteractionProfile", - "name": "interaction_profiles", - "setter": "set_interaction_profiles", - "getter": "get_interaction_profiles", - "index": -1 - } - ] - }, - { - "name": "OpenXRActionSet", - "is_refcounted": true, - "is_instantiable": true, - "inherits": "Resource", - "api_type": "core", - "methods": [ - { - "name": "set_localized_name", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 83702148, - "arguments": [ - { - "name": "localized_name", - "type": "String" - } - ] - }, - { - "name": "get_localized_name", - "is_const": true, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 201670096, - "return_value": { - "type": "String" - } - }, - { - "name": "set_priority", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 1286410249, - "arguments": [ - { - "name": "priority", - "type": "int", - "meta": "int32" - } - ] - }, - { - "name": "get_priority", - "is_const": true, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 3905245786, - "return_value": { - "type": "int", - "meta": "int32" - } - }, - { - "name": "get_action_count", - "is_const": true, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 3905245786, - "return_value": { - "type": "int", - "meta": "int32" - } - }, - { - "name": "set_actions", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 381264803, - "arguments": [ - { - "name": "actions", - "type": "Array" - } - ] - }, - { - "name": "get_actions", - "is_const": true, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 3995934104, - "return_value": { - "type": "Array" - } - }, - { - "name": "add_action", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 349361333, - "arguments": [ - { - "name": "action", - "type": "OpenXRAction" - } - ] - }, - { - "name": "remove_action", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 349361333, - "arguments": [ - { - "name": "action", - "type": "OpenXRAction" - } - ] - } - ], - "properties": [ - { - "type": "String", - "name": "localized_name", - "setter": "set_localized_name", - "getter": "get_localized_name", - "index": -1 - }, - { - "type": "int", - "name": "priority", - "setter": "set_priority", - "getter": "get_priority", - "index": -1 - }, - { - "type": "OpenXRAction", - "name": "actions", - "setter": "set_actions", - "getter": "get_actions", - "index": -1 - } - ] - }, - { - "name": "OpenXRIPBinding", - "is_refcounted": true, - "is_instantiable": true, - "inherits": "Resource", - "api_type": "core", - "methods": [ - { - "name": "set_action", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 349361333, - "arguments": [ - { - "name": "action", - "type": "OpenXRAction" - } - ] - }, - { - "name": "get_action", - "is_const": true, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 4072409085, - "return_value": { - "type": "OpenXRAction" - } - }, - { - "name": "get_path_count", - "is_const": true, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 3905245786, - "return_value": { - "type": "int", - "meta": "int32" - } - }, - { - "name": "set_paths", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 4015028928, - "arguments": [ - { - "name": "paths", - "type": "PackedStringArray" - } - ] - }, - { - "name": "get_paths", - "is_const": true, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 1139954409, - "return_value": { - "type": "PackedStringArray" - } - }, - { - "name": "has_path", - "is_const": true, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 3927539163, - "return_value": { - "type": "bool" - }, - "arguments": [ - { - "name": "path", - "type": "String" - } - ] - }, - { - "name": "add_path", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 83702148, - "arguments": [ - { - "name": "path", - "type": "String" - } - ] - }, - { - "name": "remove_path", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 83702148, - "arguments": [ - { - "name": "path", - "type": "String" - } - ] - } - ], - "properties": [ - { - "type": "OpenXRAction", - "name": "action", - "setter": "set_action", - "getter": "get_action", - "index": -1 - }, - { - "type": "Array", - "name": "paths", - "setter": "set_paths", - "getter": "get_paths", - "index": -1 - } - ] - }, - { - "name": "OpenXRInteractionProfile", - "is_refcounted": true, - "is_instantiable": true, - "inherits": "Resource", - "api_type": "core", - "methods": [ - { - "name": "set_interaction_profile_path", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 83702148, - "arguments": [ - { - "name": "interaction_profile_path", - "type": "String" - } - ] - }, - { - "name": "get_interaction_profile_path", - "is_const": true, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 201670096, - "return_value": { - "type": "String" - } - }, - { - "name": "get_binding_count", - "is_const": true, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 3905245786, - "return_value": { - "type": "int", - "meta": "int32" - } - }, - { - "name": "get_binding", - "is_const": true, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 3934429652, - "return_value": { - "type": "OpenXRIPBinding" - }, - "arguments": [ - { - "name": "index", - "type": "int", - "meta": "int32" - } - ] - }, - { - "name": "set_bindings", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 381264803, - "arguments": [ - { - "name": "bindings", - "type": "Array" - } - ] - }, - { - "name": "get_bindings", - "is_const": true, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 3995934104, - "return_value": { - "type": "Array" - } - } - ], - "properties": [ - { - "type": "String", - "name": "interaction_profile_path", - "setter": "set_interaction_profile_path", - "getter": "get_interaction_profile_path", - "index": -1 - }, - { - "type": "OpenXRIPBinding", - "name": "bindings", - "setter": "set_bindings", - "getter": "get_bindings", - "index": -1 - } - ] - }, - { - "name": "OpenXRInterface", - "is_refcounted": true, - "is_instantiable": true, - "inherits": "XRInterface", - "api_type": "core", - "signals": [ - { - "name": "session_begun" - }, - { - "name": "session_stopping" - }, - { - "name": "session_focussed" - }, - { - "name": "session_visible" - }, - { - "name": "pose_recentered" - } - ] - }, { "name": "OptimizedTranslation", "is_refcounted": true, @@ -142513,7 +142872,7 @@ "is_virtual": false, "hash": 2915620761, "return_value": { - "type": "Array" + "type": "typedarray::StringName" } } ] @@ -143762,7 +144121,7 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 1707139212, + "hash": 3198110832, "return_value": { "type": "KinematicCollision2D" }, @@ -143781,6 +144140,11 @@ "type": "float", "meta": "float", "default_value": "0.08" + }, + { + "name": "recovery_as_collision", + "type": "bool", + "default_value": "false" } ] }, @@ -143790,7 +144154,7 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 498344496, + "hash": 1369208982, "return_value": { "type": "bool" }, @@ -143813,6 +144177,11 @@ "type": "float", "meta": "float", "default_value": "0.08" + }, + { + "name": "recovery_as_collision", + "type": "bool", + "default_value": "false" } ] }, @@ -143824,7 +144193,7 @@ "is_virtual": false, "hash": 2915620761, "return_value": { - "type": "Array" + "type": "typedarray::PhysicsBody2D" } }, { @@ -143870,7 +144239,7 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 3373113249, + "hash": 1140990067, "return_value": { "type": "KinematicCollision3D" }, @@ -143890,6 +144259,11 @@ "meta": "float", "default_value": "0.001" }, + { + "name": "recovery_as_collision", + "type": "bool", + "default_value": "false" + }, { "name": "max_collisions", "type": "int", @@ -143904,7 +144278,7 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 3957778045, + "hash": 2082761915, "return_value": { "type": "bool" }, @@ -143928,6 +144302,11 @@ "meta": "float", "default_value": "0.001" }, + { + "name": "recovery_as_collision", + "type": "bool", + "default_value": "false" + }, { "name": "max_collisions", "type": "int", @@ -143979,7 +144358,7 @@ "is_virtual": false, "hash": 2915620761, "return_value": { - "type": "Array" + "type": "typedarray::PhysicsBody3D" } }, { @@ -146615,7 +146994,7 @@ "is_virtual": false, "hash": 3278207904, "return_value": { - "type": "Array" + "type": "typedarray::Dictionary" }, "arguments": [ { @@ -146655,7 +147034,7 @@ "is_virtual": false, "hash": 3803848594, "return_value": { - "type": "Array" + "type": "typedarray::Dictionary" }, "arguments": [ { @@ -146695,7 +147074,7 @@ "is_virtual": false, "hash": 3803848594, "return_value": { - "type": "Array" + "type": "typedarray::PackedVector2Array" }, "arguments": [ { @@ -147025,7 +147404,7 @@ "is_virtual": false, "hash": 45993382, "return_value": { - "type": "Array" + "type": "typedarray::Dictionary" }, "arguments": [ { @@ -147065,7 +147444,7 @@ "is_virtual": false, "hash": 550215980, "return_value": { - "type": "Array" + "type": "typedarray::Dictionary" }, "arguments": [ { @@ -147105,7 +147484,7 @@ "is_virtual": false, "hash": 550215980, "return_value": { - "type": "Array" + "type": "typedarray::PackedVector2Array" }, "arguments": [ { @@ -147683,7 +148062,7 @@ "arguments": [ { "name": "exclude", - "type": "Array" + "type": "typedarray::RID" } ] }, @@ -147695,7 +148074,7 @@ "is_virtual": false, "hash": 3995934104, "return_value": { - "type": "Array" + "type": "typedarray::RID" } }, { @@ -147772,7 +148151,7 @@ "index": -1 }, { - "type": "Array", + "type": "typedarray::RID", "name": "exclude", "setter": "set_exclude", "getter": "get_exclude", @@ -147945,7 +148324,7 @@ "index": -1 }, { - "type": "Array", + "type": "typedarray::RID", "name": "exclude", "setter": "set_exclude", "getter": "get_exclude", @@ -148001,7 +148380,7 @@ }, { "name": "exclude", - "type": "Array", + "type": "typedarray::RID", "default_value": "[]" } ] @@ -148093,7 +148472,7 @@ "arguments": [ { "name": "exclude", - "type": "Array" + "type": "typedarray::RID" } ] }, @@ -148105,7 +148484,7 @@ "is_virtual": false, "hash": 3995934104, "return_value": { - "type": "Array" + "type": "typedarray::RID" } }, { @@ -148207,7 +148586,7 @@ "index": -1 }, { - "type": "Array", + "type": "typedarray::RID", "name": "exclude", "setter": "set_exclude", "getter": "get_exclude", @@ -148501,7 +148880,7 @@ "index": -1 }, { - "type": "Array", + "type": "typedarray::RID", "name": "exclude", "setter": "set_exclude", "getter": "get_exclude", @@ -152687,7 +153066,7 @@ "is_vararg": false, "is_virtual": true, "return_value": { - "type": "Array" + "type": "typedarray::RID" }, "arguments": [ { @@ -152807,8 +153186,8 @@ "type": "RID" }, { - "name": "callback", - "type": "PhysicsServer2DExtensionStateCallback*" + "name": "callable", + "type": "Callable" } ] }, @@ -158209,7 +158588,7 @@ "is_vararg": false, "is_virtual": true, "return_value": { - "type": "Array" + "type": "typedarray::RID" }, "arguments": [ { @@ -158329,8 +158708,8 @@ "type": "RID" }, { - "name": "callback", - "type": "PhysicsServer3DExtensionStateCallback*" + "name": "callable", + "type": "Callable" } ] }, @@ -158612,7 +158991,7 @@ "is_vararg": false, "is_virtual": true, "return_value": { - "type": "Array" + "type": "typedarray::RID" }, "arguments": [ { @@ -160003,7 +160382,7 @@ "arguments": [ { "name": "exclude", - "type": "Array" + "type": "typedarray::RID" } ] }, @@ -160015,7 +160394,7 @@ "is_virtual": false, "hash": 3995934104, "return_value": { - "type": "Array" + "type": "typedarray::RID" } }, { @@ -160078,7 +160457,7 @@ "index": -1 }, { - "type": "Array", + "type": "typedarray::RID", "name": "exclude", "setter": "set_exclude", "getter": "get_exclude", @@ -160381,7 +160760,7 @@ "index": -1 }, { - "type": "Array", + "type": "typedarray::RID", "name": "exclude", "setter": "set_exclude", "getter": "get_exclude", @@ -160555,7 +160934,7 @@ "is_virtual": false, "hash": 3995934104, "return_value": { - "type": "Array" + "type": "typedarray::RID" } }, { @@ -160568,7 +160947,7 @@ "arguments": [ { "name": "exclude_list", - "type": "Array" + "type": "typedarray::RID" } ] }, @@ -160653,7 +161032,7 @@ "index": -1 }, { - "type": "Array", + "type": "typedarray::RID", "name": "exclude_bodies", "setter": "set_exclude_bodies", "getter": "get_exclude_bodies", @@ -160924,7 +161303,7 @@ "index": -1 }, { - "type": "Array", + "type": "typedarray::RID", "name": "exclude_bodies", "setter": "set_exclude_bodies", "getter": "get_exclude_bodies", @@ -165404,6 +165783,24 @@ } ] }, + { + "name": "set_restart_if_changed", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2678287736, + "arguments": [ + { + "name": "name", + "type": "String" + }, + { + "name": "restart", + "type": "bool" + } + ] + }, { "name": "clear", "is_const": false, @@ -165610,6 +166007,13 @@ } ] }, + { + "name": "QuadMesh", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "PlaneMesh", + "api_type": "core" + }, { "name": "QuadOccluder3D", "is_refcounted": true, @@ -166033,7 +166437,7 @@ "arguments": [ { "name": "attachments", - "type": "Array" + "type": "typedarray::RDPipelineColorBlendStateAttachment" } ] }, @@ -166045,7 +166449,7 @@ "is_virtual": false, "hash": 3995934104, "return_value": { - "type": "Array" + "type": "typedarray::RDPipelineColorBlendStateAttachment" } } ], @@ -166072,7 +166476,7 @@ "index": -1 }, { - "type": "Array", + "type": "typedarray::RDPipelineColorBlendStateAttachment", "name": "attachments", "setter": "set_attachments", "getter": "get_attachments", @@ -167294,7 +167698,7 @@ "arguments": [ { "name": "masks", - "type": "Array" + "type": "typedarray::int" } ] }, @@ -167306,7 +167710,7 @@ "is_virtual": false, "hash": 3995934104, "return_value": { - "type": "Array" + "type": "typedarray::int" } } ], @@ -167347,7 +167751,7 @@ "index": -1 }, { - "type": "Array", + "type": "typedarray::int", "name": "sample_masks", "setter": "set_sample_masks", "getter": "get_sample_masks", @@ -169258,7 +169662,7 @@ "is_virtual": false, "hash": 3995934104, "return_value": { - "type": "Array" + "type": "typedarray::RID" } } ], @@ -171007,6 +171411,18 @@ "return_value": { "type": "bool" } + }, + { + "name": "get_reference_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } } ] }, @@ -171676,7 +172092,7 @@ "is_virtual": false, "hash": 3354100289, "return_value": { - "type": "Array" + "type": "typedarray::RegExMatch" }, "arguments": [ { @@ -174343,7 +174759,7 @@ }, { "name": "data", - "type": "Array", + "type": "typedarray::PackedByteArray", "default_value": "[]" } ] @@ -174668,7 +175084,7 @@ "arguments": [ { "name": "attachments", - "type": "Array" + "type": "typedarray::RDAttachmentFormat" }, { "name": "view_count", @@ -174692,11 +175108,11 @@ "arguments": [ { "name": "attachments", - "type": "Array" + "type": "typedarray::RDAttachmentFormat" }, { "name": "passes", - "type": "Array" + "type": "typedarray::RDFramebufferPass" }, { "name": "view_count", @@ -174762,7 +175178,7 @@ "arguments": [ { "name": "textures", - "type": "Array" + "type": "typedarray::RID" }, { "name": "validate_with_format", @@ -174791,11 +175207,11 @@ "arguments": [ { "name": "textures", - "type": "Array" + "type": "typedarray::RID" }, { "name": "passes", - "type": "Array" + "type": "typedarray::RDFramebufferPass" }, { "name": "validate_with_format", @@ -174933,7 +175349,7 @@ "arguments": [ { "name": "vertex_descriptions", - "type": "Array" + "type": "typedarray::RDVertexAttribute" } ] }, @@ -175189,7 +175605,7 @@ "arguments": [ { "name": "uniforms", - "type": "Array" + "type": "typedarray::RDUniform" }, { "name": "shader", @@ -175365,7 +175781,7 @@ }, { "name": "specialization_constants", - "type": "Array", + "type": "typedarray::RDPipelineSpecializationConstant", "default_value": "[]" } ] @@ -175404,7 +175820,7 @@ }, { "name": "specialization_constants", - "type": "Array", + "type": "typedarray::RDPipelineSpecializationConstant", "default_value": "[]" } ] @@ -175624,7 +176040,7 @@ }, { "name": "storage_textures", - "type": "Array", + "type": "typedarray::RID", "default_value": "[]" } ] @@ -178547,7 +178963,7 @@ "arguments": [ { "name": "layers", - "type": "Array" + "type": "typedarray::Image" }, { "name": "layered_type", @@ -178591,7 +179007,7 @@ }, { "name": "data", - "type": "Array" + "type": "typedarray::Image" } ] }, @@ -178649,7 +179065,7 @@ }, { "name": "data", - "type": "Array" + "type": "typedarray::Image" } ] }, @@ -178757,7 +179173,7 @@ "is_virtual": false, "hash": 2684255073, "return_value": { - "type": "Array" + "type": "typedarray::Image" }, "arguments": [ { @@ -178933,7 +179349,7 @@ "is_virtual": false, "hash": 2684255073, "return_value": { - "type": "Array" + "type": "typedarray::Dictionary" }, "arguments": [ { @@ -179140,7 +179556,7 @@ "arguments": [ { "name": "surfaces", - "type": "Array" + "type": "typedarray::Dictionary" }, { "name": "blend_shape_count", @@ -179468,7 +179884,7 @@ "is_virtual": false, "hash": 1778388067, "return_value": { - "type": "Array" + "type": "typedarray::Array" }, "arguments": [ { @@ -181939,7 +182355,7 @@ }, { "name": "bind_poses", - "type": "Array" + "type": "typedarray::Transform3D" } ] }, @@ -185288,7 +185704,7 @@ "is_virtual": false, "hash": 2684255073, "return_value": { - "type": "Array" + "type": "typedarray::Dictionary" }, "arguments": [ { @@ -185358,7 +185774,7 @@ "arguments": [ { "name": "convex", - "type": "Array" + "type": "typedarray::Plane" }, { "name": "scenario", @@ -185375,7 +185791,7 @@ "is_virtual": false, "hash": 1904608558, "return_value": { - "type": "Array" + "type": "typedarray::Image" }, "arguments": [ { @@ -185384,7 +185800,7 @@ }, { "name": "material_overrides", - "type": "Array" + "type": "typedarray::RID" }, { "name": "image_size", @@ -190709,7 +191125,7 @@ "index": -1 }, { - "type": "Array", + "type": "typedarray::24/17:RichTextEffect", "name": "custom_effects", "setter": "set_effects", "getter": "get_effects", @@ -191667,7 +192083,7 @@ "is_virtual": false, "hash": 3995934104, "return_value": { - "type": "Array" + "type": "typedarray::Node2D" } } ], @@ -192735,7 +193151,7 @@ "is_virtual": false, "hash": 3995934104, "return_value": { - "type": "Array" + "type": "typedarray::Node3D" } } ], @@ -193322,7 +193738,7 @@ "is_virtual": false, "hash": 3995934104, "return_value": { - "type": "Array" + "type": "typedarray::NodePath" } }, { @@ -194170,7 +194586,7 @@ "is_virtual": false, "hash": 2915620761, "return_value": { - "type": "Array" + "type": "typedarray::Tween" } }, { @@ -194367,7 +194783,7 @@ "is_virtual": false, "hash": 689397652, "return_value": { - "type": "Array" + "type": "typedarray::Node" }, "arguments": [ { @@ -194835,7 +195251,7 @@ "is_virtual": false, "hash": 2915620761, "return_value": { - "type": "Array" + "type": "typedarray::Dictionary" } }, { @@ -194846,7 +195262,7 @@ "is_virtual": false, "hash": 2915620761, "return_value": { - "type": "Array" + "type": "typedarray::Dictionary" } }, { @@ -194857,7 +195273,7 @@ "is_virtual": false, "hash": 2915620761, "return_value": { - "type": "Array" + "type": "typedarray::Dictionary" } }, { @@ -194984,7 +195400,7 @@ "is_virtual": false, "hash": 3995934104, "return_value": { - "type": "Array" + "type": "typedarray::ScriptEditorBase" } }, { @@ -195049,7 +195465,7 @@ "is_virtual": false, "hash": 3995934104, "return_value": { - "type": "Array" + "type": "typedarray::Script" } }, { @@ -195366,7 +195782,7 @@ "is_vararg": false, "is_virtual": true, "return_value": { - "type": "Array" + "type": "typedarray::Dictionary" } }, { @@ -195454,7 +195870,7 @@ "is_vararg": false, "is_virtual": true, "return_value": { - "type": "Array" + "type": "typedarray::Dictionary" } }, { @@ -195503,7 +195919,7 @@ "is_vararg": false, "is_virtual": true, "return_value": { - "type": "Array" + "type": "typedarray::Dictionary" } }, { @@ -195513,7 +195929,7 @@ "is_vararg": false, "is_virtual": true, "return_value": { - "type": "Array" + "type": "typedarray::Dictionary" } }, { @@ -195549,7 +195965,7 @@ "is_vararg": false, "is_virtual": true, "return_value": { - "type": "Array" + "type": "typedarray::StringName" } }, { @@ -195845,7 +196261,7 @@ "is_vararg": false, "is_virtual": true, "return_value": { - "type": "Array" + "type": "typedarray::Dictionary" }, "arguments": [ { @@ -196352,7 +196768,7 @@ "is_vararg": false, "is_virtual": true, "return_value": { - "type": "Array" + "type": "typedarray::Dictionary" } }, { @@ -196396,7 +196812,7 @@ "is_vararg": false, "is_virtual": true, "return_value": { - "type": "Array" + "type": "typedarray::Dictionary" } }, { @@ -196416,7 +196832,7 @@ "is_vararg": false, "is_virtual": true, "return_value": { - "type": "Array" + "type": "typedarray::Dictionary" } }, { @@ -198916,7 +199332,7 @@ ], "properties": [ { - "type": "Array", + "type": "typedarray::24/17:InputEvent", "name": "events", "setter": "set_events", "getter": "get_events", @@ -199900,7 +200316,7 @@ "arguments": [ { "name": "bones", - "type": "Array", + "type": "typedarray::StringName", "default_value": "[]" } ] @@ -202144,7 +202560,7 @@ "arguments": [ { "name": "bones", - "type": "Array", + "type": "typedarray::StringName", "default_value": "[]" } ] @@ -202159,7 +202575,7 @@ "arguments": [ { "name": "bones", - "type": "Array", + "type": "typedarray::StringName", "default_value": "[]" } ] @@ -206657,7 +207073,7 @@ "is_virtual": false, "hash": 2915620761, "return_value": { - "type": "Array" + "type": "typedarray::PhysicsBody3D" } }, { @@ -210361,6 +210777,82 @@ } ] }, + { + "name": "StreamPeerGZIP", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "StreamPeer", + "api_type": "core", + "methods": [ + { + "name": "start_compression", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 781582770, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "use_deflate", + "type": "bool", + "default_value": "false" + }, + { + "name": "buffer_size", + "type": "int", + "meta": "int32", + "default_value": "65535" + } + ] + }, + { + "name": "start_decompression", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 781582770, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "use_deflate", + "type": "bool", + "default_value": "false" + }, + { + "name": "buffer_size", + "type": "int", + "meta": "int32", + "default_value": "65535" + } + ] + }, + { + "name": "finish", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 166280745, + "return_value": { + "type": "enum::Error" + } + }, + { + "name": "clear", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + } + ] + }, { "name": "StreamPeerTCP", "is_refcounted": true, @@ -213373,7 +213865,7 @@ "index": -1 }, { - "type": "Array", + "type": "typedarray::24/17:Font", "name": "fallbacks", "setter": "set_fallbacks", "getter": "get_fallbacks", @@ -221814,7 +222306,7 @@ "is_virtual": false, "hash": 2684255073, "return_value": { - "type": "Array" + "type": "typedarray::Vector2i" }, "arguments": [ { @@ -222677,7 +223169,7 @@ "is_virtual": false, "hash": 1778388067, "return_value": { - "type": "Array" + "type": "typedarray::Vector2i" }, "arguments": [ { @@ -223652,7 +224144,7 @@ }, { "name": "fonts", - "type": "Array" + "type": "typedarray::RID" }, { "name": "size", @@ -223801,7 +224293,7 @@ }, { "name": "fonts", - "type": "Array" + "type": "typedarray::RID" }, { "name": "size", @@ -223951,7 +224443,7 @@ "is_virtual": false, "hash": 2684255073, "return_value": { - "type": "Array" + "type": "typedarray::Dictionary" }, "arguments": [ { @@ -223968,7 +224460,7 @@ "is_virtual": false, "hash": 2670461153, "return_value": { - "type": "Array" + "type": "typedarray::Dictionary" }, "arguments": [ { @@ -224148,7 +224640,7 @@ "is_virtual": false, "hash": 2684255073, "return_value": { - "type": "Array" + "type": "typedarray::Dictionary" }, "arguments": [ { @@ -224712,7 +225204,7 @@ "hash": 1433197768, "return_value": { "type": "int", - "meta": "int32" + "meta": "int64" }, "arguments": [ { @@ -224828,7 +225320,7 @@ "is_virtual": false, "hash": 3310685015, "return_value": { - "type": "Array" + "type": "typedarray::Vector2i" }, "arguments": [ { @@ -225665,7 +226157,7 @@ "is_vararg": false, "is_virtual": true, "return_value": { - "type": "Array" + "type": "typedarray::Vector2i" }, "arguments": [ { @@ -226447,7 +226939,7 @@ "is_vararg": false, "is_virtual": true, "return_value": { - "type": "Array" + "type": "typedarray::Vector2i" }, "arguments": [ { @@ -227344,7 +227836,7 @@ }, { "name": "fonts", - "type": "Array" + "type": "typedarray::RID" }, { "name": "size", @@ -227477,7 +227969,7 @@ }, { "name": "fonts", - "type": "Array" + "type": "typedarray::RID" }, { "name": "size", @@ -228428,7 +228920,7 @@ "is_vararg": false, "is_virtual": true, "return_value": { - "type": "Array" + "type": "typedarray::Vector2i" }, "arguments": [ { @@ -228447,6 +228939,13 @@ } ] }, + { + "name": "TextServerFallback", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "TextServerExtension", + "api_type": "core" + }, { "name": "TextServerManager", "is_refcounted": false, @@ -228520,7 +229019,7 @@ "is_virtual": false, "hash": 3995934104, "return_value": { - "type": "Array" + "type": "typedarray::Dictionary" } }, { @@ -228965,7 +229464,7 @@ "is_vararg": false, "is_virtual": true, "return_value": { - "type": "Array" + "type": "typedarray::Image" } }, { @@ -229034,7 +229533,7 @@ "is_virtual": false, "hash": 3995934104, "return_value": { - "type": "Array" + "type": "typedarray::Image" } } ] @@ -233435,7 +233934,7 @@ }, { "name": "coords_array", - "type": "Array" + "type": "typedarray::Vector2i" } ] }, @@ -233502,7 +234001,7 @@ }, { "name": "cells", - "type": "Array" + "type": "typedarray::Vector2i" }, { "name": "terrain_set", @@ -233536,7 +234035,7 @@ }, { "name": "path", - "type": "Array" + "type": "typedarray::Vector2i" }, { "name": "terrain_set", @@ -233610,7 +234109,7 @@ "is_virtual": false, "hash": 2673526557, "return_value": { - "type": "Array" + "type": "typedarray::Vector2i" }, "arguments": [ { @@ -233627,7 +234126,7 @@ "is_virtual": false, "hash": 663333327, "return_value": { - "type": "Array" + "type": "typedarray::Vector2i" }, "arguments": [ { @@ -233881,7 +234380,7 @@ "is_virtual": false, "hash": 3995934104, "return_value": { - "type": "Array" + "type": "typedarray::Vector2i" } }, { @@ -239230,6 +239729,31 @@ "type": "bool" } }, + { + "name": "set_enable_recursive_folding", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_recursive_folding_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, { "name": "set_drop_mode_flags", "is_const": false, @@ -239484,6 +240008,13 @@ "getter": "is_folding_hidden", "index": -1 }, + { + "type": "bool", + "name": "enable_recursive_folding", + "setter": "set_enable_recursive_folding", + "getter": "is_recursive_folding_enabled", + "index": -1 + }, { "type": "bool", "name": "hide_root", @@ -240236,6 +240767,38 @@ "type": "bool" } }, + { + "name": "set_collapsed_recursive", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_any_collapsed", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2595650253, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "only_visible", + "type": "bool", + "default_value": "false" + } + ] + }, { "name": "set_visible", "is_const": false, @@ -241163,7 +241726,7 @@ "is_virtual": false, "hash": 2915620761, "return_value": { - "type": "Array" + "type": "typedarray::TreeItem" } }, { @@ -242998,36 +243561,28 @@ { "name": "add_do_method", "is_const": false, - "is_vararg": true, + "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 1517810467, + "hash": 1611583062, "arguments": [ { - "name": "object", - "type": "Object" - }, - { - "name": "method", - "type": "StringName" + "name": "callable", + "type": "Callable" } ] }, { "name": "add_undo_method", "is_const": false, - "is_vararg": true, + "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 1517810467, + "hash": 1611583062, "arguments": [ { - "name": "object", - "type": "Object" - }, - { - "name": "method", - "type": "StringName" + "name": "callable", + "type": "Callable" } ] }, @@ -243250,6 +243805,13 @@ } ] }, + { + "name": "UniformSetCacheRD", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "Object", + "api_type": "core" + }, { "name": "VBoxContainer", "is_refcounted": false, @@ -247284,7 +247846,7 @@ "is_virtual": false, "hash": 1441964831, "return_value": { - "type": "Array" + "type": "typedarray::Dictionary" }, "arguments": [ { @@ -248822,11 +249384,11 @@ "arguments": [ { "name": "input_vars", - "type": "Array" + "type": "typedarray::String" }, { "name": "output_vars", - "type": "Array" + "type": "typedarray::String" }, { "name": "mode", @@ -260608,7 +261170,7 @@ "is_virtual": false, "hash": 3995934104, "return_value": { - "type": "Array" + "type": "typedarray::Dictionary" } }, { @@ -260969,10 +261531,6 @@ "name": "PhysicsServer2DExtensionShapeResult", "format": "RID rid;ObjectID collider_id;Object *collider;int shape" }, - { - "name": "PhysicsServer2DExtensionStateCallback", - "format": "void *instance;void (*callback)(void *p_instance, PhysicsDirectBodyState2D *p_state)" - }, { "name": "PhysicsServer3DExtensionMotionCollision", "format": "Vector3 position;Vector3 normal;Vector3 collider_velocity;real_t depth;int local_shape;ObjectID collider_id;RID collider;int collider_shape" @@ -260993,13 +261551,9 @@ "name": "PhysicsServer3DExtensionShapeResult", "format": "RID rid;ObjectID collider_id;Object *collider;int shape" }, - { - "name": "PhysicsServer3DExtensionStateCallback", - "format": "void *instance;void (*callback)(void *p_instance, PhysicsDirectBodyState3D *p_state)" - }, { "name": "ScriptLanguageExtensionProfilingInfo", "format": "StringName signature;uint64_t call_count;uint64_t total_time;uint64_t self_time" } ] -} +} \ No newline at end of file diff --git a/include/godot_cpp/core/type_info.hpp b/include/godot_cpp/core/type_info.hpp index 5ee81f2..ef793ad 100644 --- a/include/godot_cpp/core/type_info.hpp +++ b/include/godot_cpp/core/type_info.hpp @@ -32,6 +32,7 @@ #define GODOT_TYPE_INFO_HPP #include +#include #include #include @@ -284,6 +285,106 @@ inline const char *__constant_get_bitfield_name(T param, const char *p_constant) return GetTypeInfo>::get_class_info().class_name; } +template +struct PtrToArg> { + _FORCE_INLINE_ static TypedArray convert(const void *p_ptr) { + return TypedArray(*reinterpret_cast(p_ptr)); + } + typedef Array EncodeT; + _FORCE_INLINE_ static void encode(TypedArray p_val, void *p_ptr) { + *(Array *)p_ptr = p_val; + } +}; + +template +struct PtrToArg &> { + typedef Array EncodeT; + _FORCE_INLINE_ static TypedArray + convert(const void *p_ptr) { + return TypedArray(*reinterpret_cast(p_ptr)); + } +}; + +template +struct GetTypeInfo> { + static constexpr GDNativeVariantType VARIANT_TYPE = GDNATIVE_VARIANT_TYPE_ARRAY; + static constexpr GDNativeExtensionClassMethodArgumentMetadata METADATA = GDNATIVE_EXTENSION_METHOD_ARGUMENT_METADATA_NONE; + static inline GDNativePropertyInfo get_class_info() { + return make_property_info(GDNATIVE_VARIANT_TYPE_ARRAY, "", PROPERTY_HINT_ARRAY_TYPE, T::get_class_static()); + } +}; + +template +struct GetTypeInfo &> { + static constexpr GDNativeVariantType VARIANT_TYPE = GDNATIVE_VARIANT_TYPE_ARRAY; + static constexpr GDNativeExtensionClassMethodArgumentMetadata METADATA = GDNATIVE_EXTENSION_METHOD_ARGUMENT_METADATA_NONE; + static inline GDNativePropertyInfo get_class_info() { + return make_property_info(GDNATIVE_VARIANT_TYPE_ARRAY, "", PROPERTY_HINT_ARRAY_TYPE, T::get_class_static()); + } +}; + +#define MAKE_TYPED_ARRAY_INFO(m_type, m_variant_type) \ + template <> \ + struct GetTypeInfo> { \ + static constexpr GDNativeVariantType VARIANT_TYPE = GDNATIVE_VARIANT_TYPE_ARRAY; \ + static constexpr GDNativeExtensionClassMethodArgumentMetadata METADATA = GDNATIVE_EXTENSION_METHOD_ARGUMENT_METADATA_NONE; \ + static inline GDNativePropertyInfo get_class_info() { \ + return make_property_info(GDNATIVE_VARIANT_TYPE_ARRAY, "", PROPERTY_HINT_ARRAY_TYPE, Variant::get_type_name(m_variant_type).utf8().get_data()); \ + } \ + }; \ + template <> \ + struct GetTypeInfo &> { \ + static constexpr GDNativeVariantType VARIANT_TYPE = GDNATIVE_VARIANT_TYPE_ARRAY; \ + static constexpr GDNativeExtensionClassMethodArgumentMetadata METADATA = GDNATIVE_EXTENSION_METHOD_ARGUMENT_METADATA_NONE; \ + static inline GDNativePropertyInfo get_class_info() { \ + return make_property_info(GDNATIVE_VARIANT_TYPE_ARRAY, "", PROPERTY_HINT_ARRAY_TYPE, Variant::get_type_name(m_variant_type).utf8().get_data()); \ + } \ + }; + +MAKE_TYPED_ARRAY_INFO(bool, Variant::BOOL) +MAKE_TYPED_ARRAY_INFO(uint8_t, Variant::INT) +MAKE_TYPED_ARRAY_INFO(int8_t, Variant::INT) +MAKE_TYPED_ARRAY_INFO(uint16_t, Variant::INT) +MAKE_TYPED_ARRAY_INFO(int16_t, Variant::INT) +MAKE_TYPED_ARRAY_INFO(uint32_t, Variant::INT) +MAKE_TYPED_ARRAY_INFO(int32_t, Variant::INT) +MAKE_TYPED_ARRAY_INFO(uint64_t, Variant::INT) +MAKE_TYPED_ARRAY_INFO(int64_t, Variant::INT) +MAKE_TYPED_ARRAY_INFO(float, Variant::FLOAT) +MAKE_TYPED_ARRAY_INFO(double, Variant::FLOAT) +MAKE_TYPED_ARRAY_INFO(String, Variant::STRING) +MAKE_TYPED_ARRAY_INFO(Vector2, Variant::VECTOR2) +MAKE_TYPED_ARRAY_INFO(Vector2i, Variant::VECTOR2I) +MAKE_TYPED_ARRAY_INFO(Rect2, Variant::RECT2) +MAKE_TYPED_ARRAY_INFO(Rect2i, Variant::RECT2I) +MAKE_TYPED_ARRAY_INFO(Vector3, Variant::VECTOR3) +MAKE_TYPED_ARRAY_INFO(Vector3i, Variant::VECTOR3I) +MAKE_TYPED_ARRAY_INFO(Transform2D, Variant::TRANSFORM2D) +MAKE_TYPED_ARRAY_INFO(Plane, Variant::PLANE) +MAKE_TYPED_ARRAY_INFO(Quaternion, Variant::QUATERNION) +MAKE_TYPED_ARRAY_INFO(AABB, Variant::AABB) +MAKE_TYPED_ARRAY_INFO(Basis, Variant::BASIS) +MAKE_TYPED_ARRAY_INFO(Transform3D, Variant::TRANSFORM3D) +MAKE_TYPED_ARRAY_INFO(Color, Variant::COLOR) +MAKE_TYPED_ARRAY_INFO(StringName, Variant::STRING_NAME) +MAKE_TYPED_ARRAY_INFO(NodePath, Variant::NODE_PATH) +MAKE_TYPED_ARRAY_INFO(RID, Variant::RID) +MAKE_TYPED_ARRAY_INFO(Callable, Variant::CALLABLE) +MAKE_TYPED_ARRAY_INFO(Signal, Variant::SIGNAL) +MAKE_TYPED_ARRAY_INFO(Dictionary, Variant::DICTIONARY) +MAKE_TYPED_ARRAY_INFO(Array, Variant::ARRAY) +/* +MAKE_TYPED_ARRAY_INFO(Vector, Variant::PACKED_BYTE_ARRAY) +MAKE_TYPED_ARRAY_INFO(Vector, Variant::PACKED_INT32_ARRAY) +MAKE_TYPED_ARRAY_INFO(Vector, Variant::PACKED_INT64_ARRAY) +MAKE_TYPED_ARRAY_INFO(Vector, Variant::PACKED_FLOAT32_ARRAY) +MAKE_TYPED_ARRAY_INFO(Vector, Variant::PACKED_FLOAT64_ARRAY) +MAKE_TYPED_ARRAY_INFO(Vector, Variant::PACKED_STRING_ARRAY) +MAKE_TYPED_ARRAY_INFO(Vector, Variant::PACKED_VECTOR2_ARRAY) +MAKE_TYPED_ARRAY_INFO(Vector, Variant::PACKED_VECTOR3_ARRAY) +MAKE_TYPED_ARRAY_INFO(Vector, Variant::PACKED_COLOR_ARRAY) +*/ + #define CLASS_INFO(m_type) (GetTypeInfo::get_class_info()) } // namespace godot diff --git a/include/godot_cpp/variant/typed_array.hpp b/include/godot_cpp/variant/typed_array.hpp new file mode 100644 index 0000000..67c1b6a --- /dev/null +++ b/include/godot_cpp/variant/typed_array.hpp @@ -0,0 +1,126 @@ +/*************************************************************************/ +/* typed_array.hpp */ +/*************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/*************************************************************************/ +/* Copyright (c) 2007-2022 Juan Linietsky, Ariel Manzur. */ +/* Copyright (c) 2014-2022 Godot Engine contributors (cf. AUTHORS.md). */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*/ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/*************************************************************************/ + +#ifndef GODOT_CPP_TYPED_ARRAY_HPP +#define GODOT_CPP_TYPED_ARRAY_HPP + +#include +#include + +namespace godot { + +template +class TypedArray : public Array { +public: + template + _FORCE_INLINE_ void operator=(const TypedArray &p_array) { + static_assert(__is_base_of(T, U)); + typed_assign(p_array); + } + + _FORCE_INLINE_ void operator=(const Array &p_array) { + typed_assign(p_array); + } + _FORCE_INLINE_ TypedArray(const Variant &p_variant) : + Array(p_variant.operator Array(), Variant::OBJECT, T::get_class_static(), Variant()) { + } + _FORCE_INLINE_ TypedArray(const Array &p_array) : + Array(p_array, Variant::OBJECT, T::get_class_static(), Variant()) { + } + _FORCE_INLINE_ TypedArray() { + set_typed(Variant::OBJECT, T::get_class_static(), Variant()); + } +}; + +// specialization for the rest of variant types + +#define MAKE_TYPED_ARRAY(m_type, m_variant_type) \ + template <> \ + class TypedArray : public Array { \ + public: \ + _FORCE_INLINE_ void operator=(const Array &p_array) { \ + typed_assign(p_array); \ + } \ + _FORCE_INLINE_ TypedArray(const Variant &p_variant) : \ + Array(p_variant.operator Array(), m_variant_type, StringName(), Variant()) { \ + } \ + _FORCE_INLINE_ TypedArray(const Array &p_array) : \ + Array(p_array, m_variant_type, StringName(), Variant()) { \ + } \ + _FORCE_INLINE_ TypedArray() { \ + set_typed(m_variant_type, StringName(), Variant()); \ + } \ + }; + +MAKE_TYPED_ARRAY(bool, Variant::BOOL) +MAKE_TYPED_ARRAY(uint8_t, Variant::INT) +MAKE_TYPED_ARRAY(int8_t, Variant::INT) +MAKE_TYPED_ARRAY(uint16_t, Variant::INT) +MAKE_TYPED_ARRAY(int16_t, Variant::INT) +MAKE_TYPED_ARRAY(uint32_t, Variant::INT) +MAKE_TYPED_ARRAY(int32_t, Variant::INT) +MAKE_TYPED_ARRAY(uint64_t, Variant::INT) +MAKE_TYPED_ARRAY(int64_t, Variant::INT) +MAKE_TYPED_ARRAY(float, Variant::FLOAT) +MAKE_TYPED_ARRAY(double, Variant::FLOAT) +MAKE_TYPED_ARRAY(String, Variant::STRING) +MAKE_TYPED_ARRAY(Vector2, Variant::VECTOR2) +MAKE_TYPED_ARRAY(Vector2i, Variant::VECTOR2I) +MAKE_TYPED_ARRAY(Rect2, Variant::RECT2) +MAKE_TYPED_ARRAY(Rect2i, Variant::RECT2I) +MAKE_TYPED_ARRAY(Vector3, Variant::VECTOR3) +MAKE_TYPED_ARRAY(Vector3i, Variant::VECTOR3I) +MAKE_TYPED_ARRAY(Transform2D, Variant::TRANSFORM2D) +MAKE_TYPED_ARRAY(Plane, Variant::PLANE) +MAKE_TYPED_ARRAY(Quaternion, Variant::QUATERNION) +MAKE_TYPED_ARRAY(AABB, Variant::AABB) +MAKE_TYPED_ARRAY(Basis, Variant::BASIS) +MAKE_TYPED_ARRAY(Transform3D, Variant::TRANSFORM3D) +MAKE_TYPED_ARRAY(Color, Variant::COLOR) +MAKE_TYPED_ARRAY(StringName, Variant::STRING_NAME) +MAKE_TYPED_ARRAY(NodePath, Variant::NODE_PATH) +MAKE_TYPED_ARRAY(RID, Variant::RID) +MAKE_TYPED_ARRAY(Callable, Variant::CALLABLE) +MAKE_TYPED_ARRAY(Signal, Variant::SIGNAL) +MAKE_TYPED_ARRAY(Dictionary, Variant::DICTIONARY) +MAKE_TYPED_ARRAY(Array, Variant::ARRAY) +MAKE_TYPED_ARRAY(PackedByteArray, Variant::PACKED_BYTE_ARRAY) +MAKE_TYPED_ARRAY(PackedInt32Array, Variant::PACKED_INT32_ARRAY) +MAKE_TYPED_ARRAY(PackedInt64Array, Variant::PACKED_INT64_ARRAY) +MAKE_TYPED_ARRAY(PackedFloat32Array, Variant::PACKED_FLOAT32_ARRAY) +MAKE_TYPED_ARRAY(PackedFloat64Array, Variant::PACKED_FLOAT64_ARRAY) +MAKE_TYPED_ARRAY(PackedStringArray, Variant::PACKED_STRING_ARRAY) +MAKE_TYPED_ARRAY(PackedVector2Array, Variant::PACKED_VECTOR2_ARRAY) +MAKE_TYPED_ARRAY(PackedVector3Array, Variant::PACKED_VECTOR3_ARRAY) +MAKE_TYPED_ARRAY(PackedColorArray, Variant::PACKED_COLOR_ARRAY) + +} // namespace godot + +#endif // GODOT_CPP_TYPED_ARRAY_HPP diff --git a/test/demo/main.gd b/test/demo/main.gd index 537462f..6539500 100644 --- a/test/demo/main.gd +++ b/test/demo/main.gd @@ -45,7 +45,10 @@ func _ready(): prints("Array and Dictionary") prints(" test array", $Example.test_array()) + prints(" test tarray", $Example.test_tarray()) prints(" test dictionary", $Example.test_dictionary()) + var array: Array[int] = [1, 2, 3] + $Example.test_tarray_arg(array) prints("Properties") prints(" custom position is", $Example.group_subgroup_custom_position) diff --git a/test/src/example.cpp b/test/src/example.cpp index 09258f4..890319d 100644 --- a/test/src/example.cpp +++ b/test/src/example.cpp @@ -103,6 +103,8 @@ void Example::_bind_methods() { ClassDB::bind_method(D_METHOD("extended_ref_checks"), &Example::extended_ref_checks); ClassDB::bind_method(D_METHOD("test_array"), &Example::test_array); + ClassDB::bind_method(D_METHOD("test_tarray_arg", "array"), &Example::test_tarray_arg); + ClassDB::bind_method(D_METHOD("test_tarray"), &Example::test_tarray); ClassDB::bind_method(D_METHOD("test_dictionary"), &Example::test_dictionary); ClassDB::bind_method(D_METHOD("def_args", "a", "b"), &Example::def_args, DEFVAL(100), DEFVAL(200)); @@ -223,6 +225,22 @@ Array Example::test_array() const { return arr; } +void Example::test_tarray_arg(const TypedArray &p_array) { + for (int i = 0; i < p_array.size(); i++) { + UtilityFunctions::print(p_array[i]); + } +} + +TypedArray Example::test_tarray() const { + TypedArray arr; + + arr.resize(2); + arr[0] = Vector2(1, 2); + arr[1] = Vector2(2, 3); + + return arr; +} + Dictionary Example::test_dictionary() const { Dictionary dict; diff --git a/test/src/example.h b/test/src/example.h index 5cc32a6..e9565f9 100644 --- a/test/src/example.h +++ b/test/src/example.h @@ -88,6 +88,8 @@ public: int def_args(int p_a = 100, int p_b = 200); Array test_array() const; + void test_tarray_arg(const TypedArray &p_array); + TypedArray test_tarray() const; Dictionary test_dictionary() const; // Property.