diff --git a/binding_generator.py b/binding_generator.py index d0b2e014..93505d4e 100644 --- a/binding_generator.py +++ b/binding_generator.py @@ -870,13 +870,29 @@ def generate_engine_classes_bindings(api, output_dir, use_template_get_node): result.append(f"#ifndef {header_guard}") result.append(f"#define {header_guard}") + used_classes = [] + expanded_format = native_struct["format"].replace("(", " ").replace(")", ";").replace(",", ";") + for field in expanded_format.split(";"): + field_type = field.strip().split(" ")[0].split("::")[0] + if field_type != "" and not is_included_type(field_type) and not is_pod_type(field_type): + if not field_type in used_classes: + used_classes.append(field_type) + result.append("") + + for included in used_classes: + result.append(f"#include ") + + if len(used_classes) > 0: + result.append("") + result.append("namespace godot {") result.append("") result.append(f"struct {struct_name} {{") - for field in native_struct["format"].split(","): - result.append(f"\t{field};") + for field in native_struct["format"].split(";"): + if field != "": + result.append(f"\t{field};") result.append("};") result.append("") @@ -1582,10 +1598,15 @@ def is_pod_type(type_name): return type_name in [ "Nil", "void", - "int", - "float", "bool", + "real_t", + "float", "double", + "int", + "int8_t", + "uint8_t", + "int16_t", + "uint16_t", "int32_t", "int64_t", "uint32_t", @@ -1601,6 +1622,7 @@ def is_included_type(type_name): "AABB", "Basis", "Color", + "ObjectID", "Plane", "Quaternion", "Rect2", diff --git a/godot-headers/extension_api.json b/godot-headers/extension_api.json index 949723bd..e0d005fa 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": "alpha4", - "version_build": "official", - "version_full_name": "Godot Engine v4.0.alpha4.official" + "version_status": "alpha", + "version_build": "custom_build", + "version_full_name": "Godot Engine v4.0.alpha.custom_build" }, "builtin_class_sizes": [ { @@ -2896,7 +2896,7 @@ }, { "name": "KEY_MASK_CMD", - "value": 268435456 + "value": 134217728 }, { "name": "KEY_MASK_KPAD", @@ -3284,8 +3284,12 @@ "value": 41 }, { - "name": "PROPERTY_HINT_MAX", + "name": "PROPERTY_HINT_LOCALIZABLE_STRING", "value": 42 + }, + { + "name": "PROPERTY_HINT_MAX", + "value": 43 } ] }, @@ -4202,19 +4206,6 @@ } ] }, - { - "name": "range_step_decimals", - "return_type": "int", - "category": "math", - "is_vararg": false, - "hash": 134190380, - "arguments": [ - { - "name": "x", - "type": "float" - } - ] - }, { "name": "snapped", "return_type": "float", @@ -33812,9 +33803,20 @@ { "name": "AudioEffect", "is_refcounted": true, - "is_instantiable": false, + "is_instantiable": true, "inherits": "Resource", - "api_type": "core" + "api_type": "core", + "methods": [ + { + "name": "_instantiate", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "AudioEffectInstance" + } + } + ] }, { "name": "AudioEffectAmplify", @@ -35603,9 +35605,40 @@ { "name": "AudioEffectInstance", "is_refcounted": true, - "is_instantiable": false, + "is_instantiable": true, "inherits": "RefCounted", - "api_type": "core" + "api_type": "core", + "methods": [ + { + "name": "_process", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "src_buffer", + "type": "const void*" + }, + { + "name": "dst_buffer", + "type": "AudioFrame*" + }, + { + "name": "frame_count", + "type": "int" + } + ] + }, + { + "name": "_process_silence", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + } + } + ] }, { "name": "AudioEffectLimiter", @@ -38173,9 +38206,46 @@ { "name": "AudioStreamPlaybackResampled", "is_refcounted": true, - "is_instantiable": false, + "is_instantiable": true, "inherits": "AudioStreamPlayback", - "api_type": "core" + "api_type": "core", + "methods": [ + { + "name": "_mix_resampled", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int" + }, + "arguments": [ + { + "name": "dst_buffer", + "type": "AudioFrame*" + }, + { + "name": "frame_count", + "type": "int" + } + ] + }, + { + "name": "_get_stream_sampling_rate", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float" + } + }, + { + "name": "begin_resample", + "is_const": false, + "is_vararg": false, + "is_virtual": false, + "hash": 134152229 + } + ] }, { "name": "AudioStreamPlayer", @@ -40284,7 +40354,7 @@ { "name": "BaseButton", "is_refcounted": false, - "is_instantiable": false, + "is_instantiable": true, "inherits": "Control", "api_type": "core", "enums": [ @@ -52864,6 +52934,16 @@ "type": "Transform2D" } }, + { + "name": "get_screen_transform", + "is_const": true, + "is_vararg": false, + "is_virtual": false, + "hash": 135338183, + "return_value": { + "type": "Transform2D" + } + }, { "name": "get_local_mouse_position", "is_const": true, @@ -62496,6 +62576,16 @@ "type": "Vector2" } }, + { + "name": "get_screen_position", + "is_const": true, + "is_vararg": false, + "is_virtual": false, + "hash": 135338183, + "return_value": { + "type": "Vector2" + } + }, { "name": "get_rect", "is_const": true, @@ -63708,14 +63798,14 @@ "properties": [ { "type": "bool", - "name": "rect_clip_content", + "name": "clip_contents", "setter": "set_clip_contents", "getter": "is_clipping_contents", "index": -1 }, { "type": "Vector2", - "name": "rect_min_size", + "name": "minimum_size", "setter": "set_custom_minimum_size", "getter": "get_custom_minimum_size", "index": -1 @@ -63813,42 +63903,42 @@ }, { "type": "Vector2", - "name": "rect_position", + "name": "size", + "setter": "_set_size", + "getter": "get_size", + "index": -1 + }, + { + "type": "Vector2", + "name": "position", "setter": "_set_position", "getter": "get_position", "index": -1 }, { "type": "Vector2", - "name": "rect_global_position", + "name": "global_position", "setter": "_set_global_position", "getter": "get_global_position", "index": -1 }, - { - "type": "Vector2", - "name": "rect_size", - "setter": "_set_size", - "getter": "get_size", - "index": -1 - }, { "type": "float", - "name": "rect_rotation", + "name": "rotation", "setter": "set_rotation", "getter": "get_rotation", "index": -1 }, { "type": "Vector2", - "name": "rect_scale", + "name": "scale", "setter": "set_scale", "getter": "get_scale", "index": -1 }, { "type": "Vector2", - "name": "rect_pivot_offset", + "name": "pivot_offset", "setter": "set_pivot_offset", "getter": "get_pivot_offset", "index": -1 @@ -69538,6 +69628,13 @@ } ] }, + { + "name": "DisplayServerOSX", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "DisplayServer", + "api_type": "core" + }, { "name": "ENetConnection", "is_refcounted": true, @@ -70737,7 +70834,7 @@ "is_const": false, "is_vararg": false, "is_virtual": false, - "hash": 134224103, + "hash": 134260040, "arguments": [ { "name": "path", @@ -70746,6 +70843,10 @@ { "name": "tags", "type": "PackedStringArray" + }, + { + "name": "target", + "type": "String" } ] }, @@ -82886,6 +82987,54 @@ "type": "enum::TextServer.SubpixelPositioning" } }, + { + "name": "set_embolden", + "is_const": false, + "is_vararg": false, + "is_virtual": false, + "hash": 134188166, + "arguments": [ + { + "name": "strength", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_embolden", + "is_const": true, + "is_vararg": false, + "is_virtual": false, + "hash": 135338183, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_transform", + "is_const": false, + "is_vararg": false, + "is_virtual": false, + "hash": 134188166, + "arguments": [ + { + "name": "transform", + "type": "Transform2D" + } + ] + }, + { + "name": "get_transform", + "is_const": true, + "is_vararg": false, + "is_virtual": false, + "hash": 135338183, + "return_value": { + "type": "Transform2D" + } + }, { "name": "set_oversampling", "is_const": false, @@ -84299,6 +84448,20 @@ "getter": "get_subpixel_positioning", "index": -1 }, + { + "type": "float", + "name": "embolden", + "setter": "set_embolden", + "getter": "get_embolden", + "index": -1 + }, + { + "type": "Transform2D", + "name": "transform", + "setter": "set_transform", + "getter": "get_transform", + "index": -1 + }, { "type": "bool", "name": "multichannel_signed_distance_field", @@ -84357,272 +84520,6 @@ } ] }, - { - "name": "GDNative", - "is_refcounted": true, - "is_instantiable": true, - "inherits": "RefCounted", - "api_type": "core", - "methods": [ - { - "name": "set_library", - "is_const": false, - "is_vararg": false, - "is_virtual": false, - "hash": 134188166, - "arguments": [ - { - "name": "library", - "type": "GDNativeLibrary" - } - ] - }, - { - "name": "get_library", - "is_const": true, - "is_vararg": false, - "is_virtual": false, - "hash": 135338183, - "return_value": { - "type": "GDNativeLibrary" - } - }, - { - "name": "initialize", - "is_const": false, - "is_vararg": false, - "is_virtual": false, - "hash": 135338150, - "return_value": { - "type": "bool" - } - }, - { - "name": "terminate", - "is_const": false, - "is_vararg": false, - "is_virtual": false, - "hash": 135338150, - "return_value": { - "type": "bool" - } - }, - { - "name": "call_native", - "is_const": false, - "is_vararg": false, - "is_virtual": false, - "hash": 135445961, - "return_value": { - "type": "Variant" - }, - "arguments": [ - { - "name": "calling_type", - "type": "StringName" - }, - { - "name": "procedure_name", - "type": "StringName" - }, - { - "name": "arguments", - "type": "Array" - } - ] - } - ], - "properties": [ - { - "type": "GDNativeLibrary", - "name": "library", - "setter": "set_library", - "getter": "get_library", - "index": -1 - } - ] - }, - { - "name": "GDNativeLibrary", - "is_refcounted": true, - "is_instantiable": true, - "inherits": "Resource", - "api_type": "core", - "methods": [ - { - "name": "get_config_file", - "is_const": false, - "is_vararg": false, - "is_virtual": false, - "hash": 135338150, - "return_value": { - "type": "ConfigFile" - } - }, - { - "name": "set_config_file", - "is_const": false, - "is_vararg": false, - "is_virtual": false, - "hash": 134188166, - "arguments": [ - { - "name": "config_file", - "type": "ConfigFile" - } - ] - }, - { - "name": "get_current_library_path", - "is_const": true, - "is_vararg": false, - "is_virtual": false, - "hash": 135338183, - "return_value": { - "type": "String" - } - }, - { - "name": "get_current_dependencies", - "is_const": true, - "is_vararg": false, - "is_virtual": false, - "hash": 135338183, - "return_value": { - "type": "PackedStringArray" - } - }, - { - "name": "should_load_once", - "is_const": true, - "is_vararg": false, - "is_virtual": false, - "hash": 135338183, - "return_value": { - "type": "bool" - } - }, - { - "name": "is_singleton", - "is_const": true, - "is_vararg": false, - "is_virtual": false, - "hash": 135338183, - "return_value": { - "type": "bool" - } - }, - { - "name": "get_symbol_prefix", - "is_const": true, - "is_vararg": false, - "is_virtual": false, - "hash": 135338183, - "return_value": { - "type": "String" - } - }, - { - "name": "is_reloadable", - "is_const": true, - "is_vararg": false, - "is_virtual": false, - "hash": 135338183, - "return_value": { - "type": "bool" - } - }, - { - "name": "set_load_once", - "is_const": false, - "is_vararg": false, - "is_virtual": false, - "hash": 134188166, - "arguments": [ - { - "name": "load_once", - "type": "bool" - } - ] - }, - { - "name": "set_singleton", - "is_const": false, - "is_vararg": false, - "is_virtual": false, - "hash": 134188166, - "arguments": [ - { - "name": "singleton", - "type": "bool" - } - ] - }, - { - "name": "set_symbol_prefix", - "is_const": false, - "is_vararg": false, - "is_virtual": false, - "hash": 134188166, - "arguments": [ - { - "name": "symbol_prefix", - "type": "String" - } - ] - }, - { - "name": "set_reloadable", - "is_const": false, - "is_vararg": false, - "is_virtual": false, - "hash": 134188166, - "arguments": [ - { - "name": "reloadable", - "type": "bool" - } - ] - } - ], - "properties": [ - { - "type": "ConfigFile", - "name": "config_file", - "setter": "set_config_file", - "getter": "get_config_file", - "index": -1 - }, - { - "type": "bool", - "name": "load_once", - "setter": "set_load_once", - "getter": "should_load_once", - "index": -1 - }, - { - "type": "bool", - "name": "singleton", - "setter": "set_singleton", - "getter": "is_singleton", - "index": -1 - }, - { - "type": "String", - "name": "symbol_prefix", - "setter": "set_symbol_prefix", - "getter": "get_symbol_prefix", - "index": -1 - }, - { - "type": "bool", - "name": "reloadable", - "setter": "set_reloadable", - "getter": "is_reloadable", - "index": -1 - } - ] - }, { "name": "GDScript", "is_refcounted": true, @@ -92254,7 +92151,7 @@ { "name": "GeometryInstance3D", "is_refcounted": false, - "is_instantiable": false, + "is_instantiable": true, "inherits": "VisualInstance3D", "api_type": "core", "enums": [ @@ -109960,7 +109857,7 @@ { "name": "Material", "is_refcounted": true, - "is_instantiable": false, + "is_instantiable": true, "inherits": "Resource", "api_type": "core", "constants": [ @@ -109974,6 +109871,42 @@ } ], "methods": [ + { + "name": "_get_shader_rid", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + } + }, + { + "name": "_get_shader_mode", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::Shader.Mode" + } + }, + { + "name": "_can_do_next_pass", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + } + }, + { + "name": "_can_use_render_priority", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + } + }, { "name": "set_next_pass", "is_const": false, @@ -110151,7 +110084,7 @@ { "name": "Mesh", "is_refcounted": true, - "is_instantiable": false, + "is_instantiable": true, "inherits": "Resource", "api_type": "core", "enums": [ @@ -110402,6 +110335,200 @@ } ], "methods": [ + { + "name": "_get_surface_count", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int" + } + }, + { + "name": "_surface_get_array_len", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int" + }, + "arguments": [ + { + "name": "index", + "type": "int" + } + ] + }, + { + "name": "_surface_get_array_index_len", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int" + }, + "arguments": [ + { + "name": "index", + "type": "int" + } + ] + }, + { + "name": "_surface_get_arrays", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Array" + }, + "arguments": [ + { + "name": "index", + "type": "int" + } + ] + }, + { + "name": "_surface_get_blend_shape_arrays", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Array" + }, + "arguments": [ + { + "name": "index", + "type": "int" + } + ] + }, + { + "name": "_surface_get_lods", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Dictionary" + }, + "arguments": [ + { + "name": "index", + "type": "int" + } + ] + }, + { + "name": "_surface_get_format", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int" + }, + "arguments": [ + { + "name": "index", + "type": "int" + } + ] + }, + { + "name": "_surface_get_primitive_type", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int" + }, + "arguments": [ + { + "name": "index", + "type": "int" + } + ] + }, + { + "name": "_surface_set_material", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "index", + "type": "int" + }, + { + "name": "material", + "type": "Material" + } + ] + }, + { + "name": "_surface_get_material", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Material" + }, + "arguments": [ + { + "name": "index", + "type": "int" + } + ] + }, + { + "name": "_get_blend_shape_count", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int" + } + }, + { + "name": "_get_blend_shape_name", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "StringName" + }, + "arguments": [ + { + "name": "index", + "type": "int" + } + ] + }, + { + "name": "_set_blend_shape_name", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "index", + "type": "int" + }, + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "_get_aabb", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "AABB" + } + }, { "name": "set_lightmap_size_hint", "is_const": false, @@ -114131,205 +114258,6 @@ } ] }, - { - "name": "NativeScript", - "is_refcounted": true, - "is_instantiable": true, - "inherits": "Script", - "api_type": "core", - "methods": [ - { - "name": "set_class_name", - "is_const": false, - "is_vararg": false, - "is_virtual": false, - "hash": 134188166, - "arguments": [ - { - "name": "class_name", - "type": "String" - } - ] - }, - { - "name": "get_class_name", - "is_const": true, - "is_vararg": false, - "is_virtual": false, - "hash": 135338183, - "return_value": { - "type": "String" - } - }, - { - "name": "set_library", - "is_const": false, - "is_vararg": false, - "is_virtual": false, - "hash": 134188166, - "arguments": [ - { - "name": "library", - "type": "GDNativeLibrary" - } - ] - }, - { - "name": "get_library", - "is_const": true, - "is_vararg": false, - "is_virtual": false, - "hash": 135338183, - "return_value": { - "type": "GDNativeLibrary" - } - }, - { - "name": "set_script_class_name", - "is_const": false, - "is_vararg": false, - "is_virtual": false, - "hash": 134188166, - "arguments": [ - { - "name": "class_name", - "type": "String" - } - ] - }, - { - "name": "get_script_class_name", - "is_const": true, - "is_vararg": false, - "is_virtual": false, - "hash": 135338183, - "return_value": { - "type": "String" - } - }, - { - "name": "set_script_class_icon_path", - "is_const": false, - "is_vararg": false, - "is_virtual": false, - "hash": 134188166, - "arguments": [ - { - "name": "icon_path", - "type": "String" - } - ] - }, - { - "name": "get_script_class_icon_path", - "is_const": true, - "is_vararg": false, - "is_virtual": false, - "hash": 135338183, - "return_value": { - "type": "String" - } - }, - { - "name": "get_class_documentation", - "is_const": true, - "is_vararg": false, - "is_virtual": false, - "hash": 135338183, - "return_value": { - "type": "String" - } - }, - { - "name": "get_method_documentation", - "is_const": true, - "is_vararg": false, - "is_virtual": false, - "hash": 135374120, - "return_value": { - "type": "String" - }, - "arguments": [ - { - "name": "method", - "type": "StringName" - } - ] - }, - { - "name": "get_signal_documentation", - "is_const": true, - "is_vararg": false, - "is_virtual": false, - "hash": 135374120, - "return_value": { - "type": "String" - }, - "arguments": [ - { - "name": "signal_name", - "type": "StringName" - } - ] - }, - { - "name": "get_property_documentation", - "is_const": true, - "is_vararg": false, - "is_virtual": false, - "hash": 135374120, - "return_value": { - "type": "String" - }, - "arguments": [ - { - "name": "path", - "type": "StringName" - } - ] - }, - { - "name": "new", - "is_const": false, - "is_vararg": true, - "is_virtual": false, - "hash": 135338151, - "return_value": { - "type": "Variant" - } - } - ], - "properties": [ - { - "type": "String", - "name": "class_name", - "setter": "set_class_name", - "getter": "get_class_name", - "index": -1 - }, - { - "type": "GDNativeLibrary", - "name": "library", - "setter": "set_library", - "getter": "get_library", - "index": -1 - }, - { - "type": "String", - "name": "script_class_name", - "setter": "set_script_class_name", - "getter": "get_script_class_name", - "index": -1 - }, - { - "type": "String", - "name": "script_class_icon_path", - "setter": "set_script_class_icon_path", - "getter": "get_script_class_icon_path", - "index": -1 - } - ] - }, { "name": "NavigationAgent2D", "is_refcounted": false, @@ -123800,538 +123728,6 @@ } ] }, - { - "name": "OpenXRAction", - "is_refcounted": true, - "is_instantiable": true, - "inherits": "Resource", - "api_type": "core", - "enums": [ - { - "name": "ActionType", - "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_virtual": false, - "hash": 134188166, - "arguments": [ - { - "name": "localized_name", - "type": "String" - } - ] - }, - { - "name": "get_localized_name", - "is_const": true, - "is_vararg": false, - "is_virtual": false, - "hash": 135338183, - "return_value": { - "type": "String" - } - }, - { - "name": "set_action_type", - "is_const": false, - "is_vararg": false, - "is_virtual": false, - "hash": 134188166, - "arguments": [ - { - "name": "action_type", - "type": "enum::OpenXRAction.ActionType" - } - ] - }, - { - "name": "get_action_type", - "is_const": true, - "is_vararg": false, - "is_virtual": false, - "hash": 135338183, - "return_value": { - "type": "enum::OpenXRAction.ActionType" - } - }, - { - "name": "set_toplevel_paths", - "is_const": false, - "is_vararg": false, - "is_virtual": false, - "hash": 134188166, - "arguments": [ - { - "name": "toplevel_paths", - "type": "PackedStringArray" - } - ] - }, - { - "name": "get_toplevel_paths", - "is_const": true, - "is_vararg": false, - "is_virtual": false, - "hash": 135338183, - "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_virtual": false, - "hash": 134188166, - "arguments": [ - { - "name": "action_sets", - "type": "Array" - } - ] - }, - { - "name": "get_action_sets", - "is_const": true, - "is_vararg": false, - "is_virtual": false, - "hash": 135338183, - "return_value": { - "type": "Array" - } - }, - { - "name": "add_action_set", - "is_const": false, - "is_vararg": false, - "is_virtual": false, - "hash": 134188166, - "arguments": [ - { - "name": "action_set", - "type": "OpenXRActionSet" - } - ] - }, - { - "name": "remove_action_set", - "is_const": false, - "is_vararg": false, - "is_virtual": false, - "hash": 134188166, - "arguments": [ - { - "name": "action_set", - "type": "OpenXRActionSet" - } - ] - }, - { - "name": "set_interaction_profiles", - "is_const": false, - "is_vararg": false, - "is_virtual": false, - "hash": 134188166, - "arguments": [ - { - "name": "interaction_profiles", - "type": "Array" - } - ] - }, - { - "name": "get_interaction_profiles", - "is_const": true, - "is_vararg": false, - "is_virtual": false, - "hash": 135338183, - "return_value": { - "type": "Array" - } - }, - { - "name": "add_interaction_profile", - "is_const": false, - "is_vararg": false, - "is_virtual": false, - "hash": 134188166, - "arguments": [ - { - "name": "interaction_profile", - "type": "OpenXRInteractionProfile" - } - ] - }, - { - "name": "remove_interaction_profile", - "is_const": false, - "is_vararg": false, - "is_virtual": false, - "hash": 134188166, - "arguments": [ - { - "name": "interaction_profile", - "type": "OpenXRInteractionProfile" - } - ] - }, - { - "name": "create_default_action_sets", - "is_const": false, - "is_vararg": false, - "is_virtual": false, - "hash": 134152229 - } - ], - "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_virtual": false, - "hash": 134188166, - "arguments": [ - { - "name": "localized_name", - "type": "String" - } - ] - }, - { - "name": "get_localized_name", - "is_const": true, - "is_vararg": false, - "is_virtual": false, - "hash": 135338183, - "return_value": { - "type": "String" - } - }, - { - "name": "set_priority", - "is_const": false, - "is_vararg": false, - "is_virtual": false, - "hash": 134188166, - "arguments": [ - { - "name": "priority", - "type": "int", - "meta": "int32" - } - ] - }, - { - "name": "get_priority", - "is_const": true, - "is_vararg": false, - "is_virtual": false, - "hash": 135338183, - "return_value": { - "type": "int", - "meta": "int32" - } - }, - { - "name": "set_actions", - "is_const": false, - "is_vararg": false, - "is_virtual": false, - "hash": 134188166, - "arguments": [ - { - "name": "actions", - "type": "Array" - } - ] - }, - { - "name": "get_actions", - "is_const": true, - "is_vararg": false, - "is_virtual": false, - "hash": 135338183, - "return_value": { - "type": "Array" - } - }, - { - "name": "add_action", - "is_const": false, - "is_vararg": false, - "is_virtual": false, - "hash": 134188166, - "arguments": [ - { - "name": "action", - "type": "OpenXRAction" - } - ] - }, - { - "name": "remove_action", - "is_const": false, - "is_vararg": false, - "is_virtual": false, - "hash": 134188166, - "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_virtual": false, - "hash": 134188166, - "arguments": [ - { - "name": "action", - "type": "OpenXRAction" - } - ] - }, - { - "name": "get_action", - "is_const": true, - "is_vararg": false, - "is_virtual": false, - "hash": 135338183, - "return_value": { - "type": "OpenXRAction" - } - }, - { - "name": "set_paths", - "is_const": false, - "is_vararg": false, - "is_virtual": false, - "hash": 134188166, - "arguments": [ - { - "name": "paths", - "type": "PackedStringArray" - } - ] - }, - { - "name": "get_paths", - "is_const": true, - "is_vararg": false, - "is_virtual": false, - "hash": 135338183, - "return_value": { - "type": "PackedStringArray" - } - } - ], - "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_virtual": false, - "hash": 134188166, - "arguments": [ - { - "name": "interaction_profile_path", - "type": "String" - } - ] - }, - { - "name": "get_interaction_profile_path", - "is_const": true, - "is_vararg": false, - "is_virtual": false, - "hash": 135338183, - "return_value": { - "type": "String" - } - }, - { - "name": "set_bindings", - "is_const": false, - "is_vararg": false, - "is_virtual": false, - "hash": 134188166, - "arguments": [ - { - "name": "bindings", - "type": "Array" - } - ] - }, - { - "name": "get_bindings", - "is_const": true, - "is_vararg": false, - "is_virtual": false, - "hash": 135338183, - "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" - }, { "name": "OptimizedTranslation", "is_refcounted": true, @@ -130972,6 +130368,531 @@ } ] }, + { + "name": "PhysicsDirectBodyState3DExtension", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "PhysicsDirectBodyState3D", + "api_type": "core", + "methods": [ + { + "name": "_get_total_gravity", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "_get_total_linear_damp", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float" + } + }, + { + "name": "_get_total_angular_damp", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float" + } + }, + { + "name": "_get_center_of_mass", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "_get_center_of_mass_local", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "_get_principal_inertia_axes", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Basis" + } + }, + { + "name": "_get_inverse_mass", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float" + } + }, + { + "name": "_get_inverse_inertia", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "_set_linear_velocity", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "velocity", + "type": "Vector3" + } + ] + }, + { + "name": "_get_linear_velocity", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "_set_angular_velocity", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "velocity", + "type": "Vector3" + } + ] + }, + { + "name": "_get_angular_velocity", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "_set_transform", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "transform", + "type": "Transform3D" + } + ] + }, + { + "name": "_get_transform", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Transform3D" + } + }, + { + "name": "_get_velocity_at_local_position", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "local_position", + "type": "Vector3" + } + ] + }, + { + "name": "_apply_central_impulse", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "impulse", + "type": "Vector3" + } + ] + }, + { + "name": "_apply_impulse", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "impulse", + "type": "Vector3" + }, + { + "name": "position", + "type": "Vector3" + } + ] + }, + { + "name": "_apply_torque_impulse", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "impulse", + "type": "Vector3" + } + ] + }, + { + "name": "_apply_central_force", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "force", + "type": "Vector3" + } + ] + }, + { + "name": "_apply_force", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "force", + "type": "Vector3" + }, + { + "name": "position", + "type": "Vector3" + } + ] + }, + { + "name": "_apply_torque", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "torque", + "type": "Vector3" + } + ] + }, + { + "name": "_add_constant_central_force", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "force", + "type": "Vector3" + } + ] + }, + { + "name": "_add_constant_force", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "force", + "type": "Vector3" + }, + { + "name": "position", + "type": "Vector3" + } + ] + }, + { + "name": "_add_constant_torque", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "torque", + "type": "Vector3" + } + ] + }, + { + "name": "_set_constant_force", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "force", + "type": "Vector3" + } + ] + }, + { + "name": "_get_constant_force", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "_set_constant_torque", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "torque", + "type": "Vector3" + } + ] + }, + { + "name": "_get_constant_torque", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "_set_sleep_state", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "_is_sleeping", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + } + }, + { + "name": "_get_contact_count", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int" + } + }, + { + "name": "_get_contact_local_position", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "contact_idx", + "type": "int" + } + ] + }, + { + "name": "_get_contact_local_normal", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "contact_idx", + "type": "int" + } + ] + }, + { + "name": "_get_contact_impulse", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float" + }, + "arguments": [ + { + "name": "contact_idx", + "type": "int" + } + ] + }, + { + "name": "_get_contact_local_shape", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int" + }, + "arguments": [ + { + "name": "contact_idx", + "type": "int" + } + ] + }, + { + "name": "_get_contact_collider", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "contact_idx", + "type": "int" + } + ] + }, + { + "name": "_get_contact_collider_position", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "contact_idx", + "type": "int" + } + ] + }, + { + "name": "_get_contact_collider_id", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int" + }, + "arguments": [ + { + "name": "contact_idx", + "type": "int" + } + ] + }, + { + "name": "_get_contact_collider_object", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Object" + }, + "arguments": [ + { + "name": "contact_idx", + "type": "int" + } + ] + }, + { + "name": "_get_contact_collider_shape", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int" + }, + "arguments": [ + { + "name": "contact_idx", + "type": "int" + } + ] + }, + { + "name": "_get_contact_collider_velocity_at_position", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "contact_idx", + "type": "int" + } + ] + }, + { + "name": "_get_step", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float" + } + }, + { + "name": "_integrate_forces", + "is_const": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_get_space_state", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "PhysicsDirectSpaceState3D" + } + } + ] + }, { "name": "PhysicsDirectSpaceState2D", "is_refcounted": false, @@ -131218,6 +131139,304 @@ } ] }, + { + "name": "PhysicsDirectSpaceState3DExtension", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "PhysicsDirectSpaceState3D", + "api_type": "core", + "methods": [ + { + "name": "_intersect_ray", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "from", + "type": "Vector3" + }, + { + "name": "to", + "type": "Vector3" + }, + { + "name": "collision_mask", + "type": "int" + }, + { + "name": "collide_with_bodies", + "type": "bool" + }, + { + "name": "collide_with_areas", + "type": "bool" + }, + { + "name": "hit_from_inside", + "type": "bool" + }, + { + "name": "hit_back_faces", + "type": "bool" + }, + { + "name": "result", + "type": "PhysicsServer3DExtensionRayResult*" + } + ] + }, + { + "name": "_intersect_point", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int" + }, + "arguments": [ + { + "name": "position", + "type": "Vector3" + }, + { + "name": "collision_mask", + "type": "int" + }, + { + "name": "collide_with_bodies", + "type": "bool" + }, + { + "name": "collide_with_areas", + "type": "bool" + }, + { + "name": "results", + "type": "PhysicsServer3DExtensionShapeResult*" + }, + { + "name": "max_results", + "type": "int" + } + ] + }, + { + "name": "_intersect_shape", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int" + }, + "arguments": [ + { + "name": "shape_rid", + "type": "RID" + }, + { + "name": "transform", + "type": "Transform3D" + }, + { + "name": "motion", + "type": "Vector3" + }, + { + "name": "margin", + "type": "float" + }, + { + "name": "collision_mask", + "type": "int" + }, + { + "name": "collide_with_bodies", + "type": "bool" + }, + { + "name": "collide_with_areas", + "type": "bool" + }, + { + "name": "result_count", + "type": "PhysicsServer3DExtensionShapeResult*" + }, + { + "name": "max_results", + "type": "int" + } + ] + }, + { + "name": "_cast_motion", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "shape_rid", + "type": "RID" + }, + { + "name": "transform", + "type": "Transform3D" + }, + { + "name": "motion", + "type": "Vector3" + }, + { + "name": "margin", + "type": "float" + }, + { + "name": "collision_mask", + "type": "int" + }, + { + "name": "collide_with_bodies", + "type": "bool" + }, + { + "name": "collide_with_areas", + "type": "bool" + }, + { + "name": "closest_safe", + "type": "float*" + }, + { + "name": "closest_unsafe", + "type": "float*" + }, + { + "name": "info", + "type": "PhysicsServer3DExtensionShapeRestInfo*" + } + ] + }, + { + "name": "_collide_shape", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "shape_rid", + "type": "RID" + }, + { + "name": "transform", + "type": "Transform3D" + }, + { + "name": "motion", + "type": "Vector3" + }, + { + "name": "margin", + "type": "float" + }, + { + "name": "collision_mask", + "type": "int" + }, + { + "name": "collide_with_bodies", + "type": "bool" + }, + { + "name": "collide_with_areas", + "type": "bool" + }, + { + "name": "results", + "type": "void*" + }, + { + "name": "max_results", + "type": "int" + }, + { + "name": "result_count", + "type": "int32_t*" + } + ] + }, + { + "name": "_rest_info", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "shape_rid", + "type": "RID" + }, + { + "name": "transform", + "type": "Transform3D" + }, + { + "name": "motion", + "type": "Vector3" + }, + { + "name": "margin", + "type": "float" + }, + { + "name": "collision_mask", + "type": "int" + }, + { + "name": "collide_with_bodies", + "type": "bool" + }, + { + "name": "collide_with_areas", + "type": "bool" + }, + { + "name": "rest_info", + "type": "PhysicsServer3DExtensionShapeRestInfo*" + } + ] + }, + { + "name": "_get_closest_point_to_object_volume", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "object", + "type": "RID" + }, + { + "name": "point", + "type": "Vector3" + } + ] + } + ] + }, { "name": "PhysicsMaterial", "is_refcounted": true, @@ -137461,6 +137680,2219 @@ } ] }, + { + "name": "PhysicsServer3DExtension", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "PhysicsServer3D", + "api_type": "core", + "methods": [ + { + "name": "_world_boundary_shape_create", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + } + }, + { + "name": "_separation_ray_shape_create", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + } + }, + { + "name": "_sphere_shape_create", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + } + }, + { + "name": "_box_shape_create", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + } + }, + { + "name": "_capsule_shape_create", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + } + }, + { + "name": "_cylinder_shape_create", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + } + }, + { + "name": "_convex_polygon_shape_create", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + } + }, + { + "name": "_concave_polygon_shape_create", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + } + }, + { + "name": "_heightmap_shape_create", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + } + }, + { + "name": "_custom_shape_create", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + } + }, + { + "name": "_shape_set_data", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "shape", + "type": "RID" + }, + { + "name": "data", + "type": "Variant" + } + ] + }, + { + "name": "_shape_get_type", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::PhysicsServer3D.ShapeType" + }, + "arguments": [ + { + "name": "shape", + "type": "RID" + } + ] + }, + { + "name": "_shape_get_data", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "shape", + "type": "RID" + } + ] + }, + { + "name": "_space_create", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + } + }, + { + "name": "_space_set_active", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "space", + "type": "RID" + }, + { + "name": "active", + "type": "bool" + } + ] + }, + { + "name": "_space_is_active", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "space", + "type": "RID" + } + ] + }, + { + "name": "_space_set_param", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "space", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer3D.SpaceParameter" + }, + { + "name": "value", + "type": "float" + } + ] + }, + { + "name": "_space_get_param", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float" + }, + "arguments": [ + { + "name": "space", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer3D.SpaceParameter" + } + ] + }, + { + "name": "_space_get_direct_state", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "PhysicsDirectSpaceState3D" + }, + "arguments": [ + { + "name": "space", + "type": "RID" + } + ] + }, + { + "name": "_area_create", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + } + }, + { + "name": "_area_set_space", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "space", + "type": "RID" + } + ] + }, + { + "name": "_area_get_space", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "area", + "type": "RID" + } + ] + }, + { + "name": "_area_add_shape", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "shape", + "type": "RID" + }, + { + "name": "transform", + "type": "Transform3D" + }, + { + "name": "disabled", + "type": "bool" + } + ] + }, + { + "name": "_area_set_shape", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "shape_idx", + "type": "int" + }, + { + "name": "shape", + "type": "RID" + } + ] + }, + { + "name": "_area_set_shape_transform", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "shape_idx", + "type": "int" + }, + { + "name": "transform", + "type": "Transform3D" + } + ] + }, + { + "name": "_area_set_shape_disabled", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "shape_idx", + "type": "int" + }, + { + "name": "disabled", + "type": "bool" + } + ] + }, + { + "name": "_area_get_shape_count", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int" + }, + "arguments": [ + { + "name": "area", + "type": "RID" + } + ] + }, + { + "name": "_area_get_shape", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "shape_idx", + "type": "int" + } + ] + }, + { + "name": "_area_get_shape_transform", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Transform3D" + }, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "shape_idx", + "type": "int" + } + ] + }, + { + "name": "_area_remove_shape", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "shape_idx", + "type": "int" + } + ] + }, + { + "name": "_area_clear_shapes", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "area", + "type": "RID" + } + ] + }, + { + "name": "_area_set_collision_layer", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "layer", + "type": "int" + } + ] + }, + { + "name": "_area_set_collision_mask", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "mask", + "type": "int" + } + ] + }, + { + "name": "_area_set_param", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer3D.AreaParameter" + }, + { + "name": "value", + "type": "Variant" + } + ] + }, + { + "name": "_area_set_transform", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "transform", + "type": "Transform3D" + } + ] + }, + { + "name": "_area_get_param", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer3D.AreaParameter" + } + ] + }, + { + "name": "_area_get_transform", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Transform3D" + }, + "arguments": [ + { + "name": "area", + "type": "RID" + } + ] + }, + { + "name": "_area_attach_object_instance_id", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "id", + "type": "int" + } + ] + }, + { + "name": "_area_get_object_instance_id", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int" + }, + "arguments": [ + { + "name": "area", + "type": "RID" + } + ] + }, + { + "name": "_area_set_monitor_callback", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "callback", + "type": "Callable" + } + ] + }, + { + "name": "_area_set_area_monitor_callback", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "callback", + "type": "Callable" + } + ] + }, + { + "name": "_area_set_monitorable", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "monitorable", + "type": "bool" + } + ] + }, + { + "name": "_area_set_ray_pickable", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "_body_create", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + } + }, + { + "name": "_body_set_space", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "space", + "type": "RID" + } + ] + }, + { + "name": "_body_get_space", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "_body_set_mode", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "mode", + "type": "enum::PhysicsServer3D.BodyMode" + } + ] + }, + { + "name": "_body_get_mode", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::PhysicsServer3D.BodyMode" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "_body_set_collision_layer", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "layer", + "type": "int" + } + ] + }, + { + "name": "_body_get_collision_layer", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "_body_set_collision_mask", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "mask", + "type": "int" + } + ] + }, + { + "name": "_body_get_collision_mask", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "_body_add_shape", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "shape", + "type": "RID" + }, + { + "name": "transform", + "type": "Transform3D" + }, + { + "name": "disabled", + "type": "bool" + } + ] + }, + { + "name": "_body_set_shape", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "shape_idx", + "type": "int" + }, + { + "name": "shape", + "type": "RID" + } + ] + }, + { + "name": "_body_set_shape_transform", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "shape_idx", + "type": "int" + }, + { + "name": "transform", + "type": "Transform3D" + } + ] + }, + { + "name": "_body_set_shape_disabled", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "shape_idx", + "type": "int" + }, + { + "name": "disabled", + "type": "bool" + } + ] + }, + { + "name": "_body_get_shape_count", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "_body_get_shape", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "shape_idx", + "type": "int" + } + ] + }, + { + "name": "_body_get_shape_transform", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Transform3D" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "shape_idx", + "type": "int" + } + ] + }, + { + "name": "_body_remove_shape", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "shape_idx", + "type": "int" + } + ] + }, + { + "name": "_body_clear_shapes", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "_body_attach_object_instance_id", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "id", + "type": "int" + } + ] + }, + { + "name": "_body_get_object_instance_id", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "_body_set_enable_continuous_collision_detection", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "_body_is_continuous_collision_detection_enabled", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "_body_set_param", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer3D.BodyParameter" + }, + { + "name": "value", + "type": "Variant" + } + ] + }, + { + "name": "_body_get_param", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer3D.BodyParameter" + } + ] + }, + { + "name": "_body_reset_mass_properties", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "_body_set_state", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "state", + "type": "enum::PhysicsServer3D.BodyState" + }, + { + "name": "value", + "type": "Variant" + } + ] + }, + { + "name": "_body_get_state", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "state", + "type": "enum::PhysicsServer3D.BodyState" + } + ] + }, + { + "name": "_body_apply_central_impulse", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "impulse", + "type": "Vector3" + } + ] + }, + { + "name": "_body_apply_impulse", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "impulse", + "type": "Vector3" + }, + { + "name": "position", + "type": "Vector3" + } + ] + }, + { + "name": "_body_apply_torque_impulse", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "impulse", + "type": "Vector3" + } + ] + }, + { + "name": "_body_apply_central_force", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "force", + "type": "Vector3" + } + ] + }, + { + "name": "_body_apply_force", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "force", + "type": "Vector3" + }, + { + "name": "position", + "type": "Vector3" + } + ] + }, + { + "name": "_body_apply_torque", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "torque", + "type": "Vector3" + } + ] + }, + { + "name": "_body_add_constant_central_force", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "force", + "type": "Vector3" + } + ] + }, + { + "name": "_body_add_constant_force", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "force", + "type": "Vector3" + }, + { + "name": "position", + "type": "Vector3" + } + ] + }, + { + "name": "_body_add_constant_torque", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "torque", + "type": "Vector3" + } + ] + }, + { + "name": "_body_set_constant_force", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "force", + "type": "Vector3" + } + ] + }, + { + "name": "_body_get_constant_force", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "_body_set_constant_torque", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "torque", + "type": "Vector3" + } + ] + }, + { + "name": "_body_get_constant_torque", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "_body_set_axis_velocity", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "axis_velocity", + "type": "Vector3" + } + ] + }, + { + "name": "_body_set_axis_lock", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "axis", + "type": "enum::PhysicsServer3D.BodyAxis" + }, + { + "name": "lock", + "type": "bool" + } + ] + }, + { + "name": "_body_is_axis_locked", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "axis", + "type": "enum::PhysicsServer3D.BodyAxis" + } + ] + }, + { + "name": "_body_add_collision_exception", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "excepted_body", + "type": "RID" + } + ] + }, + { + "name": "_body_remove_collision_exception", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "excepted_body", + "type": "RID" + } + ] + }, + { + "name": "_body_set_max_contacts_reported", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "amount", + "type": "int" + } + ] + }, + { + "name": "_body_get_max_contacts_reported", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "_body_set_omit_force_integration", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "_body_is_omitting_force_integration", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "_body_set_force_integration_callback", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "callable", + "type": "Callable" + }, + { + "name": "userdata", + "type": "Variant" + } + ] + }, + { + "name": "_body_set_ray_pickable", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "_body_test_motion", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "from", + "type": "Transform3D" + }, + { + "name": "motion", + "type": "Vector3" + }, + { + "name": "margin", + "type": "float" + }, + { + "name": "max_collisions", + "type": "int" + }, + { + "name": "collide_separation_ray", + "type": "bool" + }, + { + "name": "result", + "type": "PhysicsServer3DExtensionMotionResult*" + } + ] + }, + { + "name": "_body_get_direct_state", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "PhysicsDirectBodyState3D" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "_soft_body_get_bounds", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "AABB" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "_joint_create", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + } + }, + { + "name": "_joint_clear", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "joint", + "type": "RID" + } + ] + }, + { + "name": "_joint_make_pin", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "body_A", + "type": "RID" + }, + { + "name": "local_A", + "type": "Vector3" + }, + { + "name": "body_B", + "type": "RID" + }, + { + "name": "local_B", + "type": "Vector3" + } + ] + }, + { + "name": "_pin_joint_set_param", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer3D.PinJointParam" + }, + { + "name": "value", + "type": "float" + } + ] + }, + { + "name": "_pin_joint_get_param", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float" + }, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer3D.PinJointParam" + } + ] + }, + { + "name": "_pin_joint_set_local_a", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "local_A", + "type": "Vector3" + } + ] + }, + { + "name": "_pin_joint_get_local_a", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "joint", + "type": "RID" + } + ] + }, + { + "name": "_pin_joint_set_local_b", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "local_B", + "type": "Vector3" + } + ] + }, + { + "name": "_pin_joint_get_local_b", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "joint", + "type": "RID" + } + ] + }, + { + "name": "_joint_make_hinge", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "body_A", + "type": "RID" + }, + { + "name": "hinge_A", + "type": "Transform3D" + }, + { + "name": "body_B", + "type": "RID" + }, + { + "name": "hinge_B", + "type": "Transform3D" + } + ] + }, + { + "name": "_hinge_joint_set_param", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer3D.HingeJointParam" + }, + { + "name": "value", + "type": "float" + } + ] + }, + { + "name": "_hinge_joint_get_param", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float" + }, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer3D.HingeJointParam" + } + ] + }, + { + "name": "_hinge_joint_set_flag", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "flag", + "type": "enum::PhysicsServer3D.HingeJointFlag" + }, + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "_hinge_joint_get_flag", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "flag", + "type": "enum::PhysicsServer3D.HingeJointFlag" + } + ] + }, + { + "name": "_joint_make_slider", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "body_A", + "type": "RID" + }, + { + "name": "local_ref_A", + "type": "Transform3D" + }, + { + "name": "body_B", + "type": "RID" + }, + { + "name": "local_ref_B", + "type": "Transform3D" + } + ] + }, + { + "name": "_slider_joint_set_param", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer3D.SliderJointParam" + }, + { + "name": "value", + "type": "float" + } + ] + }, + { + "name": "_slider_joint_get_param", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float" + }, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer3D.SliderJointParam" + } + ] + }, + { + "name": "_joint_make_cone_twist", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "body_A", + "type": "RID" + }, + { + "name": "local_ref_A", + "type": "Transform3D" + }, + { + "name": "body_B", + "type": "RID" + }, + { + "name": "local_ref_B", + "type": "Transform3D" + } + ] + }, + { + "name": "_cone_twist_joint_set_param", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer3D.ConeTwistJointParam" + }, + { + "name": "value", + "type": "float" + } + ] + }, + { + "name": "_cone_twist_joint_get_param", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float" + }, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer3D.ConeTwistJointParam" + } + ] + }, + { + "name": "_joint_get_type", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::PhysicsServer3D.JointType" + }, + "arguments": [ + { + "name": "joint", + "type": "RID" + } + ] + }, + { + "name": "_joint_set_solver_priority", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "priority", + "type": "int" + } + ] + }, + { + "name": "_joint_get_solver_priority", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int" + }, + "arguments": [ + { + "name": "joint", + "type": "RID" + } + ] + }, + { + "name": "_joint_make_generic_6dof", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "body_A", + "type": "RID" + }, + { + "name": "local_ref_A", + "type": "Transform3D" + }, + { + "name": "body_B", + "type": "RID" + }, + { + "name": "local_ref_B", + "type": "Transform3D" + } + ] + }, + { + "name": "_generic_6dof_joint_set_param", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "axis", + "type": "enum::Vector3.Axis" + }, + { + "name": "param", + "type": "enum::PhysicsServer3D.G6DOFJointAxisParam" + }, + { + "name": "value", + "type": "float" + } + ] + }, + { + "name": "_generic_6dof_joint_get_param", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float" + }, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "axis", + "type": "enum::Vector3.Axis" + }, + { + "name": "param", + "type": "enum::PhysicsServer3D.G6DOFJointAxisParam" + } + ] + }, + { + "name": "_generic_6dof_joint_set_flag", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "axis", + "type": "enum::Vector3.Axis" + }, + { + "name": "flag", + "type": "enum::PhysicsServer3D.G6DOFJointAxisFlag" + }, + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "_generic_6dof_joint_get_flag", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "axis", + "type": "enum::Vector3.Axis" + }, + { + "name": "flag", + "type": "enum::PhysicsServer3D.G6DOFJointAxisFlag" + } + ] + }, + { + "name": "_free_rid", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "rid", + "type": "RID" + } + ] + }, + { + "name": "_set_active", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "active", + "type": "bool" + } + ] + }, + { + "name": "_get_process_info", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int" + }, + "arguments": [ + { + "name": "process_info", + "type": "enum::PhysicsServer3D.ProcessInfo" + } + ] + } + ] + }, + { + "name": "PhysicsServer3DRenderingServerHandler", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Object", + "api_type": "core", + "methods": [ + { + "name": "_set_vertex", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "vertex_id", + "type": "int" + }, + { + "name": "vertices", + "type": "const void*" + } + ] + }, + { + "name": "_set_normal", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "vertex_id", + "type": "int" + }, + { + "name": "normals", + "type": "const void*" + } + ] + }, + { + "name": "_set_aabb", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "aabb", + "type": "AABB" + } + ] + } + ] + }, { "name": "PhysicsShapeQueryParameters2D", "is_refcounted": true, @@ -139086,25 +141518,6 @@ } ] }, - { - "name": "PluginScript", - "is_refcounted": true, - "is_instantiable": true, - "inherits": "Script", - "api_type": "core", - "methods": [ - { - "name": "new", - "is_const": false, - "is_vararg": true, - "is_virtual": false, - "hash": 135338151, - "return_value": { - "type": "Variant" - } - } - ] - }, { "name": "PointLight2D", "is_refcounted": false, @@ -141420,10 +143833,19 @@ { "name": "PrimitiveMesh", "is_refcounted": true, - "is_instantiable": false, + "is_instantiable": true, "inherits": "Mesh", "api_type": "core", "methods": [ + { + "name": "_create_mesh_array", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Array" + } + }, { "name": "set_material", "is_const": false, @@ -141800,6 +144222,52 @@ "meta": "float" } }, + { + "name": "set_sky_cover", + "is_const": false, + "is_vararg": false, + "is_virtual": false, + "hash": 134188166, + "arguments": [ + { + "name": "sky_cover", + "type": "Texture2D" + } + ] + }, + { + "name": "get_sky_cover", + "is_const": true, + "is_vararg": false, + "is_virtual": false, + "hash": 135338183, + "return_value": { + "type": "Texture2D" + } + }, + { + "name": "set_sky_cover_modulate", + "is_const": false, + "is_vararg": false, + "is_virtual": false, + "hash": 134188166, + "arguments": [ + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "get_sky_cover_modulate", + "is_const": true, + "is_vararg": false, + "is_virtual": false, + "hash": 135338183, + "return_value": { + "type": "Color" + } + }, { "name": "set_ground_bottom_color", "is_const": false, @@ -141976,6 +144444,20 @@ "getter": "get_sky_energy", "index": -1 }, + { + "type": "Texture2D", + "name": "sky_cover", + "setter": "set_sky_cover", + "getter": "get_sky_cover", + "index": -1 + }, + { + "type": "Color", + "name": "sky_cover_modulate", + "setter": "set_sky_cover_modulate", + "getter": "get_sky_cover_modulate", + "index": -1 + }, { "type": "Color", "name": "ground_bottom_color", @@ -146325,10 +148807,22 @@ { "name": "Range", "is_refcounted": false, - "is_instantiable": false, + "is_instantiable": true, "inherits": "Control", "api_type": "core", "methods": [ + { + "name": "_value_changed", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "", + "type": "float" + } + ] + }, { "name": "get_value", "is_const": true, @@ -161936,6 +164430,40 @@ } ] }, + { + "name": "canvas_item_add_animation_slice", + "is_const": false, + "is_vararg": false, + "is_virtual": false, + "hash": 138021803, + "arguments": [ + { + "name": "item", + "type": "RID" + }, + { + "name": "animation_length", + "type": "float", + "meta": "double" + }, + { + "name": "slice_begin", + "type": "float", + "meta": "double" + }, + { + "name": "slice_end", + "type": "float", + "meta": "double" + }, + { + "name": "offset", + "type": "float", + "meta": "double", + "default_value": "0.0" + } + ] + }, { "name": "canvas_item_set_sort_children_by_y", "is_const": false, @@ -181851,10 +184379,84 @@ { "name": "StyleBox", "is_refcounted": true, - "is_instantiable": false, + "is_instantiable": true, "inherits": "Resource", "api_type": "core", "methods": [ + { + "name": "_get_style_margin", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float" + }, + "arguments": [ + { + "name": "side", + "type": "enum::Side" + } + ] + }, + { + "name": "_test_mask", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "point", + "type": "Vector2" + }, + { + "name": "rect", + "type": "Rect2" + } + ] + }, + { + "name": "_get_center_size", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "_get_draw_rect", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Rect2" + }, + "arguments": [ + { + "name": "rect", + "type": "Rect2" + } + ] + }, + { + "name": "_draw", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "to_canvas_item", + "type": "RID" + }, + { + "name": "rect", + "type": "Rect2" + } + ] + }, { "name": "test_mask", "is_const": true, @@ -184751,6 +187353,31 @@ "type": "enum::TabBar.CloseButtonDisplayPolicy" } }, + { + "name": "set_max_tab_width", + "is_const": false, + "is_vararg": false, + "is_virtual": false, + "hash": 134188166, + "arguments": [ + { + "name": "width", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_max_tab_width", + "is_const": true, + "is_vararg": false, + "is_virtual": false, + "hash": 135338183, + "return_value": { + "type": "int", + "meta": "int32" + } + }, { "name": "set_scrolling_enabled", "is_const": false, @@ -184972,6 +187599,13 @@ "getter": "get_tab_close_display_policy", "index": -1 }, + { + "type": "int", + "name": "max_tab_width", + "setter": "set_max_tab_width", + "getter": "get_max_tab_width", + "index": -1 + }, { "type": "bool", "name": "scrolling_enabled", @@ -191102,6 +193736,74 @@ } ] }, + { + "name": "font_set_embolden", + "is_const": false, + "is_vararg": false, + "is_virtual": false, + "hash": 134224103, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "strength", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "font_get_embolden", + "is_const": true, + "is_vararg": false, + "is_virtual": false, + "hash": 135374120, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, + { + "name": "font_set_transform", + "is_const": false, + "is_vararg": false, + "is_virtual": false, + "hash": 134224103, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "transform", + "type": "Transform2D" + } + ] + }, + { + "name": "font_get_transform", + "is_const": true, + "is_vararg": false, + "is_virtual": false, + "hash": 135374120, + "return_value": { + "type": "Transform2D" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, { "name": "font_set_variation_coordinates", "is_const": false, @@ -194488,6 +197190,68 @@ } ] }, + { + "name": "_font_set_embolden", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "strength", + "type": "float" + } + ] + }, + { + "name": "_font_get_embolden", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, + { + "name": "_font_set_transform", + "is_const": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "transform", + "type": "Transform2D" + } + ] + }, + { + "name": "_font_get_transform", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Transform2D" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, { "name": "_font_set_variation_coordinates", "is_const": false, @@ -197058,6 +199822,13 @@ } ] }, + { + "name": "TextServerFallback", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "TextServer", + "api_type": "core" + }, { "name": "TextServerManager", "is_refcounted": false, @@ -197193,17 +199964,147 @@ { "name": "Texture", "is_refcounted": true, - "is_instantiable": false, + "is_instantiable": true, "inherits": "Resource", "api_type": "core" }, { "name": "Texture2D", "is_refcounted": true, - "is_instantiable": false, + "is_instantiable": true, "inherits": "Texture", "api_type": "core", "methods": [ + { + "name": "_get_width", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int" + } + }, + { + "name": "_get_height", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int" + } + }, + { + "name": "_is_pixel_opaque", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "x", + "type": "int" + }, + { + "name": "y", + "type": "int" + } + ] + }, + { + "name": "_has_alpha", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + } + }, + { + "name": "_draw", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "to_canvas_item", + "type": "RID" + }, + { + "name": "pos", + "type": "Vector2" + }, + { + "name": "modulate", + "type": "Color" + }, + { + "name": "transpose", + "type": "bool" + } + ] + }, + { + "name": "_draw_rect", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "to_canvas_item", + "type": "RID" + }, + { + "name": "rect", + "type": "Rect2" + }, + { + "name": "tile", + "type": "bool" + }, + { + "name": "modulate", + "type": "Color" + }, + { + "name": "transpose", + "type": "bool" + } + ] + }, + { + "name": "_draw_rect_region", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "tp_canvas_item", + "type": "RID" + }, + { + "name": "rect", + "type": "Rect2" + }, + { + "name": "src_rect", + "type": "Rect2" + }, + { + "name": "modulate", + "type": "Color" + }, + { + "name": "transpose", + "type": "bool" + }, + { + "name": "clip_uv", + "type": "bool" + } + ] + }, { "name": "get_width", "is_const": true, @@ -197362,10 +200263,64 @@ { "name": "Texture3D", "is_refcounted": true, - "is_instantiable": false, + "is_instantiable": true, "inherits": "Texture", "api_type": "core", "methods": [ + { + "name": "_get_format", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::Image.Format" + } + }, + { + "name": "_get_width", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int" + } + }, + { + "name": "_get_height", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int" + } + }, + { + "name": "_get_depth", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int" + } + }, + { + "name": "_has_mipmaps", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + } + }, + { + "name": "_get_data", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Array" + } + }, { "name": "get_format", "is_const": true, @@ -197780,7 +200735,7 @@ { "name": "TextureLayered", "is_refcounted": true, - "is_instantiable": false, + "is_instantiable": true, "inherits": "Texture", "api_type": "core", "enums": [ @@ -197803,6 +200758,75 @@ } ], "methods": [ + { + "name": "_get_format", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::Image.Format" + } + }, + { + "name": "_get_layered_type", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int" + } + }, + { + "name": "_get_width", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int" + } + }, + { + "name": "_get_height", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int" + } + }, + { + "name": "_get_layers", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int" + } + }, + { + "name": "_has_mipmaps", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + } + }, + { + "name": "_get_layer_data", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Image" + }, + "arguments": [ + { + "name": "layer_index", + "type": "int" + } + ] + }, { "name": "get_format", "is_const": true, @@ -204529,6 +207553,23 @@ } ] }, + { + "name": "get_offset_string_from_offset_minutes", + "is_const": true, + "is_vararg": false, + "is_virtual": false, + "hash": 135374120, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "offset_minutes", + "type": "int", + "meta": "int64" + } + ] + }, { "name": "get_datetime_dict_from_system", "is_const": true, @@ -211126,47 +214167,6 @@ "inherits": "Resource", "api_type": "core" }, - { - "name": "VideoStreamGDNative", - "is_refcounted": true, - "is_instantiable": true, - "inherits": "VideoStream", - "api_type": "core", - "methods": [ - { - "name": "set_file", - "is_const": false, - "is_vararg": false, - "is_virtual": false, - "hash": 134188166, - "arguments": [ - { - "name": "file", - "type": "String" - } - ] - }, - { - "name": "get_file", - "is_const": false, - "is_vararg": false, - "is_virtual": false, - "hash": 135338150, - "return_value": { - "type": "String" - } - } - ], - "properties": [ - { - "type": "String", - "name": "file", - "setter": "set_file", - "getter": "get_file", - "index": -1 - } - ] - }, { "name": "VideoStreamPlayer", "is_refcounted": false, @@ -212610,7 +215610,7 @@ } }, { - "name": "set_embed_subwindows_hint", + "name": "set_embedding_subwindows", "is_const": false, "is_vararg": false, "is_virtual": false, @@ -212622,16 +215622,6 @@ } ] }, - { - "name": "get_embed_subwindows_hint", - "is_const": true, - "is_vararg": false, - "is_virtual": false, - "hash": 135338183, - "return_value": { - "type": "bool" - } - }, { "name": "is_embedding_subwindows", "is_const": true, @@ -213170,8 +216160,8 @@ { "type": "bool", "name": "gui_embed_subwindows", - "setter": "set_embed_subwindows_hint", - "getter": "get_embed_subwindows_hint", + "setter": "set_embedding_subwindows", + "getter": "is_embedding_subwindows", "index": -1 }, { @@ -213578,10 +216568,19 @@ { "name": "VisualInstance3D", "is_refcounted": false, - "is_instantiable": false, + "is_instantiable": true, "inherits": "Node3D", "api_type": "core", "methods": [ + { + "name": "_get_aabb", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "AABB" + } + }, { "name": "set_base", "is_const": false, @@ -220075,6 +223074,25 @@ } ] }, + { + "name": "_get_func_code", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "mode", + "type": "enum::Shader.Mode" + }, + { + "name": "type", + "type": "enum::VisualShader.Type" + } + ] + }, { "name": "_get_global_code", "is_const": true, @@ -220098,6 +223116,25 @@ "return_value": { "type": "bool" } + }, + { + "name": "_is_available", + "is_const": true, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "mode", + "type": "enum::Shader.Mode" + }, + { + "name": "type", + "type": "enum::VisualShader.Type" + } + ] } ], "properties": [ @@ -230265,6 +233302,29 @@ } ] }, + { + "name": "get_tracker_profile", + "is_const": true, + "is_vararg": false, + "is_virtual": false, + "hash": 135338183, + "return_value": { + "type": "String" + } + }, + { + "name": "set_tracker_profile", + "is_const": false, + "is_vararg": false, + "is_virtual": false, + "hash": 134188166, + "arguments": [ + { + "name": "profile", + "type": "String" + } + ] + }, { "name": "get_tracker_hand", "is_const": true, @@ -230449,6 +233509,15 @@ "type": "String" } ] + }, + { + "name": "profile_changed", + "arguments": [ + { + "name": "role", + "type": "String" + } + ] } ], "properties": [ @@ -230473,6 +233542,13 @@ "getter": "get_tracker_desc", "index": -1 }, + { + "type": "String", + "name": "profile", + "setter": "set_tracker_profile", + "getter": "get_tracker_profile", + "index": -1 + }, { "type": "int", "name": "hand", @@ -230976,15 +234052,39 @@ "native_structures": [ { "name": "AudioFrame", - "format": "float left,float right" - }, - { - "name": "Glyph", - "format": "int start,int end,uint8_t count,uint8_t repeat,uint16_t flags,float x_off,float y_off,float advance,RID font_rid,int font_size,int32_t index" + "format": "float left;float right" }, { "name": "CaretInfo", - "format": "Rect2 leading_caret,Rect2 trailing_caret,TextServer::Direction leading_direction,TextServer::Direction trailing_direction" + "format": "Rect2 leading_caret;Rect2 trailing_caret;TextServer::Direction leading_direction;TextServer::Direction trailing_direction" + }, + { + "name": "Glyph", + "format": "int start = -1;int end = -1;uint8_t count = 0;uint8_t repeat = 1;uint16_t flags = 0;float x_off = 0.f;float y_off = 0.f;float advance = 0.f;RID font_rid;int font_size = 0;int32_t index = 0" + }, + { + "name": "PhysicsServer3DExtensionMotionCollision", + "format": "Vector3 position;Vector3 normal;Vector3 collider_velocity;real_t depth;int local_shape;ObjectID collider_id;RID collider;int collider_shape" + }, + { + "name": "PhysicsServer3DExtensionMotionResult", + "format": "Vector3 travel;Vector3 remainder;real_t collision_safe_fraction;real_t collision_unsafe_fraction;PhysicsServer3DExtensionMotionCollision collisions[32];int collision_count" + }, + { + "name": "PhysicsServer3DExtensionRayResult", + "format": "Vector3 position;Vector3 normal;RID rid;ObjectID collider_id;Object *collider;int shape" + }, + { + "name": "PhysicsServer3DExtensionShapeRestInfo", + "format": "Vector3 point;Vector3 normal;RID rid;ObjectID collider_id;int shape;Vector3 linear_velocity" + }, + { + "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)" } ] -} +} \ No newline at end of file diff --git a/godot-headers/godot/gdnative_interface.h b/godot-headers/godot/gdnative_interface.h index 76e87eaf..cc2957ec 100644 --- a/godot-headers/godot/gdnative_interface.h +++ b/godot-headers/godot/gdnative_interface.h @@ -306,6 +306,8 @@ typedef struct { void (*print_warning)(const char *p_description, const char *p_function, const char *p_file, int32_t p_line); void (*print_script_error)(const char *p_description, const char *p_function, const char *p_file, int32_t p_line); + uint64_t (*get_native_struct_size)(const char *p_name); + /* GODOT VARIANT */ /* variant general */ diff --git a/include/godot_cpp/core/object.hpp b/include/godot_cpp/core/object.hpp index 129fcf39..fb8974d7 100644 --- a/include/godot_cpp/core/object.hpp +++ b/include/godot_cpp/core/object.hpp @@ -134,6 +134,28 @@ MethodInfo::MethodInfo(const PropertyInfo &p_ret, const char *p_name, const Args arguments = { args... }; } +class ObjectID { + uint64_t id = 0; + +public: + _FORCE_INLINE_ bool is_ref_counted() const { return (id & (uint64_t(1) << 63)) != 0; } + _FORCE_INLINE_ bool is_valid() const { return id != 0; } + _FORCE_INLINE_ bool is_null() const { return id == 0; } + _FORCE_INLINE_ operator uint64_t() const { return id; } + _FORCE_INLINE_ operator int64_t() const { return id; } + + _FORCE_INLINE_ bool operator==(const ObjectID &p_id) const { return id == p_id.id; } + _FORCE_INLINE_ bool operator!=(const ObjectID &p_id) const { return id != p_id.id; } + _FORCE_INLINE_ bool operator<(const ObjectID &p_id) const { return id < p_id.id; } + + _FORCE_INLINE_ void operator=(int64_t p_int64) { id = p_int64; } + _FORCE_INLINE_ void operator=(uint64_t p_uint64) { id = p_uint64; } + + _FORCE_INLINE_ ObjectID() {} + _FORCE_INLINE_ explicit ObjectID(const uint64_t p_id) { id = p_id; } + _FORCE_INLINE_ explicit ObjectID(const int64_t p_id) { id = p_id; } +}; + class ObjectDB { public: static Object *get_instance(uint64_t p_object_id) {