diff --git a/Generator/Generator/ClassGen.swift b/Generator/Generator/ClassGen.swift index 40ccbfade..e1d737e12 100644 --- a/Generator/Generator/ClassGen.swift +++ b/Generator/Generator/ClassGen.swift @@ -652,7 +652,8 @@ func processClass (cdef: JGodotExtensionAPIClass, outputDir: String?) async { p ("internal \(fastInitOverrides)init (fast: Bool)") { p ("super.init (name: \(cdef.name).className)") } - if cdef.isInstantiable { + + if cdef.isInstantiable || true { p ("/// Initializes a new instance of the type \(cdef.name), call this constructor") p ("/// when you create a subclass of this type.") p ("public required init ()") { @@ -661,7 +662,14 @@ func processClass (cdef: JGodotExtensionAPIClass, outputDir: String?) async { } else { p ("/// This class can not be instantiated by user code") p ("public required init ()") { - p ("fatalError (\"You cannot subclass or instantiate \(cdef.name) directly\")") + // is_instantiable means "Users should not instantiate this", but I was incorrect + // assuming it meant they could not subclass, and let the engine deal with it. + // With the 'public required init' requirement, I am not sure how to surface + // this. Perhaps throw the error, and provide an altnerative constructor chain? + p ("public required init ()") { + p ("super.init (name: StringName (\"\(cdef.name)\"))") + } + //p ("fatalError (\"You cannot subclass or instantiate \(cdef.name) directly\")") } } diff --git a/Package.swift b/Package.swift index 3e1c94022..630519b36 100644 --- a/Package.swift +++ b/Package.swift @@ -25,6 +25,11 @@ let package = Package( name: "SimpleExtension", type: .dynamic, targets: ["SimpleExtension"]), + .library( + name: "SwiftGodotEditorExtension", + type: .dynamic, + targets: ["SwiftGodotEditorExtension"]), + ], dependencies: [ // Dependencies declare other packages that this package depends on. @@ -84,6 +89,13 @@ let package = Package( dependencies: ["SwiftGodotMacroLibrary", .target(name: "SwiftGodot")]), // This contains sample code showing how to use the SwiftGodot API + .target( + name: "SwiftGodotEditorExtension", + dependencies: ["SwiftGodot"], + swiftSettings: [.unsafeFlags (["-suppress-warnings"])], + linkerSettings: [.unsafeFlags ( + ["-Xlinker", "-undefined", + "-Xlinker", "dynamic_lookup"])]), .target( name: "SimpleExtension", dependencies: ["SwiftGodotMacros"], diff --git a/Plugins/CodeGeneratorPlugin/plugin.swift b/Plugins/CodeGeneratorPlugin/plugin.swift index 6dd9da4e8..ca28fc35c 100644 --- a/Plugins/CodeGeneratorPlugin/plugin.swift +++ b/Plugins/CodeGeneratorPlugin/plugin.swift @@ -1,4 +1,4 @@ -// +/// // Generator's Plugin definition.swift // // @@ -337,8 +337,6 @@ let known = [ "GDExtension.swift", "GDExtensionManager.swift", "GDScript.swift", - "GDScriptEditorTranslationParserPlugin.swift", - "GDScriptNativeClass.swift", "GLTFAccessor.swift", "GLTFAnimation.swift", "GLTFBufferView.swift", @@ -346,8 +344,6 @@ let known = [ "GLTFDocument.swift", "GLTFDocumentExtension.swift", "GLTFDocumentExtensionConvertImporterMesh.swift", - "GLTFDocumentExtensionPhysics.swift", - "GLTFDocumentExtensionTextureWebP.swift", "GLTFLight.swift", "GLTFMesh.swift", "GLTFNode.swift", @@ -374,12 +370,11 @@ let known = [ "Geometry2D.swift", "Geometry3D.swift", "GeometryInstance3D.swift", - "GodotPhysicsServer2D.swift", - "GodotPhysicsServer3D.swift", "Gradient.swift", "GradientTexture1D.swift", "GradientTexture2D.swift", "GraphEdit.swift", + "GraphElement.swift", "GraphNode.swift", "GridContainer.swift", "GridMap.swift", @@ -397,7 +392,6 @@ let known = [ "HeightMapShape3D.swift", "HingeJoint3D.swift", "IP.swift", - "IPUnix.swift", "Image.swift", "ImageFormatLoader.swift", "ImageFormatLoaderExtension.swift", @@ -474,8 +468,6 @@ let known = [ "MissingResource.swift", "MobileVRInterface.swift", "MovieWriter.swift", - "MovieWriterMJPEG.swift", - "MovieWriterPNGWAV.swift", "MultiMesh.swift", "MultiMeshInstance2D.swift", "MultiMeshInstance3D.swift", @@ -522,6 +514,16 @@ let known = [ "OggPacketSequence.swift", "OggPacketSequencePlayback.swift", "OmniLight3D.swift", + "OpenXRAPIExtension.swift", + "OpenXRAction.swift", + "OpenXRActionMap.swift", + "OpenXRActionSet.swift", + "OpenXRExtensionWrapperExtension.swift", + "OpenXRHand.swift", + "OpenXRIPBinding.swift", + "OpenXRInteractionProfile.swift", + "OpenXRInteractionProfileMetadata.swift", + "OpenXRInterface.swift", "OptimizedTranslation.swift", "OptionButton.swift", "PCKPacker.swift", @@ -631,13 +633,31 @@ let known = [ "RegExMatch.swift", "RemoteTransform2D.swift", "RemoteTransform3D.swift", + "RenderSceneBuffers.swift", + "RenderSceneBuffersConfiguration.swift", + "RenderSceneBuffersExtension.swift", + "RenderSceneBuffersRD.swift", "RenderingDevice.swift", "RenderingServer.swift", "Resource.swift", - "ResourceFormatImporterSaver.swift", "ResourceFormatLoader.swift", "ResourceFormatSaver.swift", "ResourceImporter.swift", + "ResourceImporterBMFont.swift", + "ResourceImporterBitMap.swift", + "ResourceImporterCSVTranslation.swift", + "ResourceImporterDynamicFont.swift", + "ResourceImporterImage.swift", + "ResourceImporterImageFont.swift", + "ResourceImporterLayeredTexture.swift", + "ResourceImporterMP3.swift", + "ResourceImporterOBJ.swift", + "ResourceImporterOggVorbis.swift", + "ResourceImporterScene.swift", + "ResourceImporterShaderFile.swift", + "ResourceImporterTexture.swift", + "ResourceImporterTextureAtlas.swift", + "ResourceImporterWAV.swift", "ResourceLoader.swift", "ResourcePreloader.swift", "ResourceSaver.swift", @@ -742,9 +762,15 @@ let known = [ "Texture.swift", "Texture2D.swift", "Texture2DArray.swift", + "Texture2DArrayRD.swift", + "Texture2DRD.swift", "Texture3D.swift", + "Texture3DRD.swift", "TextureButton.swift", + "TextureCubemapRD.swift", + "TextureCubemapArrayRD.swift", "TextureLayered.swift", + "TextureLayeredRD.swift", "TextureProgressBar.swift", "TextureRect.swift", "Theme.swift", @@ -852,6 +878,8 @@ let known = [ "VisualShaderNodeRandomRange.swift", "VisualShaderNodeRemap.swift", "VisualShaderNodeResizableBase.swift", + "VisualShaderNodeRotationByAxis.swift", + "VisualShaderNodeScreenNormalWorldSpace.swift", "VisualShaderNodeSDFRaymarch.swift", "VisualShaderNodeSDFToScreenUV.swift", "VisualShaderNodeSample3D.swift", @@ -899,6 +927,7 @@ let known = [ "VisualShaderNodeVectorLen.swift", "VisualShaderNodeVectorOp.swift", "VisualShaderNodeVectorRefract.swift", + "VisualShaderNodeWorldPositionFromDepth.swift", "VoxelGI.swift", "VoxelGIData.swift", "WeakRef.swift", diff --git a/Sources/GDExtension/GDExtension.h b/Sources/GDExtension/include/GDExtension.h similarity index 100% rename from Sources/GDExtension/GDExtension.h rename to Sources/GDExtension/include/GDExtension.h diff --git a/Sources/SwiftGodot/Core/File.swift b/Sources/SwiftGodot/Core/File.swift new file mode 100644 index 000000000..a58099176 --- /dev/null +++ b/Sources/SwiftGodot/Core/File.swift @@ -0,0 +1,8 @@ +// +// File.swift +// +// +// Created by Miguel de Icaza on 9/20/23. +// + +import Foundation diff --git a/Sources/SwiftGodot/Core/Wrapped.swift b/Sources/SwiftGodot/Core/Wrapped.swift index 023acdece..b9f22c132 100644 --- a/Sources/SwiftGodot/Core/Wrapped.swift +++ b/Sources/SwiftGodot/Core/Wrapped.swift @@ -259,7 +259,6 @@ func lookupObject (nativeHandle: UnsafeRawPointer) -> T { /// to instantiate it. Notice that this is different that direct instantiation from our API /// func createFunc (_ userData: UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer? { - print ("SWIFT: Creating object userData:\(userData)") guard let userData else { print ("Got a nil userData") return nil @@ -270,6 +269,7 @@ func createFunc (_ userData: UnsafeMutableRawPointer?) -> UnsafeMutableRawPointe return nil } let o = type.init () + print ("SWIFT: Creating object userData:\(userData) of \(type)") return UnsafeMutableRawPointer (mutating: o.handle) } diff --git a/Sources/SwiftGodot/SwiftGodot.docc/Resources/Tutorials/Sources/SimpleRunnerDriver-starter-2.txt b/Sources/SwiftGodot/SwiftGodot.docc/Resources/Tutorials/Sources/SimpleRunnerDriver-starter-2.txt index 3a41a743a..058c461ab 100644 --- a/Sources/SwiftGodot/SwiftGodot.docc/Resources/Tutorials/Sources/SimpleRunnerDriver-starter-2.txt +++ b/Sources/SwiftGodot/SwiftGodot.docc/Resources/Tutorials/Sources/SimpleRunnerDriver-starter-2.txt @@ -1,4 +1,3 @@ [configuration] entry_symbol = "swift_entry_point" compatibility_minimum = 4.1 - diff --git a/Sources/SwiftGodot/SwiftGodot.docc/Tutorials/Using Swift Godot Kit.tutorial b/Sources/SwiftGodot/SwiftGodot.docc/Tutorials/Using Swift Godot Kit.tutorial index c4c86a5b3..858767bfc 100644 --- a/Sources/SwiftGodot/SwiftGodot.docc/Tutorials/Using Swift Godot Kit.tutorial +++ b/Sources/SwiftGodot/SwiftGodot.docc/Tutorials/Using Swift Godot Kit.tutorial @@ -8,6 +8,7 @@ @Section(title: "SwiftGodotKit from Xcode") { @ContentAndMedia { + Using Godot as a library using SwiftGodotKit SwiftGodot provides the API bridge between the Swift world and the Godot API. This API can be used to implement new capabilities in both Godot extensions, or to drive Godot entirely from Swift. This tutorial covers how to drive Godot entirely from Swift, rather than how to extend Godot with Swift or implementing functionality for Godot in Swift. diff --git a/Sources/SwiftGodot/extension_api.json b/Sources/SwiftGodot/extension_api.json index 8c31415c7..af604710d 100644 --- a/Sources/SwiftGodot/extension_api.json +++ b/Sources/SwiftGodot/extension_api.json @@ -1,11 +1,11 @@ { "header": { "version_major": 4, - "version_minor": 1, - "version_patch": 2, - "version_status": "rc", + "version_minor": 2, + "version_patch": 0, + "version_status": "dev", "version_build": "custom_build", - "version_full_name": "Godot Engine v4.1.2.rc.custom_build" + "version_full_name": "Godot Engine v4.2.dev.custom_build" }, "builtin_class_sizes": [ { @@ -2593,6 +2593,22 @@ "name": "KEY_LAUNCHF", "value": 4194415 }, + { + "name": "KEY_GLOBE", + "value": 4194416 + }, + { + "name": "KEY_KEYBOARD", + "value": 4194417 + }, + { + "name": "KEY_JIS_EISU", + "value": 4194418 + }, + { + "name": "KEY_JIS_KANA", + "value": 4194419 + }, { "name": "KEY_UNKNOWN", "value": 8388607 @@ -2880,22 +2896,6 @@ { "name": "KEY_SECTION", "value": 167 - }, - { - "name": "KEY_GLOBE", - "value": 4194416 - }, - { - "name": "KEY_KEYBOARD", - "value": 4194417 - }, - { - "name": "KEY_JIS_EISU", - "value": 4194418 - }, - { - "name": "KEY_JIS_KANA", - "value": 4194419 } ] }, @@ -4183,6 +4183,45 @@ } ] }, + { + "name": "asinh", + "return_type": "float", + "category": "math", + "is_vararg": false, + "hash": 2140049587, + "arguments": [ + { + "name": "x", + "type": "float" + } + ] + }, + { + "name": "acosh", + "return_type": "float", + "category": "math", + "is_vararg": false, + "hash": 2140049587, + "arguments": [ + { + "name": "x", + "type": "float" + } + ] + }, + { + "name": "atanh", + "return_type": "float", + "category": "math", + "is_vararg": false, + "hash": 2140049587, + "arguments": [ + { + "name": "x", + "type": "float" + } + ] + }, { "name": "sqrt", "return_type": "float", @@ -5420,6 +5459,23 @@ } ] }, + { + "name": "type_convert", + "return_type": "Variant", + "category": "general", + "is_vararg": false, + "hash": 2453062746, + "arguments": [ + { + "name": "variant", + "type": "Variant" + }, + { + "name": "type", + "type": "int" + } + ] + }, { "name": "str", "return_type": "String", @@ -7773,6 +7829,14 @@ } ] }, + { + "name": "reverse", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3942272618 + }, { "name": "insert", "return_type": "String", @@ -9503,6 +9567,16 @@ "type": "Vector2i", "value": "Vector2i(1, 1)" }, + { + "name": "MIN", + "type": "Vector2i", + "value": "Vector2i(-2147483648, -2147483648)" + }, + { + "name": "MAX", + "type": "Vector2i", + "value": "Vector2i(2147483647, 2147483647)" + }, { "name": "LEFT", "type": "Vector2i", @@ -11313,6 +11387,16 @@ "type": "Vector3i", "value": "Vector3i(1, 1, 1)" }, + { + "name": "MIN", + "type": "Vector3i", + "value": "Vector3i(-2147483648, -2147483648, -2147483648)" + }, + { + "name": "MAX", + "type": "Vector3i", + "value": "Vector3i(2147483647, 2147483647, 2147483647)" + }, { "name": "LEFT", "type": "Vector3i", @@ -12617,6 +12701,16 @@ "name": "ONE", "type": "Vector4i", "value": "Vector4i(1, 1, 1, 1)" + }, + { + "name": "MIN", + "type": "Vector4i", + "value": "Vector4i(-2147483648, -2147483648, -2147483648, -2147483648)" + }, + { + "name": "MAX", + "type": "Vector4i", + "value": "Vector4i(2147483647, 2147483647, 2147483647, 2147483647)" } ], "enums": [ @@ -17418,6 +17512,14 @@ } ] }, + { + "name": "reverse", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3942272618 + }, { "name": "insert", "return_type": "String", @@ -24962,6 +25064,44 @@ } ] }, + { + "name": "fill_solid_region", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1152863744, + "arguments": [ + { + "name": "region", + "type": "Rect2i" + }, + { + "name": "solid", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "fill_weight_scale_region", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2793244083, + "arguments": [ + { + "name": "region", + "type": "Rect2i" + }, + { + "name": "weight_scale", + "type": "float", + "meta": "float" + } + ] + }, { "name": "clear", "is_const": false, @@ -39261,6 +39401,23 @@ "signals": [ { "name": "bus_layout_changed" + }, + { + "name": "bus_renamed", + "arguments": [ + { + "name": "bus_index", + "type": "int" + }, + { + "name": "old_name", + "type": "StringName" + }, + { + "name": "new_name", + "type": "StringName" + } + ] } ], "properties": [ @@ -39785,6 +39942,40 @@ "inherits": "AudioStream", "api_type": "core", "methods": [ + { + "name": "load_from_buffer", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 354904730, + "return_value": { + "type": "AudioStreamOggVorbis" + }, + "arguments": [ + { + "name": "buffer", + "type": "PackedByteArray" + } + ] + }, + { + "name": "load_from_file", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 797568536, + "return_value": { + "type": "AudioStreamOggVorbis" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, { "name": "set_packet_sequence", "is_const": false, @@ -42667,7 +42858,7 @@ "is_virtual": true, "arguments": [ { - "name": "button_pressed", + "name": "toggled_on", "type": "bool" } ] @@ -42973,7 +43164,7 @@ "name": "toggled", "arguments": [ { - "name": "button_pressed", + "name": "toggled_on", "type": "bool" } ] @@ -43454,8 +43645,12 @@ "value": 20 }, { - "name": "FLAG_MAX", + "name": "FLAG_DISABLE_FOG", "value": 21 + }, + { + "name": "FLAG_MAX", + "value": 22 } ] }, @@ -45463,6 +45658,13 @@ "getter": "get_flag", "index": 14 }, + { + "type": "bool", + "name": "disable_fog", + "setter": "set_flag", + "getter": "get_flag", + "index": 21 + }, { "type": "bool", "name": "vertex_color_use_as_albedo", @@ -48609,6 +48811,11 @@ ] } ], + "signals": [ + { + "name": "finished" + } + ], "properties": [ { "type": "bool", @@ -50253,6 +50460,11 @@ ] } ], + "signals": [ + { + "name": "finished" + } + ], "properties": [ { "type": "bool", @@ -61794,6 +62006,92 @@ "type": "typedarray::int" } }, + { + "name": "create_code_region", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "get_code_region_start_tag", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "get_code_region_end_tag", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_code_region_tags", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 708800718, + "arguments": [ + { + "name": "start", + "type": "String", + "default_value": "\"region\"" + }, + { + "name": "end", + "type": "String", + "default_value": "\"endregion\"" + } + ] + }, + { + "name": "is_line_code_region_start", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "is_line_code_region_end", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + } + ] + }, { "name": "add_string_delimiter", "is_const": false, @@ -62392,15 +62690,41 @@ }, { "name": "get_text_for_symbol_lookup", - "is_const": false, + "is_const": true, "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 2841200299, + "hash": 201670096, + "hash_compatibility": [ + 2841200299 + ], "return_value": { "type": "String" } }, + { + "name": "get_text_with_cursor_char", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1391810591, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + }, + { + "name": "column", + "type": "int", + "meta": "int32" + } + ] + }, { "name": "set_symbol_lookup_word_as_valid", "is_const": false, @@ -73362,6 +73686,32 @@ } ] }, + { + "name": "FileDialogMode", + "is_bitfield": false, + "values": [ + { + "name": "FILE_DIALOG_MODE_OPEN_FILE", + "value": 0 + }, + { + "name": "FILE_DIALOG_MODE_OPEN_FILES", + "value": 1 + }, + { + "name": "FILE_DIALOG_MODE_OPEN_DIR", + "value": 2 + }, + { + "name": "FILE_DIALOG_MODE_OPEN_ANY", + "value": 3 + }, + { + "name": "FILE_DIALOG_MODE_SAVE_FILE", + "value": 4 + } + ] + }, { "name": "WindowMode", "is_bitfield": false, @@ -75012,6 +75362,17 @@ "type": "String" } }, + { + "name": "clipboard_get_image", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4190603485, + "return_value": { + "type": "Image" + } + }, { "name": "clipboard_has", "is_const": true, @@ -75023,6 +75384,17 @@ "type": "bool" } }, + { + "name": "clipboard_has_image", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, { "name": "clipboard_set_primary", "is_const": false, @@ -76432,6 +76804,47 @@ } ] }, + { + "name": "file_dialog_show", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1531299078, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "title", + "type": "String" + }, + { + "name": "current_directory", + "type": "String" + }, + { + "name": "filename", + "type": "String" + }, + { + "name": "show_hidden", + "type": "bool" + }, + { + "name": "mode", + "type": "enum::DisplayServer.FileDialogMode" + }, + { + "name": "filters", + "type": "PackedStringArray" + }, + { + "name": "callback", + "type": "Callable" + } + ] + }, { "name": "keyboard_get_layout_count", "is_const": true, @@ -76524,6 +76937,23 @@ } ] }, + { + "name": "keyboard_get_label_from_physical", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3447613187, + "return_value": { + "type": "enum::Key" + }, + "arguments": [ + { + "name": "keycode", + "type": "enum::Key" + } + ] + }, { "name": "process_events", "is_const": false, @@ -77905,7 +78335,20 @@ "is_refcounted": true, "is_instantiable": false, "inherits": "RefCounted", - "api_type": "editor" + "api_type": "editor", + "methods": [ + { + "name": "get_os_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + } + ] }, { "name": "EditorExportPlatformAndroid", @@ -78154,6 +78597,26 @@ } ] }, + { + "name": "_get_export_option_warning", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "platform", + "type": "EditorExportPlatform" + }, + { + "name": "option", + "type": "String" + } + ] + }, { "name": "_get_export_features", "is_const": true, @@ -78184,6 +78647,142 @@ "type": "String" } }, + { + "name": "_supports_platform", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "platform", + "type": "EditorExportPlatform" + } + ] + }, + { + "name": "_get_android_dependencies", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "PackedStringArray" + }, + "arguments": [ + { + "name": "platform", + "type": "EditorExportPlatform" + }, + { + "name": "debug", + "type": "bool" + } + ] + }, + { + "name": "_get_android_dependencies_maven_repos", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "PackedStringArray" + }, + "arguments": [ + { + "name": "platform", + "type": "EditorExportPlatform" + }, + { + "name": "debug", + "type": "bool" + } + ] + }, + { + "name": "_get_android_libraries", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "PackedStringArray" + }, + "arguments": [ + { + "name": "platform", + "type": "EditorExportPlatform" + }, + { + "name": "debug", + "type": "bool" + } + ] + }, + { + "name": "_get_android_manifest_activity_element_contents", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "platform", + "type": "EditorExportPlatform" + }, + { + "name": "debug", + "type": "bool" + } + ] + }, + { + "name": "_get_android_manifest_application_element_contents", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "platform", + "type": "EditorExportPlatform" + }, + { + "name": "debug", + "type": "bool" + } + ] + }, + { + "name": "_get_android_manifest_element_contents", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "platform", + "type": "EditorExportPlatform" + }, + { + "name": "debug", + "type": "bool" + } + ] + }, { "name": "add_shared_object", "is_const": false, @@ -80132,6 +80731,17 @@ } ] }, + { + "name": "get_editor_theme", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3846893731, + "return_value": { + "type": "Theme" + } + }, { "name": "get_base_control", "is_const": true, @@ -80299,6 +80909,31 @@ } ] }, + { + "name": "get_current_feature_profile", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_current_feature_profile", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "profile_name", + "type": "String" + } + ] + }, { "name": "get_file_system_dock", "is_const": true, @@ -80531,6 +81166,14 @@ } ] }, + { + "name": "save_all_scenes", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, { "name": "mark_scene_as_unsaved", "is_const": false, @@ -81958,6 +82601,22 @@ "is_vararg": false, "is_virtual": true }, + { + "name": "_get_unsaved_status", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "for_scene", + "type": "String" + } + ] + }, { "name": "_save_external_data", "is_const": false, @@ -82032,6 +82691,37 @@ "is_vararg": false, "is_virtual": true }, + { + "name": "_editor_init", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "request_notify_editor_init", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "register", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "unregister", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, { "name": "add_control_to_container", "is_const": false, @@ -82653,6 +83343,17 @@ "type": "EditorDebuggerPlugin" } ] + }, + { + "name": "get_plugin_version", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } } ], "signals": [ @@ -90500,6 +91201,60 @@ "value": 4 } ] + }, + { + "name": "UnixPermissionFlags", + "is_bitfield": true, + "values": [ + { + "name": "UNIX_READ_OWNER", + "value": 256 + }, + { + "name": "UNIX_WRITE_OWNER", + "value": 128 + }, + { + "name": "UNIX_EXECUTE_OWNER", + "value": 64 + }, + { + "name": "UNIX_READ_GROUP", + "value": 32 + }, + { + "name": "UNIX_WRITE_GROUP", + "value": 16 + }, + { + "name": "UNIX_EXECUTE_GROUP", + "value": 8 + }, + { + "name": "UNIX_READ_OTHER", + "value": 4 + }, + { + "name": "UNIX_WRITE_OTHER", + "value": 2 + }, + { + "name": "UNIX_EXECUTE_OTHER", + "value": 1 + }, + { + "name": "UNIX_SET_USER_ID", + "value": 2048 + }, + { + "name": "UNIX_SET_GROUP_ID", + "value": 1024 + }, + { + "name": "UNIX_RESTRICTED_DELETE", + "value": 512 + } + ] } ], "methods": [ @@ -91241,6 +91996,120 @@ "type": "String" } ] + }, + { + "name": "get_unix_permissions", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 524341837, + "return_value": { + "type": "bitfield::FileAccess.UnixPermissionFlags" + }, + "arguments": [ + { + "name": "file", + "type": "String" + } + ] + }, + { + "name": "set_unix_permissions", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 846038644, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "file", + "type": "String" + }, + { + "name": "permissions", + "type": "bitfield::FileAccess.UnixPermissionFlags" + } + ] + }, + { + "name": "get_hidden_attribute", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 2323990056, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "file", + "type": "String" + } + ] + }, + { + "name": "set_hidden_attribute", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 2892558115, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "file", + "type": "String" + }, + { + "name": "hidden", + "type": "bool" + } + ] + }, + { + "name": "set_read_only_attribute", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 2892558115, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "file", + "type": "String" + }, + { + "name": "ro", + "type": "bool" + } + ] + }, + { + "name": "get_read_only_attribute", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 2323990056, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "file", + "type": "String" + } + ] } ], "properties": [ @@ -91579,6 +92448,31 @@ "type": "bool" } }, + { + "name": "set_use_native_dialog", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "native", + "type": "bool" + } + ] + }, + { + "name": "get_use_native_dialog", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, { "name": "deselect_all", "is_const": false, @@ -91662,6 +92556,12 @@ "setter": "set_show_hidden_files", "getter": "is_showing_hidden_files" }, + { + "type": "bool", + "name": "use_native_dialog", + "setter": "set_use_native_dialog", + "getter": "get_use_native_dialog" + }, { "type": "String", "name": "current_dir", @@ -92259,7 +93159,10 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 1149405976, + "hash": 1222433716, + "hash_compatibility": [ + 1149405976 + ], "return_value": { "type": "RID" }, @@ -92284,6 +93187,30 @@ "name": "transform", "type": "Transform2D", "default_value": "Transform2D(1, 0, 0, 1, 0, 0)" + }, + { + "name": "spacing_top", + "type": "int", + "meta": "int32", + "default_value": "0" + }, + { + "name": "spacing_bottom", + "type": "int", + "meta": "int32", + "default_value": "0" + }, + { + "name": "spacing_space", + "type": "int", + "meta": "int32", + "default_value": "0" + }, + { + "name": "spacing_glyph", + "type": "int", + "meta": "int32", + "default_value": "0" } ] }, @@ -93090,6 +94017,14 @@ "meta": "int64" } } + ], + "properties": [ + { + "type": "typedarray::24/17:Font", + "name": "fallbacks", + "setter": "set_fallbacks", + "getter": "get_fallbacks" + } ] }, { @@ -93713,6 +94648,53 @@ } ] }, + { + "name": "set_extra_spacing", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 62942285, + "arguments": [ + { + "name": "cache_index", + "type": "int", + "meta": "int32" + }, + { + "name": "spacing", + "type": "enum::TextServer.SpacingType" + }, + { + "name": "value", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "get_extra_spacing", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1924257185, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "cache_index", + "type": "int", + "meta": "int32" + }, + { + "name": "spacing", + "type": "enum::TextServer.SpacingType" + } + ] + }, { "name": "set_face_index", "is_const": false, @@ -94994,12 +95976,6 @@ "name": "opentype_feature_overrides", "setter": "set_opentype_feature_overrides", "getter": "get_opentype_feature_overrides" - }, - { - "type": "typedarray::24/17:Font", - "name": "fallbacks", - "setter": "set_fallbacks", - "getter": "get_fallbacks" } ] }, @@ -95180,12 +96156,6 @@ "setter": "set_base_font", "getter": "get_base_font" }, - { - "type": "typedarray::24/17:Font", - "name": "fallbacks", - "setter": "set_fallbacks", - "getter": "get_fallbacks" - }, { "type": "Dictionary", "name": "variation_opentype", @@ -95497,33 +96467,6 @@ } ] }, - { - "name": "GDScriptEditorTranslationParserPlugin", - "is_refcounted": true, - "is_instantiable": false, - "inherits": "EditorTranslationParserPlugin", - "api_type": "core" - }, - { - "name": "GDScriptNativeClass", - "is_refcounted": true, - "is_instantiable": false, - "inherits": "RefCounted", - "api_type": "core", - "methods": [ - { - "name": "new", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 1460262497, - "return_value": { - "type": "Variant" - } - } - ] - }, { "name": "GLTFAccessor", "is_refcounted": true, @@ -96605,6 +97548,58 @@ } ] }, + { + "name": "set_image_format", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "image_format", + "type": "String" + } + ] + }, + { + "name": "get_image_format", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_lossy_quality", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "lossy_quality", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_lossy_quality", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, { "name": "register_gltf_document_extension", "is_const": false, @@ -96638,6 +97633,20 @@ } ] } + ], + "properties": [ + { + "type": "String", + "name": "image_format", + "setter": "set_image_format", + "getter": "get_image_format" + }, + { + "type": "float", + "name": "lossy_quality", + "setter": "set_lossy_quality", + "getter": "get_lossy_quality" + } ] }, { @@ -96729,6 +97738,16 @@ } ] }, + { + "name": "_get_image_file_extension", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + } + }, { "name": "_parse_texture_json", "is_const": false, @@ -96882,6 +97901,126 @@ } ] }, + { + "name": "_export_preserialize", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "state", + "type": "GLTFState" + } + ] + }, + { + "name": "_get_saveable_image_formats", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "_serialize_image_to_bytes", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "PackedByteArray" + }, + "arguments": [ + { + "name": "state", + "type": "GLTFState" + }, + { + "name": "image", + "type": "Image" + }, + { + "name": "image_dict", + "type": "Dictionary" + }, + { + "name": "image_format", + "type": "String" + }, + { + "name": "lossy_quality", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "_save_image_at_path", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "state", + "type": "GLTFState" + }, + { + "name": "image", + "type": "Image" + }, + { + "name": "file_path", + "type": "String" + }, + { + "name": "image_format", + "type": "String" + }, + { + "name": "lossy_quality", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "_serialize_texture_json", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "state", + "type": "GLTFState" + }, + { + "name": "texture_json", + "type": "Dictionary" + }, + { + "name": "gltf_texture", + "type": "GLTFTexture" + }, + { + "name": "image_format", + "type": "String" + } + ] + }, { "name": "_export_node", "is_const": false, @@ -96935,20 +98074,6 @@ "inherits": "GLTFDocumentExtension", "api_type": "core" }, - { - "name": "GLTFDocumentExtensionPhysics", - "is_refcounted": true, - "is_instantiable": false, - "inherits": "GLTFDocumentExtension", - "api_type": "core" - }, - { - "name": "GLTFDocumentExtensionTextureWebP", - "is_refcounted": true, - "is_instantiable": false, - "inherits": "GLTFDocumentExtension", - "api_type": "core" - }, { "name": "GLTFLight", "is_refcounted": true, @@ -97911,6 +99036,31 @@ } ] }, + { + "name": "get_center_of_mass", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_center_of_mass", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "center_of_mass", + "type": "Vector3" + } + ] + }, { "name": "get_inertia_tensor", "is_const": true, @@ -97962,6 +99112,12 @@ "setter": "set_angular_velocity", "getter": "get_angular_velocity" }, + { + "type": "Vector3", + "name": "center_of_mass", + "setter": "set_center_of_mass", + "getter": "get_center_of_mass" + }, { "type": "Basis", "name": "inertia_tensor", @@ -99058,6 +100214,31 @@ } ] }, + { + "name": "get_copyright", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_copyright", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "copyright", + "type": "String" + } + ] + }, { "name": "get_glb_data", "is_const": false, @@ -99345,6 +100526,31 @@ } ] }, + { + "name": "get_filename", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_filename", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "filename", + "type": "String" + } + ] + }, { "name": "get_root_nodes", "is_const": false, @@ -99763,6 +100969,12 @@ "setter": "set_minor_version", "getter": "get_minor_version" }, + { + "type": "String", + "name": "copyright", + "setter": "set_copyright", + "getter": "get_copyright" + }, { "type": "PackedByteArray", "name": "glb_data", @@ -99823,6 +101035,12 @@ "setter": "set_base_path", "getter": "get_base_path" }, + { + "type": "String", + "name": "filename", + "setter": "set_filename", + "getter": "get_filename" + }, { "type": "PackedInt32Array", "name": "root_nodes", @@ -100797,6 +102015,25 @@ "type": "int", "meta": "int32" } + }, + { + "name": "convert_from_particles", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1078189570, + "arguments": [ + { + "name": "particles", + "type": "Node" + } + ] + } + ], + "signals": [ + { + "name": "finished" } ], "properties": [ @@ -101675,6 +102912,25 @@ "return_value": { "type": "enum::GPUParticles3D.TransformAlign" } + }, + { + "name": "convert_from_particles", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1078189570, + "arguments": [ + { + "name": "particles", + "type": "Node" + } + ] + } + ], + "signals": [ + { + "name": "finished" } ], "properties": [ @@ -103674,6 +104930,23 @@ "inherits": "Object", "api_type": "core", "methods": [ + { + "name": "compute_convex_mesh_points", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1936902142, + "return_value": { + "type": "PackedVector3Array" + }, + "arguments": [ + { + "name": "planes", + "type": "typedarray::Plane" + } + ] + }, { "name": "build_box_planes", "is_const": false, @@ -103841,6 +105114,35 @@ } ] }, + { + "name": "get_triangle_barycentric_coords", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1362048029, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "point", + "type": "Vector3" + }, + { + "name": "a", + "type": "Vector3" + }, + { + "name": "b", + "type": "Vector3" + }, + { + "name": "c", + "type": "Vector3" + } + ] + }, { "name": "ray_intersects_triangle", "is_const": false, @@ -104627,20 +105929,6 @@ } ] }, - { - "name": "GodotPhysicsServer2D", - "is_refcounted": false, - "is_instantiable": false, - "inherits": "PhysicsServer2D", - "api_type": "core" - }, - { - "name": "GodotPhysicsServer3D", - "is_refcounted": false, - "is_instantiable": false, - "inherits": "PhysicsServer3D", - "api_type": "core" - }, { "name": "Gradient", "is_refcounted": true, @@ -105607,7 +106895,7 @@ "hash": 3218959716 }, { - "name": "get_scroll_ofs", + "name": "get_scroll_offset", "is_const": true, "is_vararg": false, "is_static": false, @@ -105618,7 +106906,7 @@ } }, { - "name": "set_scroll_ofs", + "name": "set_scroll_offset", "is_const": false, "is_vararg": false, "is_static": false, @@ -105934,34 +107222,32 @@ } }, { - "name": "set_snap", + "name": "set_show_grid", "is_const": false, "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 1286410249, + "hash": 2586408642, "arguments": [ { - "name": "pixels", - "type": "int", - "meta": "int32" + "name": "enable", + "type": "bool" } ] }, { - "name": "get_snap", + "name": "is_showing_grid", "is_const": true, "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 3905245786, + "hash": 36873697, "return_value": { - "type": "int", - "meta": "int32" + "type": "bool" } }, { - "name": "set_use_snap", + "name": "set_snapping_enabled", "is_const": false, "is_vararg": false, "is_static": false, @@ -105975,7 +107261,7 @@ ] }, { - "name": "is_using_snap", + "name": "is_snapping_enabled", "is_const": true, "is_vararg": false, "is_static": false, @@ -105985,6 +107271,33 @@ "type": "bool" } }, + { + "name": "set_snapping_distance", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "pixels", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_snapping_distance", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, { "name": "set_connection_lines_curvature", "is_const": false, @@ -106192,7 +107505,7 @@ } }, { - "name": "get_zoom_hbox", + "name": "get_menu_hbox", "is_const": false, "is_vararg": false, "is_static": false, @@ -106339,7 +107652,7 @@ ] }, { - "name": "delete_nodes_request", + "name": "close_nodes_request", "arguments": [ { "name": "nodes", @@ -106393,20 +107706,26 @@ { "type": "Vector2", "name": "scroll_offset", - "setter": "set_scroll_ofs", - "getter": "get_scroll_ofs" + "setter": "set_scroll_offset", + "getter": "get_scroll_offset" }, { - "type": "int", - "name": "snap_distance", - "setter": "set_snap", - "getter": "get_snap" + "type": "bool", + "name": "show_grid", + "setter": "set_show_grid", + "getter": "is_showing_grid" }, { "type": "bool", - "name": "use_snap", - "setter": "set_use_snap", - "getter": "is_using_snap" + "name": "snapping_enabled", + "setter": "set_snapping_enabled", + "getter": "is_snapping_enabled" + }, + { + "type": "int", + "name": "snapping_distance", + "setter": "set_snapping_distance", + "getter": "get_snapping_distance" }, { "type": "int", @@ -106489,32 +107808,243 @@ ] }, { - "name": "GraphNode", + "name": "GraphElement", "is_refcounted": false, "is_instantiable": true, "inherits": "Container", "api_type": "core", - "enums": [ + "methods": [ { - "name": "Overlay", - "is_bitfield": false, - "values": [ + "name": "set_resizable", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ { - "name": "OVERLAY_DISABLED", - "value": 0 - }, + "name": "resizable", + "type": "bool" + } + ] + }, + { + "name": "is_resizable", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_draggable", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ { - "name": "OVERLAY_BREAKPOINT", - "value": 1 + "name": "draggable", + "type": "bool" + } + ] + }, + { + "name": "is_draggable", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_selectable", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "selectable", + "type": "bool" + } + ] + }, + { + "name": "is_selectable", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_selected", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "selected", + "type": "bool" + } + ] + }, + { + "name": "is_selected", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_position_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "offset", + "type": "Vector2" + } + ] + }, + { + "name": "get_position_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + } + ], + "signals": [ + { + "name": "position_offset_changed" + }, + { + "name": "node_selected" + }, + { + "name": "node_deselected" + }, + { + "name": "dragged", + "arguments": [ + { + "name": "from", + "type": "Vector2" }, { - "name": "OVERLAY_POSITION", - "value": 2 + "name": "to", + "type": "Vector2" + } + ] + }, + { + "name": "raise_request" + }, + { + "name": "close_request" + }, + { + "name": "resize_request", + "arguments": [ + { + "name": "new_minsize", + "type": "Vector2" } ] } ], + "properties": [ + { + "type": "Vector2", + "name": "position_offset", + "setter": "set_position_offset", + "getter": "get_position_offset" + }, + { + "type": "bool", + "name": "resizable", + "setter": "set_resizable", + "getter": "is_resizable" + }, + { + "type": "bool", + "name": "draggable", + "setter": "set_draggable", + "getter": "is_draggable" + }, + { + "type": "bool", + "name": "selectable", + "setter": "set_selectable", + "getter": "is_selectable" + }, + { + "type": "bool", + "name": "selected", + "setter": "set_selected", + "getter": "is_selected" + } + ] + }, + { + "name": "GraphNode", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "GraphElement", + "api_type": "core", "methods": [ + { + "name": "_draw_port", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "slot_index", + "type": "int", + "meta": "int32" + }, + { + "name": "position", + "type": "Vector2i" + }, + { + "name": "left", + "type": "bool" + }, + { + "name": "color", + "type": "Color" + } + ] + }, { "name": "set_title", "is_const": false, @@ -106541,53 +108071,14 @@ } }, { - "name": "set_text_direction", + "name": "get_titlebar_hbox", "is_const": false, "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 119160795, - "arguments": [ - { - "name": "direction", - "type": "enum::Control.TextDirection" - } - ] - }, - { - "name": "get_text_direction", - "is_const": true, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 797257663, - "return_value": { - "type": "enum::Control.TextDirection" - } - }, - { - "name": "set_language", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 83702148, - "arguments": [ - { - "name": "language", - "type": "String" - } - ] - }, - { - "name": "get_language", - "is_const": true, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 201670096, + "hash": 3590609951, "return_value": { - "type": "String" + "type": "HBoxContainer" } }, { @@ -106670,39 +108161,39 @@ "hash": 3218959716 }, { - "name": "set_slot_enabled_left", - "is_const": false, + "name": "is_slot_enabled_left", + "is_const": true, "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 300928843, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, "arguments": [ { "name": "slot_index", "type": "int", "meta": "int32" - }, - { - "name": "enable", - "type": "bool" } ] }, { - "name": "is_slot_enabled_left", - "is_const": true, + "name": "set_slot_enabled_left", + "is_const": false, "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 1116898809, - "return_value": { - "type": "bool" - }, + "hash": 300928843, "arguments": [ { "name": "slot_index", "type": "int", "meta": "int32" + }, + { + "name": "enable", + "type": "bool" } ] }, @@ -106783,39 +108274,39 @@ ] }, { - "name": "set_slot_enabled_right", - "is_const": false, + "name": "is_slot_enabled_right", + "is_const": true, "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 300928843, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, "arguments": [ { "name": "slot_index", "type": "int", "meta": "int32" - }, - { - "name": "enable", - "type": "bool" } ] }, { - "name": "is_slot_enabled_right", - "is_const": true, + "name": "set_slot_enabled_right", + "is_const": false, "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 1116898809, - "return_value": { - "type": "bool" - }, + "hash": 300928843, "arguments": [ { "name": "slot_index", "type": "int", "meta": "int32" + }, + { + "name": "enable", + "type": "bool" } ] }, @@ -106933,157 +108424,7 @@ ] }, { - "name": "set_position_offset", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 743155724, - "arguments": [ - { - "name": "offset", - "type": "Vector2" - } - ] - }, - { - "name": "get_position_offset", - "is_const": true, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 3341600327, - "return_value": { - "type": "Vector2" - } - }, - { - "name": "set_comment", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 2586408642, - "arguments": [ - { - "name": "comment", - "type": "bool" - } - ] - }, - { - "name": "is_comment", - "is_const": true, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 36873697, - "return_value": { - "type": "bool" - } - }, - { - "name": "set_resizable", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 2586408642, - "arguments": [ - { - "name": "resizable", - "type": "bool" - } - ] - }, - { - "name": "is_resizable", - "is_const": true, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 36873697, - "return_value": { - "type": "bool" - } - }, - { - "name": "set_draggable", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 2586408642, - "arguments": [ - { - "name": "draggable", - "type": "bool" - } - ] - }, - { - "name": "is_draggable", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 2240911060, - "return_value": { - "type": "bool" - } - }, - { - "name": "set_selectable", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 2586408642, - "arguments": [ - { - "name": "selectable", - "type": "bool" - } - ] - }, - { - "name": "is_selectable", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 2240911060, - "return_value": { - "type": "bool" - } - }, - { - "name": "set_selected", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 2586408642, - "arguments": [ - { - "name": "selected", - "type": "bool" - } - ] - }, - { - "name": "is_selected", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 2240911060, - "return_value": { - "type": "bool" - } - }, - { - "name": "get_connection_input_count", + "name": "get_input_port_count", "is_const": false, "is_vararg": false, "is_static": false, @@ -107095,26 +108436,7 @@ } }, { - "name": "get_connection_input_height", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 3744713108, - "return_value": { - "type": "int", - "meta": "int32" - }, - "arguments": [ - { - "name": "port", - "type": "int", - "meta": "int32" - } - ] - }, - { - "name": "get_connection_input_position", + "name": "get_input_port_position", "is_const": false, "is_vararg": false, "is_static": false, @@ -107125,14 +108447,14 @@ }, "arguments": [ { - "name": "port", + "name": "port_idx", "type": "int", "meta": "int32" } ] }, { - "name": "get_connection_input_type", + "name": "get_input_port_type", "is_const": false, "is_vararg": false, "is_static": false, @@ -107144,14 +108466,14 @@ }, "arguments": [ { - "name": "port", + "name": "port_idx", "type": "int", "meta": "int32" } ] }, { - "name": "get_connection_input_color", + "name": "get_input_port_color", "is_const": false, "is_vararg": false, "is_static": false, @@ -107162,14 +108484,14 @@ }, "arguments": [ { - "name": "port", + "name": "port_idx", "type": "int", "meta": "int32" } ] }, { - "name": "get_connection_input_slot", + "name": "get_input_port_slot", "is_const": false, "is_vararg": false, "is_static": false, @@ -107181,14 +108503,14 @@ }, "arguments": [ { - "name": "port", + "name": "port_idx", "type": "int", "meta": "int32" } ] }, { - "name": "get_connection_output_count", + "name": "get_output_port_count", "is_const": false, "is_vararg": false, "is_static": false, @@ -107200,26 +108522,7 @@ } }, { - "name": "get_connection_output_height", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 3744713108, - "return_value": { - "type": "int", - "meta": "int32" - }, - "arguments": [ - { - "name": "port", - "type": "int", - "meta": "int32" - } - ] - }, - { - "name": "get_connection_output_position", + "name": "get_output_port_position", "is_const": false, "is_vararg": false, "is_static": false, @@ -107230,14 +108533,14 @@ }, "arguments": [ { - "name": "port", + "name": "port_idx", "type": "int", "meta": "int32" } ] }, { - "name": "get_connection_output_type", + "name": "get_output_port_type", "is_const": false, "is_vararg": false, "is_static": false, @@ -107249,14 +108552,14 @@ }, "arguments": [ { - "name": "port", + "name": "port_idx", "type": "int", "meta": "int32" } ] }, { - "name": "get_connection_output_color", + "name": "get_output_port_color", "is_const": false, "is_vararg": false, "is_static": false, @@ -107267,14 +108570,14 @@ }, "arguments": [ { - "name": "port", + "name": "port_idx", "type": "int", "meta": "int32" } ] }, { - "name": "get_connection_output_slot", + "name": "get_output_port_slot", "is_const": false, "is_vararg": false, "is_static": false, @@ -107286,109 +108589,22 @@ }, "arguments": [ { - "name": "port", + "name": "port_idx", "type": "int", "meta": "int32" } ] - }, - { - "name": "set_show_close_button", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 2586408642, - "arguments": [ - { - "name": "show", - "type": "bool" - } - ] - }, - { - "name": "is_close_button_visible", - "is_const": true, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 36873697, - "return_value": { - "type": "bool" - } - }, - { - "name": "set_overlay", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 3144190109, - "arguments": [ - { - "name": "overlay", - "type": "enum::GraphNode.Overlay" - } - ] - }, - { - "name": "get_overlay", - "is_const": true, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 2854257040, - "return_value": { - "type": "enum::GraphNode.Overlay" - } } ], "signals": [ - { - "name": "position_offset_changed" - }, - { - "name": "node_selected" - }, - { - "name": "node_deselected" - }, { "name": "slot_updated", "arguments": [ { - "name": "idx", + "name": "slot_index", "type": "int" } ] - }, - { - "name": "dragged", - "arguments": [ - { - "name": "from", - "type": "Vector2" - }, - { - "name": "to", - "type": "Vector2" - } - ] - }, - { - "name": "raise_request" - }, - { - "name": "close_request" - }, - { - "name": "resize_request", - "arguments": [ - { - "name": "new_minsize", - "type": "Vector2" - } - ] } ], "properties": [ @@ -107397,66 +108613,6 @@ "name": "title", "setter": "set_title", "getter": "get_title" - }, - { - "type": "Vector2", - "name": "position_offset", - "setter": "set_position_offset", - "getter": "get_position_offset" - }, - { - "type": "bool", - "name": "show_close", - "setter": "set_show_close_button", - "getter": "is_close_button_visible" - }, - { - "type": "bool", - "name": "resizable", - "setter": "set_resizable", - "getter": "is_resizable" - }, - { - "type": "bool", - "name": "draggable", - "setter": "set_draggable", - "getter": "is_draggable" - }, - { - "type": "bool", - "name": "selectable", - "setter": "set_selectable", - "getter": "is_selectable" - }, - { - "type": "bool", - "name": "selected", - "setter": "set_selected", - "getter": "is_selected" - }, - { - "type": "bool", - "name": "comment", - "setter": "set_comment", - "getter": "is_comment" - }, - { - "type": "int", - "name": "overlay", - "setter": "set_overlay", - "getter": "get_overlay" - }, - { - "type": "int", - "name": "text_direction", - "setter": "set_text_direction", - "getter": "get_text_direction" - }, - { - "type": "String", - "name": "language", - "setter": "set_language", - "getter": "get_language" } ] }, @@ -108204,6 +109360,9 @@ "type": "Vector3" } ] + }, + { + "name": "changed" } ], "properties": [ @@ -110204,13 +111363,6 @@ } ] }, - { - "name": "IPUnix", - "is_refcounted": false, - "is_instantiable": false, - "inherits": "IP", - "api_type": "core" - }, { "name": "Image", "is_refcounted": true, @@ -110614,6 +111766,18 @@ } ] }, + { + "name": "get_mipmap_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, { "name": "get_mipmap_offset", "is_const": true, @@ -111631,6 +112795,69 @@ "type": "PackedByteArray" } ] + }, + { + "name": "load_ktx_from_buffer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 680677267, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "buffer", + "type": "PackedByteArray" + } + ] + }, + { + "name": "load_svg_from_buffer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1822513750, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "buffer", + "type": "PackedByteArray" + }, + { + "name": "scale", + "type": "float", + "meta": "float", + "default_value": "1.0" + } + ] + }, + { + "name": "load_svg_from_string", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1461766635, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "svg_str", + "type": "String" + }, + { + "name": "scale", + "type": "float", + "meta": "float", + "default_value": "1.0" + } + ] } ], "properties": [ @@ -113082,6 +114309,47 @@ } ] }, + { + "name": "get_joy_info", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3485342025, + "return_value": { + "type": "Dictionary" + }, + "arguments": [ + { + "name": "device", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "should_ignore_device", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2522259332, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "vendor_id", + "type": "int", + "meta": "int32" + }, + { + "name": "product_id", + "type": "int", + "meta": "int32" + } + ] + }, { "name": "get_connected_joypads", "is_const": false, @@ -117219,6 +118487,14 @@ "return_value": { "type": "enum::TextServer.OverrunBehavior" } + }, + { + "name": "force_update_list_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 } ], "signals": [ @@ -118001,6 +119277,17 @@ "return_value": { "type": "bool" } + }, + { + "name": "get_rid", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } } ], "properties": [ @@ -118138,6 +119425,17 @@ "return_value": { "type": "bool" } + }, + { + "name": "get_rid", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } } ], "properties": [ @@ -122002,6 +123300,10 @@ { "name": "BAKE_ERROR_USER_ABORTED", "value": 8 + }, + { + "name": "BAKE_ERROR_TEXTURE_SIZE_TOO_SMALL", + "value": 9 } ] }, @@ -122833,6 +124135,31 @@ "is_virtual": false, "hash": 3218959716 }, + { + "name": "set_closed", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "closed", + "type": "bool" + } + ] + }, + { + "name": "is_closed", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, { "name": "set_width", "is_const": false, @@ -123147,6 +124474,12 @@ "setter": "set_points", "getter": "get_points" }, + { + "type": "bool", + "name": "closed", + "setter": "set_closed", + "getter": "is_closed" + }, { "type": "float", "name": "width", @@ -124237,6 +125570,31 @@ "type": "bool" } }, + { + "name": "set_drag_and_drop_selection_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_drag_and_drop_selection_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, { "name": "set_right_icon", "is_const": false, @@ -124439,6 +125797,12 @@ "setter": "set_deselect_on_focus_loss_enabled", "getter": "is_deselect_on_focus_loss_enabled" }, + { + "type": "bool", + "name": "drag_and_drop_selection_enabled", + "setter": "set_drag_and_drop_selection_enabled", + "getter": "is_drag_and_drop_selection_enabled" + }, { "type": "Texture", "name": "right_icon", @@ -129008,20 +130372,6 @@ } ] }, - { - "name": "MovieWriterMJPEG", - "is_refcounted": false, - "is_instantiable": false, - "inherits": "MovieWriter", - "api_type": "core" - }, - { - "name": "MovieWriterPNGWAV", - "is_refcounted": false, - "is_instantiable": false, - "inherits": "MovieWriter", - "api_type": "core" - }, { "name": "MultiMesh", "is_refcounted": true, @@ -134810,6 +136160,14 @@ "type": "Mesh" } ] + }, + { + "name": "clear", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 } ], "properties": [ @@ -136868,6 +138226,14 @@ "type": "float", "meta": "float" } + }, + { + "name": "clear", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 } ], "properties": [ @@ -136954,6 +138320,31 @@ "type": "bool" } }, + { + "name": "set_navigation_map", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "navigation_map", + "type": "RID" + } + ] + }, + { + "name": "get_navigation_map", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + }, { "name": "set_use_edge_connections", "is_const": false, @@ -137306,6 +138697,31 @@ "type": "bool" } }, + { + "name": "set_navigation_map", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "navigation_map", + "type": "RID" + } + ] + }, + { + "name": "get_navigation_map", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + }, { "name": "set_use_edge_connections", "is_const": false, @@ -137921,6 +139337,41 @@ "type": "RID" } }, + { + "name": "region_set_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "region", + "type": "RID" + }, + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "region_get_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4155700596, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "region", + "type": "RID" + } + ] + }, { "name": "region_set_use_edge_connections", "is_const": false, @@ -138304,6 +139755,41 @@ } ] }, + { + "name": "link_set_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "link", + "type": "RID" + }, + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "link_get_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4155700596, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "link", + "type": "RID" + } + ] + }, { "name": "link_set_bidirectional", "is_const": false, @@ -139761,6 +141247,41 @@ "type": "RID" } }, + { + "name": "region_set_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "region", + "type": "RID" + }, + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "region_get_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4155700596, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "region", + "type": "RID" + } + ] + }, { "name": "region_set_use_edge_connections", "is_const": false, @@ -140162,6 +141683,41 @@ } ] }, + { + "name": "link_set_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "link", + "type": "RID" + }, + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "link_get_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4155700596, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "link", + "type": "RID" + } + ] + }, { "name": "link_set_bidirectional", "is_const": false, @@ -141157,6 +142713,29 @@ } ] }, + { + "name": "bake_from_source_geometry_data_async", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3669016597, + "arguments": [ + { + "name": "navigation_mesh", + "type": "NavigationMesh" + }, + { + "name": "source_geometry_data", + "type": "NavigationMeshSourceGeometryData3D" + }, + { + "name": "callback", + "type": "Callable", + "default_value": "Callable()" + } + ] + }, { "name": "free_rid", "is_const": false, @@ -144385,6 +145964,31 @@ "type": "Vector3" } }, + { + "name": "set_global_basis", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1055510324, + "arguments": [ + { + "name": "basis", + "type": "Basis" + } + ] + }, + { + "name": "get_global_basis", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2716978435, + "return_value": { + "type": "Basis" + } + }, { "name": "set_global_rotation", "is_const": false, @@ -145081,6 +146685,12 @@ "setter": "set_global_position", "getter": "get_global_position" }, + { + "type": "Basis", + "name": "global_basis", + "setter": "set_global_basis", + "getter": "get_global_basis" + }, { "type": "Vector3", "name": "global_rotation", @@ -147057,6 +148667,17 @@ } ] }, + { + "name": "is_sandboxed", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, { "name": "request_permission", "is_const": false, @@ -147095,6 +148716,14 @@ "return_value": { "type": "PackedStringArray" } + }, + { + "name": "revoke_granted_permissions", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 } ], "properties": [ @@ -148371,6 +150000,1899 @@ } ] }, + { + "name": "OpenXRAPIExtension", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "get_instance", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "uint64" + } + }, + { + "name": "get_system_id", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "uint64" + } + }, + { + "name": "get_session", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "uint64" + } + }, + { + "name": "transform_from_pose", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3255299855, + "return_value": { + "type": "Transform3D" + }, + "arguments": [ + { + "name": "pose", + "type": "const void*" + } + ] + }, + { + "name": "xr_result", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3886436197, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "result", + "type": "int", + "meta": "uint64" + }, + { + "name": "format", + "type": "String" + }, + { + "name": "args", + "type": "Array" + } + ] + }, + { + "name": "openxr_is_enabled", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 2703660260, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "check_run_in_editor", + "type": "bool" + } + ] + }, + { + "name": "get_instance_proc_addr", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1597066294, + "return_value": { + "type": "int", + "meta": "uint64" + }, + "arguments": [ + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "get_error_string", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 990163283, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "result", + "type": "int", + "meta": "uint64" + } + ] + }, + { + "name": "get_swapchain_format_name", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 990163283, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "swapchain_format", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "is_initialized", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "is_running", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_play_space", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "uint64" + } + }, + { + "name": "get_next_frame_time", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int64" + } + }, + { + "name": "can_render", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + } + ] + }, + { + "name": "OpenXRAction", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "enums": [ + { + "name": "ActionType", + "is_bitfield": false, + "values": [ + { + "name": "OPENXR_ACTION_BOOL", + "value": 0 + }, + { + "name": "OPENXR_ACTION_FLOAT", + "value": 1 + }, + { + "name": "OPENXR_ACTION_VECTOR2", + "value": 2 + }, + { + "name": "OPENXR_ACTION_POSE", + "value": 3 + } + ] + } + ], + "methods": [ + { + "name": "set_localized_name", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "localized_name", + "type": "String" + } + ] + }, + { + "name": "get_localized_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_action_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1675238366, + "arguments": [ + { + "name": "action_type", + "type": "enum::OpenXRAction.ActionType" + } + ] + }, + { + "name": "get_action_type", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3536542431, + "return_value": { + "type": "enum::OpenXRAction.ActionType" + } + }, + { + "name": "set_toplevel_paths", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4015028928, + "arguments": [ + { + "name": "toplevel_paths", + "type": "PackedStringArray" + } + ] + }, + { + "name": "get_toplevel_paths", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1139954409, + "return_value": { + "type": "PackedStringArray" + } + } + ], + "properties": [ + { + "type": "String", + "name": "localized_name", + "setter": "set_localized_name", + "getter": "get_localized_name" + }, + { + "type": "int", + "name": "action_type", + "setter": "set_action_type", + "getter": "get_action_type" + }, + { + "type": "PackedStringArray", + "name": "toplevel_paths", + "setter": "set_toplevel_paths", + "getter": "get_toplevel_paths" + } + ] + }, + { + "name": "OpenXRActionMap", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "set_action_sets", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "action_sets", + "type": "Array" + } + ] + }, + { + "name": "get_action_sets", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "Array" + } + }, + { + "name": "get_action_set_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "find_action_set", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1888809267, + "return_value": { + "type": "OpenXRActionSet" + }, + "arguments": [ + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "get_action_set", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1789580336, + "return_value": { + "type": "OpenXRActionSet" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "add_action_set", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2093310581, + "arguments": [ + { + "name": "action_set", + "type": "OpenXRActionSet" + } + ] + }, + { + "name": "remove_action_set", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2093310581, + "arguments": [ + { + "name": "action_set", + "type": "OpenXRActionSet" + } + ] + }, + { + "name": "set_interaction_profiles", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "interaction_profiles", + "type": "Array" + } + ] + }, + { + "name": "get_interaction_profiles", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "Array" + } + }, + { + "name": "get_interaction_profile_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "find_interaction_profile", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3095875538, + "return_value": { + "type": "OpenXRInteractionProfile" + }, + "arguments": [ + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "get_interaction_profile", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2546151210, + "return_value": { + "type": "OpenXRInteractionProfile" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "add_interaction_profile", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2697953512, + "arguments": [ + { + "name": "interaction_profile", + "type": "OpenXRInteractionProfile" + } + ] + }, + { + "name": "remove_interaction_profile", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2697953512, + "arguments": [ + { + "name": "interaction_profile", + "type": "OpenXRInteractionProfile" + } + ] + }, + { + "name": "create_default_action_sets", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + } + ], + "properties": [ + { + "type": "OpenXRActionSet", + "name": "action_sets", + "setter": "set_action_sets", + "getter": "get_action_sets" + }, + { + "type": "OpenXRInteractionProfile", + "name": "interaction_profiles", + "setter": "set_interaction_profiles", + "getter": "get_interaction_profiles" + } + ] + }, + { + "name": "OpenXRActionSet", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "set_localized_name", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "localized_name", + "type": "String" + } + ] + }, + { + "name": "get_localized_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_priority", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "priority", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_priority", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_action_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_actions", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "actions", + "type": "Array" + } + ] + }, + { + "name": "get_actions", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "Array" + } + }, + { + "name": "add_action", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 349361333, + "arguments": [ + { + "name": "action", + "type": "OpenXRAction" + } + ] + }, + { + "name": "remove_action", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 349361333, + "arguments": [ + { + "name": "action", + "type": "OpenXRAction" + } + ] + } + ], + "properties": [ + { + "type": "String", + "name": "localized_name", + "setter": "set_localized_name", + "getter": "get_localized_name" + }, + { + "type": "int", + "name": "priority", + "setter": "set_priority", + "getter": "get_priority" + }, + { + "type": "OpenXRAction", + "name": "actions", + "setter": "set_actions", + "getter": "get_actions" + } + ] + }, + { + "name": "OpenXRExtensionWrapperExtension", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Object", + "api_type": "core", + "methods": [ + { + "name": "_get_requested_extensions", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Dictionary" + } + }, + { + "name": "_set_system_properties_and_get_next_pointer", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "uint64" + }, + "arguments": [ + { + "name": "next_pointer", + "type": "void*" + } + ] + }, + { + "name": "_set_instance_create_info_and_get_next_pointer", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "uint64" + }, + "arguments": [ + { + "name": "next_pointer", + "type": "void*" + } + ] + }, + { + "name": "_set_session_create_and_get_next_pointer", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "uint64" + }, + "arguments": [ + { + "name": "next_pointer", + "type": "void*" + } + ] + }, + { + "name": "_set_swapchain_create_info_and_get_next_pointer", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "uint64" + }, + "arguments": [ + { + "name": "next_pointer", + "type": "void*" + } + ] + }, + { + "name": "_on_register_metadata", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_on_before_instance_created", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_on_instance_created", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "instance", + "type": "int", + "meta": "uint64" + } + ] + }, + { + "name": "_on_instance_destroyed", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_on_session_created", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "session", + "type": "int", + "meta": "uint64" + } + ] + }, + { + "name": "_on_process", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_on_pre_render", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_on_session_destroyed", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_on_state_idle", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_on_state_ready", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_on_state_synchronized", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_on_state_visible", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_on_state_focused", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_on_state_stopping", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_on_state_loss_pending", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_on_state_exiting", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_on_event_polled", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "event", + "type": "const void*" + } + ] + }, + { + "name": "get_openxr_api", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1637791613, + "return_value": { + "type": "OpenXRAPIExtension" + } + }, + { + "name": "register_extension_wrapper", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + } + ] + }, + { + "name": "OpenXRHand", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node3D", + "api_type": "core", + "enums": [ + { + "name": "Hands", + "is_bitfield": false, + "values": [ + { + "name": "HAND_LEFT", + "value": 0 + }, + { + "name": "HAND_RIGHT", + "value": 1 + }, + { + "name": "HAND_MAX", + "value": 2 + } + ] + }, + { + "name": "MotionRange", + "is_bitfield": false, + "values": [ + { + "name": "MOTION_RANGE_UNOBSTRUCTED", + "value": 0 + }, + { + "name": "MOTION_RANGE_CONFORM_TO_CONTROLLER", + "value": 1 + }, + { + "name": "MOTION_RANGE_MAX", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "set_hand", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1849328560, + "arguments": [ + { + "name": "hand", + "type": "enum::OpenXRHand.Hands" + } + ] + }, + { + "name": "get_hand", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2850644561, + "return_value": { + "type": "enum::OpenXRHand.Hands" + } + }, + { + "name": "set_hand_skeleton", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1348162250, + "arguments": [ + { + "name": "hand_skeleton", + "type": "NodePath" + } + ] + }, + { + "name": "get_hand_skeleton", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4075236667, + "return_value": { + "type": "NodePath" + } + }, + { + "name": "set_motion_range", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3326516003, + "arguments": [ + { + "name": "motion_range", + "type": "enum::OpenXRHand.MotionRange" + } + ] + }, + { + "name": "get_motion_range", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2191822314, + "return_value": { + "type": "enum::OpenXRHand.MotionRange" + } + } + ], + "properties": [ + { + "type": "int", + "name": "hand", + "setter": "set_hand", + "getter": "get_hand" + }, + { + "type": "int", + "name": "motion_range", + "setter": "set_motion_range", + "getter": "get_motion_range" + }, + { + "type": "NodePath", + "name": "hand_skeleton", + "setter": "set_hand_skeleton", + "getter": "get_hand_skeleton" + } + ] + }, + { + "name": "OpenXRIPBinding", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "set_action", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 349361333, + "arguments": [ + { + "name": "action", + "type": "OpenXRAction" + } + ] + }, + { + "name": "get_action", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4072409085, + "return_value": { + "type": "OpenXRAction" + } + }, + { + "name": "get_path_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_paths", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4015028928, + "arguments": [ + { + "name": "paths", + "type": "PackedStringArray" + } + ] + }, + { + "name": "get_paths", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1139954409, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "has_path", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3927539163, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "add_path", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "remove_path", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + } + ], + "properties": [ + { + "type": "OpenXRAction", + "name": "action", + "setter": "set_action", + "getter": "get_action" + }, + { + "type": "PackedStringArray", + "name": "paths", + "setter": "set_paths", + "getter": "get_paths" + } + ] + }, + { + "name": "OpenXRInteractionProfile", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "set_interaction_profile_path", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "interaction_profile_path", + "type": "String" + } + ] + }, + { + "name": "get_interaction_profile_path", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "get_binding_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_binding", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3934429652, + "return_value": { + "type": "OpenXRIPBinding" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_bindings", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "bindings", + "type": "Array" + } + ] + }, + { + "name": "get_bindings", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "Array" + } + } + ], + "properties": [ + { + "type": "String", + "name": "interaction_profile_path", + "setter": "set_interaction_profile_path", + "getter": "get_interaction_profile_path" + }, + { + "type": "OpenXRIPBinding", + "name": "bindings", + "setter": "set_bindings", + "getter": "get_bindings" + } + ] + }, + { + "name": "OpenXRInteractionProfileMetadata", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Object", + "api_type": "core", + "methods": [ + { + "name": "register_profile_rename", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3186203200, + "arguments": [ + { + "name": "old_name", + "type": "String" + }, + { + "name": "new_name", + "type": "String" + } + ] + }, + { + "name": "register_top_level_path", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 254767734, + "arguments": [ + { + "name": "display_name", + "type": "String" + }, + { + "name": "openxr_path", + "type": "String" + }, + { + "name": "openxr_extension_name", + "type": "String" + } + ] + }, + { + "name": "register_interaction_profile", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 254767734, + "arguments": [ + { + "name": "display_name", + "type": "String" + }, + { + "name": "openxr_path", + "type": "String" + }, + { + "name": "openxr_extension_name", + "type": "String" + } + ] + }, + { + "name": "register_io_path", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3443511926, + "arguments": [ + { + "name": "interaction_profile", + "type": "String" + }, + { + "name": "display_name", + "type": "String" + }, + { + "name": "toplevel_path", + "type": "String" + }, + { + "name": "openxr_path", + "type": "String" + }, + { + "name": "openxr_extension_name", + "type": "String" + }, + { + "name": "action_type", + "type": "enum::OpenXRAction.ActionType" + } + ] + } + ] + }, + { + "name": "OpenXRInterface", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "XRInterface", + "api_type": "core", + "enums": [ + { + "name": "Hand", + "is_bitfield": false, + "values": [ + { + "name": "HAND_LEFT", + "value": 0 + }, + { + "name": "HAND_RIGHT", + "value": 1 + }, + { + "name": "HAND_MAX", + "value": 2 + } + ] + }, + { + "name": "HandMotionRange", + "is_bitfield": false, + "values": [ + { + "name": "HAND_MOTION_RANGE_UNOBSTRUCTED", + "value": 0 + }, + { + "name": "HAND_MOTION_RANGE_CONFORM_TO_CONTROLLER", + "value": 1 + }, + { + "name": "HAND_MOTION_RANGE_MAX", + "value": 2 + } + ] + }, + { + "name": "HandJoints", + "is_bitfield": false, + "values": [ + { + "name": "HAND_JOINT_PALM", + "value": 0 + }, + { + "name": "HAND_JOINT_WRIST", + "value": 1 + }, + { + "name": "HAND_JOINT_THUMB_METACARPAL", + "value": 2 + }, + { + "name": "HAND_JOINT_THUMB_PROXIMAL", + "value": 3 + }, + { + "name": "HAND_JOINT_THUMB_DISTAL", + "value": 4 + }, + { + "name": "HAND_JOINT_THUMB_TIP", + "value": 5 + }, + { + "name": "HAND_JOINT_INDEX_METACARPAL", + "value": 6 + }, + { + "name": "HAND_JOINT_INDEX_PROXIMAL", + "value": 7 + }, + { + "name": "HAND_JOINT_INDEX_INTERMEDIATE", + "value": 8 + }, + { + "name": "HAND_JOINT_INDEX_DISTAL", + "value": 9 + }, + { + "name": "HAND_JOINT_INDEX_TIP", + "value": 10 + }, + { + "name": "HAND_JOINT_MIDDLE_METACARPAL", + "value": 11 + }, + { + "name": "HAND_JOINT_MIDDLE_PROXIMAL", + "value": 12 + }, + { + "name": "HAND_JOINT_MIDDLE_INTERMEDIATE", + "value": 13 + }, + { + "name": "HAND_JOINT_MIDDLE_DISTAL", + "value": 14 + }, + { + "name": "HAND_JOINT_MIDDLE_TIP", + "value": 15 + }, + { + "name": "HAND_JOINT_RING_METACARPAL", + "value": 16 + }, + { + "name": "HAND_JOINT_RING_PROXIMAL", + "value": 17 + }, + { + "name": "HAND_JOINT_RING_INTERMEDIATE", + "value": 18 + }, + { + "name": "HAND_JOINT_RING_DISTAL", + "value": 19 + }, + { + "name": "HAND_JOINT_RING_TIP", + "value": 20 + }, + { + "name": "HAND_JOINT_LITTLE_METACARPAL", + "value": 21 + }, + { + "name": "HAND_JOINT_LITTLE_PROXIMAL", + "value": 22 + }, + { + "name": "HAND_JOINT_LITTLE_INTERMEDIATE", + "value": 23 + }, + { + "name": "HAND_JOINT_LITTLE_DISTAL", + "value": 24 + }, + { + "name": "HAND_JOINT_LITTLE_TIP", + "value": 25 + }, + { + "name": "HAND_JOINT_MAX", + "value": 26 + } + ] + } + ], + "methods": [ + { + "name": "get_display_refresh_rate", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_display_refresh_rate", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "refresh_rate", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_render_target_size_multiplier", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "set_render_target_size_multiplier", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "multiplier", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "is_action_set_active", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3927539163, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "set_action_set_active", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2678287736, + "arguments": [ + { + "name": "name", + "type": "String" + }, + { + "name": "active", + "type": "bool" + } + ] + }, + { + "name": "get_action_sets", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "Array" + } + }, + { + "name": "get_available_display_refresh_rates", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "Array" + } + }, + { + "name": "set_motion_range", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 855158159, + "arguments": [ + { + "name": "hand", + "type": "enum::OpenXRInterface.Hand" + }, + { + "name": "motion_range", + "type": "enum::OpenXRInterface.HandMotionRange" + } + ] + }, + { + "name": "get_motion_range", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3955838114, + "return_value": { + "type": "enum::OpenXRInterface.HandMotionRange" + }, + "arguments": [ + { + "name": "hand", + "type": "enum::OpenXRInterface.Hand" + } + ] + }, + { + "name": "get_hand_joint_rotation", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1974618321, + "return_value": { + "type": "Quaternion" + }, + "arguments": [ + { + "name": "hand", + "type": "enum::OpenXRInterface.Hand" + }, + { + "name": "joint", + "type": "enum::OpenXRInterface.HandJoints" + } + ] + }, + { + "name": "get_hand_joint_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3529194242, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "hand", + "type": "enum::OpenXRInterface.Hand" + }, + { + "name": "joint", + "type": "enum::OpenXRInterface.HandJoints" + } + ] + }, + { + "name": "get_hand_joint_radius", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 901522724, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "hand", + "type": "enum::OpenXRInterface.Hand" + }, + { + "name": "joint", + "type": "enum::OpenXRInterface.HandJoints" + } + ] + }, + { + "name": "get_hand_joint_linear_velocity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3529194242, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "hand", + "type": "enum::OpenXRInterface.Hand" + }, + { + "name": "joint", + "type": "enum::OpenXRInterface.HandJoints" + } + ] + }, + { + "name": "get_hand_joint_angular_velocity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3529194242, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "hand", + "type": "enum::OpenXRInterface.Hand" + }, + { + "name": "joint", + "type": "enum::OpenXRInterface.HandJoints" + } + ] + } + ], + "signals": [ + { + "name": "session_begun" + }, + { + "name": "session_stopping" + }, + { + "name": "session_focussed" + }, + { + "name": "session_visible" + }, + { + "name": "pose_recentered" + } + ], + "properties": [ + { + "type": "float", + "name": "display_refresh_rate", + "setter": "set_display_refresh_rate", + "getter": "get_display_refresh_rate" + }, + { + "type": "float", + "name": "render_target_size_multiplier", + "setter": "set_render_target_size_multiplier", + "getter": "get_render_target_size_multiplier" + } + ] + }, { "name": "OptimizedTranslation", "is_refcounted": true, @@ -148919,6 +152441,20 @@ "return_value": { "type": "bool" } + }, + { + "name": "set_disable_shortcuts", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "disabled", + "type": "bool" + } + ] } ], "signals": [ @@ -170794,8 +174330,8 @@ "meta": "int32" }, { - "name": "vertices", - "type": "const void*" + "name": "vertex", + "type": "Vector3" } ] }, @@ -170812,8 +174348,8 @@ "meta": "int32" }, { - "name": "normals", - "type": "const void*" + "name": "normal", + "type": "Vector3" } ] }, @@ -170829,6 +174365,58 @@ "type": "AABB" } ] + }, + { + "name": "set_vertex", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1530502735, + "arguments": [ + { + "name": "vertex_id", + "type": "int", + "meta": "int32" + }, + { + "name": "vertex", + "type": "Vector3" + } + ] + }, + { + "name": "set_normal", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1530502735, + "arguments": [ + { + "name": "vertex_id", + "type": "int", + "meta": "int32" + }, + { + "name": "normal", + "type": "Vector3" + } + ] + }, + { + "name": "set_aabb", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 259215842, + "arguments": [ + { + "name": "aabb", + "type": "AABB" + } + ] } ] }, @@ -173764,6 +177352,28 @@ "inherits": "Popup", "api_type": "core", "methods": [ + { + "name": "activate_item_by_event", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3716412023, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "event", + "type": "InputEvent" + }, + { + "name": "for_global_only", + "type": "bool", + "default_value": "false" + } + ] + }, { "name": "add_item", "is_const": false, @@ -173968,7 +177578,10 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 2168272394, + "hash": 2482211467, + "hash_compatibility": [ + 2168272394 + ], "arguments": [ { "name": "shortcut", @@ -173984,6 +177597,11 @@ "name": "global", "type": "bool", "default_value": "false" + }, + { + "name": "allow_echo", + "type": "bool", + "default_value": "false" } ] }, @@ -173993,7 +177611,10 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 68101841, + "hash": 3060251822, + "hash_compatibility": [ + 68101841 + ], "arguments": [ { "name": "texture", @@ -174013,6 +177634,11 @@ "name": "global", "type": "bool", "default_value": "false" + }, + { + "name": "allow_echo", + "type": "bool", + "default_value": "false" } ] }, @@ -176638,6 +180264,11 @@ } ] } + ], + "signals": [ + { + "name": "settings_changed" + } ] }, { @@ -181608,6 +185239,18 @@ "type": "Vector3" } }, + { + "name": "get_collision_face_index", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, { "name": "add_exception_rid", "is_const": false, @@ -181836,6 +185479,31 @@ "type": "bool" } }, + { + "name": "set_hit_back_faces", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_hit_back_faces_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, { "name": "set_debug_shape_custom_color", "is_const": false, @@ -181920,6 +185588,12 @@ "setter": "set_hit_from_inside", "getter": "is_hit_from_inside_enabled" }, + { + "type": "bool", + "name": "hit_back_faces", + "setter": "set_hit_back_faces", + "getter": "is_hit_back_faces_enabled" + }, { "type": "bool", "name": "collide_with_areas", @@ -183100,176 +186774,957 @@ ] }, { - "name": "RemoteTransform3D", - "is_refcounted": false, + "name": "RemoteTransform3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node3D", + "api_type": "core", + "methods": [ + { + "name": "set_remote_node", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1348162250, + "arguments": [ + { + "name": "path", + "type": "NodePath" + } + ] + }, + { + "name": "get_remote_node", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4075236667, + "return_value": { + "type": "NodePath" + } + }, + { + "name": "force_update_cache", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_use_global_coordinates", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "use_global_coordinates", + "type": "bool" + } + ] + }, + { + "name": "get_use_global_coordinates", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_update_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "update_remote_position", + "type": "bool" + } + ] + }, + { + "name": "get_update_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_update_rotation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "update_remote_rotation", + "type": "bool" + } + ] + }, + { + "name": "get_update_rotation", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_update_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "update_remote_scale", + "type": "bool" + } + ] + }, + { + "name": "get_update_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "NodePath", + "name": "remote_path", + "setter": "set_remote_node", + "getter": "get_remote_node" + }, + { + "type": "bool", + "name": "use_global_coordinates", + "setter": "set_use_global_coordinates", + "getter": "get_use_global_coordinates" + }, + { + "type": "bool", + "name": "update_position", + "setter": "set_update_position", + "getter": "get_update_position" + }, + { + "type": "bool", + "name": "update_rotation", + "setter": "set_update_rotation", + "getter": "get_update_rotation" + }, + { + "type": "bool", + "name": "update_scale", + "setter": "set_update_scale", + "getter": "get_update_scale" + } + ] + }, + { + "name": "RenderSceneBuffers", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "configure", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3072623270, + "arguments": [ + { + "name": "config", + "type": "RenderSceneBuffersConfiguration" + } + ] + } + ] + }, + { + "name": "RenderSceneBuffersConfiguration", + "is_refcounted": true, "is_instantiable": true, - "inherits": "Node3D", + "inherits": "RefCounted", "api_type": "core", "methods": [ { - "name": "set_remote_node", + "name": "get_render_target", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + }, + { + "name": "set_render_target", "is_const": false, "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 1348162250, + "hash": 2722037293, "arguments": [ { - "name": "path", - "type": "NodePath" + "name": "render_target", + "type": "RID" } ] }, { - "name": "get_remote_node", + "name": "get_internal_size", "is_const": true, "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 4075236667, + "hash": 3690982128, "return_value": { - "type": "NodePath" + "type": "Vector2i" } }, { - "name": "force_update_cache", + "name": "set_internal_size", "is_const": false, "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 3218959716 + "hash": 1130785943, + "arguments": [ + { + "name": "internal_size", + "type": "Vector2i" + } + ] }, { - "name": "set_use_global_coordinates", + "name": "get_target_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3690982128, + "return_value": { + "type": "Vector2i" + } + }, + { + "name": "set_target_size", "is_const": false, "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 2586408642, + "hash": 1130785943, "arguments": [ { - "name": "use_global_coordinates", - "type": "bool" + "name": "target_size", + "type": "Vector2i" } ] }, { - "name": "get_use_global_coordinates", + "name": "get_view_count", "is_const": true, "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 36873697, + "hash": 3905245786, "return_value": { - "type": "bool" + "type": "int", + "meta": "uint32" } }, { - "name": "set_update_position", + "name": "set_view_count", "is_const": false, "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 2586408642, + "hash": 1286410249, "arguments": [ { - "name": "update_remote_position", - "type": "bool" + "name": "view_count", + "type": "int", + "meta": "uint32" } ] }, { - "name": "get_update_position", + "name": "get_scaling_3d_mode", "is_const": true, "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 36873697, + "hash": 976778074, "return_value": { - "type": "bool" + "type": "enum::RenderingServer.ViewportScaling3DMode" } }, { - "name": "set_update_rotation", + "name": "set_scaling_3d_mode", "is_const": false, "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 2586408642, + "hash": 447477857, "arguments": [ { - "name": "update_remote_rotation", - "type": "bool" + "name": "scaling_3d_mode", + "type": "enum::RenderingServer.ViewportScaling3DMode" } ] }, { - "name": "get_update_rotation", + "name": "get_msaa_3d", "is_const": true, "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 36873697, + "hash": 3109158617, "return_value": { - "type": "bool" + "type": "enum::RenderingServer.ViewportMSAA" } }, { - "name": "set_update_scale", + "name": "set_msaa_3d", "is_const": false, "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 2586408642, + "hash": 3952630748, "arguments": [ { - "name": "update_remote_scale", - "type": "bool" + "name": "msaa_3d", + "type": "enum::RenderingServer.ViewportMSAA" } ] }, { - "name": "get_update_scale", + "name": "get_screen_space_aa", "is_const": true, "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 36873697, + "hash": 641513172, "return_value": { - "type": "bool" + "type": "enum::RenderingServer.ViewportScreenSpaceAA" + } + }, + { + "name": "set_screen_space_aa", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 139543108, + "arguments": [ + { + "name": "screen_space_aa", + "type": "enum::RenderingServer.ViewportScreenSpaceAA" + } + ] + }, + { + "name": "get_fsr_sharpness", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" } + }, + { + "name": "set_fsr_sharpness", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "fsr_sharpness", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_texture_mipmap_bias", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_texture_mipmap_bias", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "texture_mipmap_bias", + "type": "float", + "meta": "float" + } + ] } ], "properties": [ { - "type": "NodePath", - "name": "remote_path", - "setter": "set_remote_node", - "getter": "get_remote_node" + "type": "RID", + "name": "render_target", + "setter": "set_render_target", + "getter": "get_render_target" }, { - "type": "bool", - "name": "use_global_coordinates", - "setter": "set_use_global_coordinates", - "getter": "get_use_global_coordinates" + "type": "Vector2i", + "name": "internal_size", + "setter": "set_internal_size", + "getter": "get_internal_size" }, { - "type": "bool", - "name": "update_position", - "setter": "set_update_position", - "getter": "get_update_position" + "type": "Vector2i", + "name": "target_size", + "setter": "set_target_size", + "getter": "get_target_size" + }, + { + "type": "int", + "name": "view_count", + "setter": "set_view_count", + "getter": "get_view_count" + }, + { + "type": "int", + "name": "scaling_3d_mode", + "setter": "set_scaling_3d_mode", + "getter": "get_scaling_3d_mode" + }, + { + "type": "int", + "name": "msaa_3d", + "setter": "set_msaa_3d", + "getter": "get_msaa_3d" + }, + { + "type": "int", + "name": "screen_space_aa", + "setter": "set_screen_space_aa", + "getter": "get_screen_space_aa" }, { "type": "bool", - "name": "update_rotation", - "setter": "set_update_rotation", - "getter": "get_update_rotation" + "name": "fsr_sharpness", + "setter": "set_fsr_sharpness", + "getter": "get_fsr_sharpness" }, { "type": "bool", - "name": "update_scale", - "setter": "set_update_scale", - "getter": "get_update_scale" + "name": "texture_mipmap_bias", + "setter": "set_texture_mipmap_bias", + "getter": "get_texture_mipmap_bias" + } + ] + }, + { + "name": "RenderSceneBuffersExtension", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RenderSceneBuffers", + "api_type": "core", + "methods": [ + { + "name": "_configure", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "config", + "type": "RenderSceneBuffersConfiguration" + } + ] + }, + { + "name": "_set_fsr_sharpness", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "fsr_sharpness", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "_set_texture_mipmap_bias", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "texture_mipmap_bias", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "_set_use_debanding", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "use_debanding", + "type": "bool" + } + ] + } + ] + }, + { + "name": "RenderSceneBuffersRD", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "RenderSceneBuffers", + "api_type": "core", + "methods": [ + { + "name": "has_texture", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 471820014, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "context", + "type": "StringName" + }, + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "create_texture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3559915770, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "context", + "type": "StringName" + }, + { + "name": "name", + "type": "StringName" + }, + { + "name": "data_format", + "type": "enum::RenderingDevice.DataFormat" + }, + { + "name": "usage_bits", + "type": "int", + "meta": "uint32" + }, + { + "name": "texture_samples", + "type": "enum::RenderingDevice.TextureSamples" + }, + { + "name": "size", + "type": "Vector2i" + }, + { + "name": "layers", + "type": "int", + "meta": "uint32" + }, + { + "name": "mipmaps", + "type": "int", + "meta": "uint32" + }, + { + "name": "unique", + "type": "bool" + } + ] + }, + { + "name": "create_texture_from_format", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3344669382, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "context", + "type": "StringName" + }, + { + "name": "name", + "type": "StringName" + }, + { + "name": "format", + "type": "RDTextureFormat" + }, + { + "name": "view", + "type": "RDTextureView" + }, + { + "name": "unique", + "type": "bool" + } + ] + }, + { + "name": "create_texture_view", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 283055834, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "context", + "type": "StringName" + }, + { + "name": "name", + "type": "StringName" + }, + { + "name": "view_name", + "type": "StringName" + }, + { + "name": "view", + "type": "RDTextureView" + } + ] + }, + { + "name": "get_texture", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 750006389, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "context", + "type": "StringName" + }, + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "get_texture_format", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 371461758, + "return_value": { + "type": "RDTextureFormat" + }, + "arguments": [ + { + "name": "context", + "type": "StringName" + }, + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "get_texture_slice", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 588440706, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "context", + "type": "StringName" + }, + { + "name": "name", + "type": "StringName" + }, + { + "name": "layer", + "type": "int", + "meta": "uint32" + }, + { + "name": "mipmap", + "type": "int", + "meta": "uint32" + }, + { + "name": "layers", + "type": "int", + "meta": "uint32" + }, + { + "name": "mipmaps", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_texture_slice_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2617625368, + "return_value": { + "type": "Vector2i" + }, + "arguments": [ + { + "name": "context", + "type": "StringName" + }, + { + "name": "name", + "type": "StringName" + }, + { + "name": "mipmap", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "clear_context", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "context", + "type": "StringName" + } + ] + }, + { + "name": "get_color_texture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "get_color_layer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 937000113, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "layer", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_depth_texture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "get_depth_layer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 937000113, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "layer", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_velocity_texture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "get_velocity_layer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 937000113, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "layer", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_render_target", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + }, + { + "name": "get_view_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "get_internal_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3690982128, + "return_value": { + "type": "Vector2i" + } + }, + { + "name": "get_use_taa", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } } ] }, @@ -184265,9 +188720,13 @@ "is_bitfield": true, "values": [ { - "name": "BARRIER_MASK_RASTER", + "name": "BARRIER_MASK_VERTEX", "value": 1 }, + { + "name": "BARRIER_MASK_FRAGMENT", + "value": 8 + }, { "name": "BARRIER_MASK_COMPUTE", "value": 2 @@ -184276,13 +188735,17 @@ "name": "BARRIER_MASK_TRANSFER", "value": 4 }, + { + "name": "BARRIER_MASK_RASTER", + "value": 9 + }, { "name": "BARRIER_MASK_ALL_BARRIERS", - "value": 7 + "value": 32767 }, { "name": "BARRIER_MASK_NO_BARRIER", - "value": 8 + "value": 32768 } ] }, @@ -185452,7 +189915,7 @@ { "name": "post_barrier", "type": "bitfield::RenderingDevice.BarrierMask", - "default_value": "7" + "default_value": "32767" } ] }, @@ -185587,7 +190050,7 @@ { "name": "post_barrier", "type": "bitfield::RenderingDevice.BarrierMask", - "default_value": "7" + "default_value": "32767" } ] }, @@ -185633,7 +190096,7 @@ { "name": "post_barrier", "type": "bitfield::RenderingDevice.BarrierMask", - "default_value": "7" + "default_value": "32767" } ] }, @@ -185659,7 +190122,24 @@ { "name": "post_barrier", "type": "bitfield::RenderingDevice.BarrierMask", - "default_value": "7" + "default_value": "32767" + } + ] + }, + { + "name": "texture_get_format", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1374471690, + "return_value": { + "type": "RDTextureFormat" + }, + "arguments": [ + { + "name": "texture", + "type": "RID" } ] }, @@ -186148,7 +190628,10 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 3049171473, + "hash": 2078349841, + "hash_compatibility": [ + 3049171473 + ], "return_value": { "type": "RID" }, @@ -186156,9 +190639,25 @@ { "name": "binary_data", "type": "PackedByteArray" + }, + { + "name": "placeholder_rid", + "type": "RID", + "default_value": "RID()" } ] }, + { + "name": "shader_create_placeholder", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, { "name": "shader_get_vertex_input_attribute_mask", "is_const": false, @@ -186330,7 +190829,7 @@ { "name": "post_barrier", "type": "bitfield::RenderingDevice.BarrierMask", - "default_value": "7" + "default_value": "32767" } ] }, @@ -186362,7 +190861,7 @@ { "name": "post_barrier", "type": "bitfield::RenderingDevice.BarrierMask", - "default_value": "7" + "default_value": "32767" } ] }, @@ -186942,12 +191441,12 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 422991495, + "hash": 3920951950, "arguments": [ { "name": "post_barrier", "type": "bitfield::RenderingDevice.BarrierMask", - "default_value": "7" + "default_value": "32767" } ] }, @@ -187088,12 +191587,12 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 422991495, + "hash": 3920951950, "arguments": [ { "name": "post_barrier", "type": "bitfield::RenderingDevice.BarrierMask", - "default_value": "7" + "default_value": "32767" } ] }, @@ -187257,17 +191756,17 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 266666049, + "hash": 3718155691, "arguments": [ { "name": "from", "type": "bitfield::RenderingDevice.BarrierMask", - "default_value": "7" + "default_value": "32767" }, { "name": "to", "type": "bitfield::RenderingDevice.BarrierMask", - "default_value": "7" + "default_value": "32767" } ] }, @@ -189961,6 +194460,23 @@ } ] }, + { + "name": "texture_get_format", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1932918979, + "return_value": { + "type": "enum::Image.Format" + }, + "arguments": [ + { + "name": "texture", + "type": "RID" + } + ] + }, { "name": "texture_set_force_redraw_if_visible", "is_const": false, @@ -189979,6 +194495,28 @@ } ] }, + { + "name": "texture_rd_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3291180269, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "rd_texture", + "type": "RID" + }, + { + "name": "layer_type", + "type": "enum::RenderingServer.TextureLayeredType", + "default_value": "0" + } + ] + }, { "name": "texture_get_rd_texture", "is_const": true, @@ -194514,6 +199052,24 @@ } ] }, + { + "name": "viewport_set_use_hdr_2d", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "viewport", + "type": "RID" + }, + { + "name": "enabled", + "type": "bool" + } + ] + }, { "name": "viewport_set_screen_space_aa", "is_const": false, @@ -198864,6 +203420,20 @@ "return_value": { "type": "RenderingDevice" } + }, + { + "name": "call_on_render_thread", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1611583062, + "arguments": [ + { + "name": "callable", + "type": "Callable" + } + ] } ], "signals": [ @@ -199065,13 +203635,6 @@ } ] }, - { - "name": "ResourceFormatImporterSaver", - "is_refcounted": true, - "is_instantiable": false, - "inherits": "ResourceFormatSaver", - "api_type": "core" - }, { "name": "ResourceFormatLoader", "is_refcounted": true, @@ -199427,6 +203990,147 @@ } ] }, + { + "name": "ResourceImporterBMFont", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "ResourceImporter", + "api_type": "editor" + }, + { + "name": "ResourceImporterBitMap", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "ResourceImporter", + "api_type": "editor" + }, + { + "name": "ResourceImporterCSVTranslation", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "ResourceImporter", + "api_type": "editor" + }, + { + "name": "ResourceImporterDynamicFont", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "ResourceImporter", + "api_type": "editor" + }, + { + "name": "ResourceImporterImage", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "ResourceImporter", + "api_type": "editor" + }, + { + "name": "ResourceImporterImageFont", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "ResourceImporter", + "api_type": "editor" + }, + { + "name": "ResourceImporterLayeredTexture", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "ResourceImporter", + "api_type": "editor" + }, + { + "name": "ResourceImporterMP3", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "ResourceImporter", + "api_type": "core" + }, + { + "name": "ResourceImporterOBJ", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "ResourceImporter", + "api_type": "editor" + }, + { + "name": "ResourceImporterOggVorbis", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "ResourceImporter", + "api_type": "core", + "methods": [ + { + "name": "load_from_buffer", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 354904730, + "return_value": { + "type": "AudioStreamOggVorbis" + }, + "arguments": [ + { + "name": "buffer", + "type": "PackedByteArray" + } + ] + }, + { + "name": "load_from_file", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 797568536, + "return_value": { + "type": "AudioStreamOggVorbis" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + } + ] + }, + { + "name": "ResourceImporterScene", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "ResourceImporter", + "api_type": "editor" + }, + { + "name": "ResourceImporterShaderFile", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "ResourceImporter", + "api_type": "editor" + }, + { + "name": "ResourceImporterTexture", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "ResourceImporter", + "api_type": "editor" + }, + { + "name": "ResourceImporterTextureAtlas", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "ResourceImporter", + "api_type": "editor" + }, + { + "name": "ResourceImporterWAV", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "ResourceImporter", + "api_type": "editor" + }, { "name": "ResourceLoader", "is_refcounted": false, @@ -200511,7 +205215,10 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 3014009009, + "hash": 814287596, + "hash_compatibility": [ + 3014009009 + ], "arguments": [ { "name": "font", @@ -200520,7 +205227,8 @@ { "name": "font_size", "type": "int", - "meta": "int32" + "meta": "int32", + "default_value": "0" } ] }, @@ -200732,6 +205440,20 @@ } ] }, + { + "name": "push_language", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "language", + "type": "String" + } + ] + }, { "name": "push_underline", "is_const": false, @@ -200824,7 +205546,10 @@ "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 4258957458, + "hash": 4132157579, + "hash_compatibility": [ + 4258957458 + ], "arguments": [ { "name": "column", @@ -200838,7 +205563,8 @@ { "name": "ratio", "type": "int", - "meta": "int32" + "meta": "int32", + "default_value": "1" } ] }, @@ -200960,6 +205686,22 @@ } ] }, + { + "name": "push_context", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "pop_context", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, { "name": "pop", "is_const": false, @@ -200968,6 +205710,14 @@ "is_virtual": false, "hash": 3218959716 }, + { + "name": "pop_all", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, { "name": "clear", "is_const": false, @@ -201402,6 +206152,31 @@ "type": "bool" } }, + { + "name": "set_drag_and_drop_selection_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_drag_and_drop_selection_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, { "name": "get_selection_from", "is_const": true, @@ -202042,6 +206817,12 @@ "setter": "set_deselect_on_focus_loss_enabled", "getter": "is_deselect_on_focus_loss_enabled" }, + { + "type": "bool", + "name": "drag_and_drop_selection_enabled", + "setter": "set_drag_and_drop_selection_enabled", + "getter": "is_drag_and_drop_selection_enabled" + }, { "type": "int", "name": "visible_characters", @@ -203014,24 +207795,6 @@ "setter": "set_mass", "getter": "get_mass" }, - { - "type": "float", - "name": "inertia", - "setter": "set_inertia", - "getter": "get_inertia" - }, - { - "type": "int", - "name": "center_of_mass_mode", - "setter": "set_center_of_mass_mode", - "getter": "get_center_of_mass_mode" - }, - { - "type": "Vector2", - "name": "center_of_mass", - "setter": "set_center_of_mass", - "getter": "get_center_of_mass" - }, { "type": "PhysicsMaterial", "name": "physics_material_override", @@ -203044,29 +207807,23 @@ "setter": "set_gravity_scale", "getter": "get_gravity_scale" }, - { - "type": "bool", - "name": "custom_integrator", - "setter": "set_use_custom_integrator", - "getter": "is_using_custom_integrator" - }, { "type": "int", - "name": "continuous_cd", - "setter": "set_continuous_collision_detection_mode", - "getter": "get_continuous_collision_detection_mode" + "name": "center_of_mass_mode", + "setter": "set_center_of_mass_mode", + "getter": "get_center_of_mass_mode" }, { - "type": "int", - "name": "max_contacts_reported", - "setter": "set_max_contacts_reported", - "getter": "get_max_contacts_reported" + "type": "Vector2", + "name": "center_of_mass", + "setter": "set_center_of_mass", + "getter": "get_center_of_mass" }, { - "type": "bool", - "name": "contact_monitor", - "setter": "set_contact_monitor", - "getter": "is_contact_monitor_enabled" + "type": "float", + "name": "inertia", + "setter": "set_inertia", + "getter": "get_inertia" }, { "type": "bool", @@ -203098,6 +207855,30 @@ "setter": "set_freeze_mode", "getter": "get_freeze_mode" }, + { + "type": "bool", + "name": "custom_integrator", + "setter": "set_use_custom_integrator", + "getter": "is_using_custom_integrator" + }, + { + "type": "int", + "name": "continuous_cd", + "setter": "set_continuous_collision_detection_mode", + "getter": "get_continuous_collision_detection_mode" + }, + { + "type": "int", + "name": "max_contacts_reported", + "setter": "set_max_contacts_reported", + "getter": "get_max_contacts_reported" + }, + { + "type": "bool", + "name": "contact_monitor", + "setter": "set_contact_monitor", + "getter": "is_contact_monitor_enabled" + }, { "type": "Vector2", "name": "linear_velocity", @@ -204059,24 +208840,6 @@ "setter": "set_mass", "getter": "get_mass" }, - { - "type": "Vector3", - "name": "inertia", - "setter": "set_inertia", - "getter": "get_inertia" - }, - { - "type": "int", - "name": "center_of_mass_mode", - "setter": "set_center_of_mass_mode", - "getter": "get_center_of_mass_mode" - }, - { - "type": "Vector3", - "name": "center_of_mass", - "setter": "set_center_of_mass", - "getter": "get_center_of_mass" - }, { "type": "PhysicsMaterial", "name": "physics_material_override", @@ -204090,28 +208853,22 @@ "getter": "get_gravity_scale" }, { - "type": "bool", - "name": "custom_integrator", - "setter": "set_use_custom_integrator", - "getter": "is_using_custom_integrator" - }, - { - "type": "bool", - "name": "continuous_cd", - "setter": "set_use_continuous_collision_detection", - "getter": "is_using_continuous_collision_detection" + "type": "int", + "name": "center_of_mass_mode", + "setter": "set_center_of_mass_mode", + "getter": "get_center_of_mass_mode" }, { - "type": "int", - "name": "max_contacts_reported", - "setter": "set_max_contacts_reported", - "getter": "get_max_contacts_reported" + "type": "Vector3", + "name": "center_of_mass", + "setter": "set_center_of_mass", + "getter": "get_center_of_mass" }, { - "type": "bool", - "name": "contact_monitor", - "setter": "set_contact_monitor", - "getter": "is_contact_monitor_enabled" + "type": "Vector3", + "name": "inertia", + "setter": "set_inertia", + "getter": "get_inertia" }, { "type": "bool", @@ -204143,6 +208900,30 @@ "setter": "set_freeze_mode", "getter": "get_freeze_mode" }, + { + "type": "bool", + "name": "custom_integrator", + "setter": "set_use_custom_integrator", + "getter": "is_using_custom_integrator" + }, + { + "type": "bool", + "name": "continuous_cd", + "setter": "set_use_continuous_collision_detection", + "getter": "is_using_continuous_collision_detection" + }, + { + "type": "int", + "name": "max_contacts_reported", + "setter": "set_max_contacts_reported", + "getter": "get_max_contacts_reported" + }, + { + "type": "bool", + "name": "contact_monitor", + "setter": "set_contact_monitor", + "getter": "is_contact_monitor_enabled" + }, { "type": "Vector3", "name": "linear_velocity", @@ -204775,6 +209556,26 @@ "is_instantiable": true, "inherits": "Resource", "api_type": "core", + "enums": [ + { + "name": "ReplicationMode", + "is_bitfield": false, + "values": [ + { + "name": "REPLICATION_MODE_NEVER", + "value": 0 + }, + { + "name": "REPLICATION_MODE_ALWAYS", + "value": 1 + }, + { + "name": "REPLICATION_MODE_ON_CHANGE", + "value": 2 + } + ] + } + ], "methods": [ { "name": "get_properties", @@ -204891,6 +209692,41 @@ } ] }, + { + "name": "property_get_replication_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2870606336, + "return_value": { + "type": "enum::SceneReplicationConfig.ReplicationMode" + }, + "arguments": [ + { + "name": "path", + "type": "NodePath" + } + ] + }, + { + "name": "property_set_replication_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3200083865, + "arguments": [ + { + "name": "path", + "type": "NodePath" + }, + { + "name": "mode", + "type": "enum::SceneReplicationConfig.ReplicationMode" + } + ] + }, { "name": "property_get_sync", "is_const": false, @@ -206884,6 +211720,16 @@ "type": "typedarray::Dictionary" } }, + { + "name": "_get_class_icon_path", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + } + }, { "name": "_has_method", "is_const": true, @@ -222401,12 +227247,6 @@ "name": "oversampling", "setter": "set_oversampling", "getter": "get_oversampling" - }, - { - "type": "typedarray::24/17:Font", - "name": "fallbacks", - "setter": "set_fallbacks", - "getter": "get_fallbacks" } ] }, @@ -231610,6 +236450,51 @@ } ] }, + { + "name": "font_set_spacing", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1307259930, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "spacing", + "type": "enum::TextServer.SpacingType" + }, + { + "name": "value", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "font_get_spacing", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1213653558, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "spacing", + "type": "enum::TextServer.SpacingType" + } + ] + }, { "name": "font_set_transform", "is_const": false, @@ -234476,6 +239361,92 @@ } ] }, + { + "name": "shaped_text_get_character_breaks", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 788230395, + "return_value": { + "type": "PackedInt32Array" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + } + ] + }, + { + "name": "shaped_text_next_character_pos", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1120910005, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "pos", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "shaped_text_prev_character_pos", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1120910005, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "pos", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "shaped_text_closest_character_pos", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1120910005, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "pos", + "type": "int", + "meta": "int64" + } + ] + }, { "name": "shaped_text_draw", "is_const": true, @@ -234677,6 +239648,28 @@ } ] }, + { + "name": "string_get_character_breaks", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1586579831, + "return_value": { + "type": "PackedInt32Array" + }, + "arguments": [ + { + "name": "string", + "type": "String" + }, + { + "name": "language", + "type": "String", + "default_value": "\"\"" + } + ] + }, { "name": "is_confusable", "is_const": true, @@ -235667,6 +240660,49 @@ } ] }, + { + "name": "_font_set_spacing", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "spacing", + "type": "enum::TextServer.SpacingType" + }, + { + "name": "value", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "_font_get_spacing", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "spacing", + "type": "enum::TextServer.SpacingType" + } + ] + }, { "name": "_font_set_transform", "is_const": false, @@ -238499,6 +243535,88 @@ } ] }, + { + "name": "_shaped_text_get_character_breaks", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "PackedInt32Array" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + } + ] + }, + { + "name": "_shaped_text_next_character_pos", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "pos", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "_shaped_text_prev_character_pos", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "pos", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "_shaped_text_closest_character_pos", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "pos", + "type": "int", + "meta": "int64" + } + ] + }, { "name": "_format_number", "is_const": true, @@ -238612,6 +243730,26 @@ } ] }, + { + "name": "_string_get_character_breaks", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "PackedInt32Array" + }, + "arguments": [ + { + "name": "string", + "type": "String" + }, + { + "name": "language", + "type": "String" + } + ] + }, { "name": "_is_confusable", "is_const": true, @@ -239204,6 +244342,55 @@ } ] }, + { + "name": "Texture2DArrayRD", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "TextureLayeredRD", + "api_type": "core" + }, + { + "name": "Texture2DRD", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Texture2D", + "api_type": "core", + "methods": [ + { + "name": "set_texture_rd_rid", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "texture_rd_rid", + "type": "RID" + } + ] + }, + { + "name": "get_texture_rd_rid", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + } + ], + "properties": [ + { + "type": "RID", + "name": "texture_rd_rid", + "setter": "set_texture_rd_rid", + "getter": "get_texture_rd_rid" + } + ] + }, { "name": "Texture3D", "is_refcounted": true, @@ -239356,6 +244543,48 @@ } ] }, + { + "name": "Texture3DRD", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Texture3D", + "api_type": "core", + "methods": [ + { + "name": "set_texture_rd_rid", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "texture_rd_rid", + "type": "RID" + } + ] + }, + { + "name": "get_texture_rd_rid", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + } + ], + "properties": [ + { + "type": "RID", + "name": "texture_rd_rid", + "setter": "set_texture_rd_rid", + "getter": "get_texture_rd_rid" + } + ] + }, { "name": "TextureButton", "is_refcounted": false, @@ -239713,6 +244942,20 @@ } ] }, + { + "name": "TextureCubemapArrayRD", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "TextureLayeredRD", + "api_type": "core" + }, + { + "name": "TextureCubemapRD", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "TextureLayeredRD", + "api_type": "core" + }, { "name": "TextureLayered", "is_refcounted": true, @@ -239910,6 +245153,48 @@ } ] }, + { + "name": "TextureLayeredRD", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "TextureLayered", + "api_type": "core", + "methods": [ + { + "name": "set_texture_rd_rid", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "texture_rd_rid", + "type": "RID" + } + ] + }, + { + "name": "get_texture_rd_rid", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + } + ], + "properties": [ + { + "type": "RID", + "name": "texture_rd_rid", + "setter": "set_texture_rd_rid", + "getter": "get_texture_rd_rid" + } + ] + }, { "name": "TextureProgressBar", "is_refcounted": false, @@ -243142,6 +248427,59 @@ } ] }, + { + "name": "set_navigation_map", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4040184819, + "arguments": [ + { + "name": "layer", + "type": "int", + "meta": "int32" + }, + { + "name": "map", + "type": "RID" + } + ] + }, + { + "name": "get_navigation_map", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 495598643, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "layer", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "force_update", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1025054187, + "arguments": [ + { + "name": "layer", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, { "name": "set_tileset", "is_const": false, @@ -243168,7 +248506,7 @@ } }, { - "name": "set_quadrant_size", + "name": "set_rendering_quadrant_size", "is_const": false, "is_vararg": false, "is_static": false, @@ -243183,7 +248521,7 @@ ] }, { - "name": "get_quadrant_size", + "name": "get_rendering_quadrant_size", "is_const": true, "is_vararg": false, "is_static": false, @@ -243482,6 +248820,43 @@ } ] }, + { + "name": "set_layer_navigation_map", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4040184819, + "arguments": [ + { + "name": "layer", + "type": "int", + "meta": "int32" + }, + { + "name": "map", + "type": "RID" + } + ] + }, + { + "name": "get_layer_navigation_map", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 495598643, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "layer", + "type": "int", + "meta": "int32" + } + ] + }, { "name": "set_collision_animatable", "is_const": false, @@ -243557,43 +248932,6 @@ "type": "enum::TileMap.VisibilityMode" } }, - { - "name": "set_navigation_map", - "is_const": false, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 4040184819, - "arguments": [ - { - "name": "layer", - "type": "int", - "meta": "int32" - }, - { - "name": "map", - "type": "RID" - } - ] - }, - { - "name": "get_navigation_map", - "is_const": true, - "is_vararg": false, - "is_static": false, - "is_virtual": false, - "hash": 495598643, - "return_value": { - "type": "RID" - }, - "arguments": [ - { - "name": "layer", - "type": "int", - "meta": "int32" - } - ] - }, { "name": "set_cell", "is_const": false, @@ -243964,7 +249302,15 @@ "hash": 3218959716 }, { - "name": "force_update", + "name": "update_internals", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "notify_runtime_tile_data_update", "is_const": false, "is_vararg": false, "is_static": false, @@ -244051,11 +249397,14 @@ }, { "name": "get_used_rect", - "is_const": false, + "is_const": true, "is_vararg": false, "is_static": false, "is_virtual": false, - "hash": 2024035737, + "hash": 410525958, + "hash_compatibility": [ + 2024035737 + ], "return_value": { "type": "Rect2i" } @@ -244130,9 +249479,9 @@ }, { "type": "int", - "name": "cell_quadrant_size", - "setter": "set_quadrant_size", - "getter": "get_quadrant_size" + "name": "rendering_quadrant_size", + "setter": "set_rendering_quadrant_size", + "getter": "get_rendering_quadrant_size" }, { "type": "bool", @@ -246087,6 +251436,40 @@ "is_instantiable": true, "inherits": "TileSetSource", "api_type": "core", + "constants": [ + { + "name": "TRANSFORM_FLIP_H", + "value": 4096 + }, + { + "name": "TRANSFORM_FLIP_V", + "value": 8192 + }, + { + "name": "TRANSFORM_TRANSPOSE", + "value": 16384 + } + ], + "enums": [ + { + "name": "TileAnimationMode", + "is_bitfield": false, + "values": [ + { + "name": "TILE_ANIMATION_MODE_DEFAULT", + "value": 0 + }, + { + "name": "TILE_ANIMATION_MODE_RANDOM_START_TIMES", + "value": 1 + }, + { + "name": "TILE_ANIMATION_MODE_MAX", + "value": 2 + } + ] + } + ], "methods": [ { "name": "set_texture", @@ -246373,6 +251756,25 @@ } ] }, + { + "name": "has_tiles_outside_texture", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "clear_tiles_outside_texture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, { "name": "set_tile_animation_columns", "is_const": false, @@ -246482,6 +251884,41 @@ } ] }, + { + "name": "set_tile_animation_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3192753483, + "arguments": [ + { + "name": "atlas_coords", + "type": "Vector2i" + }, + { + "name": "mode", + "type": "enum::TileSetAtlasSource.TileAnimationMode" + } + ] + }, + { + "name": "get_tile_animation_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4025349959, + "return_value": { + "type": "enum::TileSetAtlasSource.TileAnimationMode" + }, + "arguments": [ + { + "name": "atlas_coords", + "type": "Vector2i" + } + ] + }, { "name": "set_tile_animation_frames_count", "is_const": false, @@ -250388,6 +255825,43 @@ } ] }, + { + "name": "set_text_overrun_behavior", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1940772195, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + }, + { + "name": "overrun_behavior", + "type": "enum::TextServer.OverrunBehavior" + } + ] + }, + { + "name": "get_text_overrun_behavior", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3782727860, + "return_value": { + "type": "enum::TextServer.OverrunBehavior" + }, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + } + ] + }, { "name": "set_structured_text_bidi_override", "is_const": false, @@ -251447,6 +256921,30 @@ } ] }, + { + "name": "set_button_tooltip_text", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2285447957, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + }, + { + "name": "button_index", + "type": "int", + "meta": "int32" + }, + { + "name": "tooltip", + "type": "String" + } + ] + }, { "name": "set_button", "is_const": false, @@ -255023,6 +260521,31 @@ "type": "bool" } }, + { + "name": "set_loop", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "loop", + "type": "bool" + } + ] + }, + { + "name": "has_loop", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, { "name": "set_volume", "is_const": false, @@ -255115,6 +260638,18 @@ "type": "String" } }, + { + "name": "get_stream_length", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, { "name": "set_stream_position", "is_const": false, @@ -255304,6 +260839,12 @@ "setter": "set_expand", "getter": "has_expand" }, + { + "type": "bool", + "name": "loop", + "setter": "set_loop", + "getter": "has_loop" + }, { "type": "int", "name": "buffering_msec", @@ -255852,6 +261393,31 @@ "type": "bool" } }, + { + "name": "set_use_hdr_2d", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_using_hdr_2d", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, { "name": "set_msaa_2d", "is_const": false, @@ -256577,6 +262143,17 @@ "type": "bool" } }, + { + "name": "get_embedded_subwindows", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "typedarray::Window" + } + }, { "name": "set_canvas_cull_mask", "is_const": false, @@ -257164,6 +262741,12 @@ "setter": "set_debug_draw", "getter": "get_debug_draw" }, + { + "type": "bool", + "name": "use_hdr_2d", + "setter": "set_use_hdr_2d", + "getter": "is_using_hdr_2d" + }, { "type": "int", "name": "scaling_3d_mode", @@ -258520,6 +264103,24 @@ } ], "methods": [ + { + "name": "get_default_input_port", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1894493699, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "type", + "type": "enum::VisualShaderNode.PortType" + } + ] + }, { "name": "set_output_port_for_preview", "is_const": false, @@ -259837,6 +265438,23 @@ } ] }, + { + "name": "_get_default_input_port", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "type", + "type": "enum::VisualShaderNode.PortType" + } + ] + }, { "name": "_get_output_port_count", "is_const": true, @@ -262511,6 +268129,13 @@ } ] }, + { + "name": "VisualShaderNodeRotationByAxis", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNode", + "api_type": "core" + }, { "name": "VisualShaderNodeSDFRaymarch", "is_refcounted": true, @@ -262587,6 +268212,13 @@ } ] }, + { + "name": "VisualShaderNodeScreenNormalWorldSpace", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNode", + "api_type": "core" + }, { "name": "VisualShaderNodeScreenUVToSDF", "is_refcounted": true, @@ -264966,6 +270598,13 @@ "inherits": "VisualShaderNodeVectorBase", "api_type": "core" }, + { + "name": "VisualShaderNodeWorldPositionFromDepth", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNode", + "api_type": "core" + }, { "name": "VoxelGI", "is_refcounted": false, @@ -267855,6 +273494,20 @@ } ] }, + { + "name": "ContentScaleStretch", + "is_bitfield": false, + "values": [ + { + "name": "CONTENT_SCALE_STRETCH_FRACTIONAL", + "value": 0 + }, + { + "name": "CONTENT_SCALE_STRETCH_INTEGER", + "value": 1 + } + ] + }, { "name": "LayoutDirection", "is_bitfield": false, @@ -267909,6 +273562,16 @@ } ], "methods": [ + { + "name": "_get_contents_minimum_size", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector2" + } + }, { "name": "set_title", "is_const": false, @@ -268023,6 +273686,14 @@ "type": "Vector2i" } }, + { + "name": "move_to_center", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, { "name": "set_size", "is_const": false, @@ -268475,6 +274146,31 @@ "type": "enum::Window.ContentScaleAspect" } }, + { + "name": "set_content_scale_stretch", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 349355940, + "arguments": [ + { + "name": "stretch", + "type": "enum::Window.ContentScaleStretch" + } + ] + }, + { + "name": "get_content_scale_stretch", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 536857316, + "return_value": { + "type": "enum::Window.ContentScaleStretch" + } + }, { "name": "set_content_scale_factor", "is_const": false, @@ -269698,6 +275394,12 @@ "setter": "set_content_scale_aspect", "getter": "get_content_scale_aspect" }, + { + "type": "int", + "name": "content_scale_stretch", + "setter": "set_content_scale_stretch", + "getter": "get_content_scale_stretch" + }, { "type": "float", "name": "content_scale_factor", @@ -271338,6 +277040,17 @@ "type": "enum::XRInterface.EnvironmentBlendMode" } ] + }, + { + "name": "get_environment_blend_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1984334071, + "return_value": { + "type": "enum::XRInterface.EnvironmentBlendMode" + } } ], "signals": [ @@ -271364,6 +277077,12 @@ "setter": "set_play_area_mode", "getter": "get_play_area_mode" }, + { + "type": "int", + "name": "environment_blend_mode", + "setter": "set_environment_blend_mode", + "getter": "get_environment_blend_mode" + }, { "type": "bool", "name": "ar_is_anchor_detection_enabled", @@ -272010,6 +277729,17 @@ ] } ], + "signals": [ + { + "name": "tracking_changed", + "arguments": [ + { + "name": "tracking", + "type": "bool" + } + ] + } + ], "properties": [ { "type": "String", @@ -272604,6 +278334,15 @@ } ] }, + { + "name": "pose_lost_tracking", + "arguments": [ + { + "name": "pose", + "type": "XRPose" + } + ] + }, { "name": "button_pressed", "arguments": [ @@ -273273,6 +279012,28 @@ "default_value": "true" } ] + }, + { + "name": "file_exists", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1676256, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "path", + "type": "String" + }, + { + "name": "case_sensitive", + "type": "bool", + "default_value": "true" + } + ] } ] } @@ -273370,6 +279131,14 @@ "name": "WorkerThreadPool", "type": "WorkerThreadPool" }, + { + "name": "ThemeDB", + "type": "ThemeDB" + }, + { + "name": "EditorInterface", + "type": "EditorInterface" + }, { "name": "JavaClassWrapper", "type": "JavaClassWrapper" @@ -273378,10 +279147,6 @@ "name": "JavaScriptBridge", "type": "JavaScriptBridge" }, - { - "name": "ThemeDB", - "type": "ThemeDB" - }, { "name": "DisplayServer", "type": "DisplayServer" diff --git a/Sources/SwiftGodotEditorExtension/EditorExtensionMain.swift b/Sources/SwiftGodotEditorExtension/EditorExtensionMain.swift index 8c5affcc7..0d50749e0 100644 --- a/Sources/SwiftGodotEditorExtension/EditorExtensionMain.swift +++ b/Sources/SwiftGodotEditorExtension/EditorExtensionMain.swift @@ -1,8 +1,52 @@ // -// File.swift +// EditorExtensionMain.swift // // // Created by Miguel de Icaza on 4/7/23. // import Foundation +import SwiftGodot + +extension PackedStringArray { + convenience init (_ values: [String]) { + self.init () + for x in values { + append(value: x) + } + } +} + +func setupScene (level: GDExtension.InitializationLevel) { + if level == .editor { + register(type: SwiftLanguageIntegration.self) + register(type: SwiftScript.self) + register(type: SwiftResourceFormatSaver.self) + register(type: SwiftResourceFormatLoader.self) + register(type: SwiftEditorPlugin.self) + + let f = SwiftResourceFormatSaver() + ResourceSaver.addResourceFormatSaver(f) + let l = SwiftResourceFormatLoader () + ResourceLoader.addResourceFormatLoader(l, atFront: false) + + Engine.registerScriptLanguage(SwiftLanguageIntegration.shared) + + if Engine.isEditorHint() { + SwiftEditorPlugin.registerPlugin () + } + } +} +@_cdecl ("swift_godot_editor_exension_main") +public func swift_entry_point( + interfacePtr: OpaquePointer?, + libraryPtr: OpaquePointer?, + extensionPtr: OpaquePointer?) -> UInt8 +{ + print ("SwiftGodotEditorExtension: Starting up") + guard let interfacePtr, let libraryPtr, let extensionPtr else { + return 0 + } + initializeSwiftModule(interfacePtr, libraryPtr, extensionPtr, initHook: setupScene, deInitHook: { x in }) + return 1 +} diff --git a/Sources/SwiftGodotEditorExtension/GodotEditor.gdextension b/Sources/SwiftGodotEditorExtension/GodotEditor.gdextension index e69de29bb..548099ccb 100644 --- a/Sources/SwiftGodotEditorExtension/GodotEditor.gdextension +++ b/Sources/SwiftGodotEditorExtension/GodotEditor.gdextension @@ -0,0 +1,7 @@ + +[configuration] +entry_symbol = "swift_godot_editor_exension_main" + +[libraries] +macos.debug = "res://bin/SwiftGodotEditorExtension" +macos.release = "res://bin/SwiftGodotEditorExtension" diff --git a/Sources/SwiftGodotEditorExtension/SwiftEditorPlugin.swift b/Sources/SwiftGodotEditorExtension/SwiftEditorPlugin.swift new file mode 100644 index 000000000..58bfd725e --- /dev/null +++ b/Sources/SwiftGodotEditorExtension/SwiftEditorPlugin.swift @@ -0,0 +1,251 @@ +// +// SwiftEditorPlugin.swift: this implement the editor plugin component +// that gets invoked for build/clean operations. +// +// +// Created by Miguel de Icaza on 9/22/23. +// + +import Foundation +import SwiftGodot + +let extensionName = "SwiftExtension" +let extensionEntryPoint = "created_swift_entry" +let gdExtensionName = "swiftextension" + +class SwiftEditorPlugin: EditorPlugin { + static var shared: SwiftEditorPlugin = { + SwiftEditorPlugin () + }() + + static func registerPlugin () { + shared.requestNotifyEditorInit() + } + + var editorInterface: EditorInterface? + var editorBaseControl: Control? + var editorSettings: EditorSettings? + var errorDialog: AcceptDialog? + var confirmCreateDialog: ConfirmationDialog? + + public required init () { + super.init () + pm ("Created") + } + + required init(nativeHandle: UnsafeRawPointer) { + fatalError("init(nativeHandle:) has not been implemented") + } + + func pm (_ data: String = "", functionName: String = #function) { + print ("EditorPlugin: \(functionName) \(data)") + } + + var _projectBaseDir: String? + + /// The full path to the project directory + lazy var projectBaseDir: String = { + if let dir = _projectBaseDir { return dir } + return ProjectSettings.globalizePath("res://") + } () + + /// The path of the generated Package.swift file + lazy var packageSwiftFile: String = { + projectBaseDir + "/Package.swift" + } () + + /// The filename where we generate the Swift dynamic library type initialization + lazy var typeRegistrationFile: String = { + projectBaseDir + "Sources/\(extensionName)/_Startup.swift" + }() + + /// Points to the directory where the Swift source files are stored + lazy var swiftSourcesDir: String = { + projectBaseDir + "Sources/\(extensionName)/" + }() + + lazy var packageContents: String = { + packageTemplate.replacing("@EXT_NAME@", with: extensionName) + }() + + /// Points to the generated `.gdextension` file for the swift extension that contains all of our Swift types + lazy var gdExtensionFile: String = { + "\(projectBaseDir)/\(gdExtensionName).gdextension" + }() + + func ensurePackageSwift () throws { + if FileManager.default.fileExists(atPath: packageSwiftFile) { + return + } + try packageContents.write(toFile: packageSwiftFile, atomically: true, encoding: .utf8) + } + + func ensureTypeRegistration () throws { + let files = try FileManager.default.contentsOfDirectory(atPath: swiftSourcesDir) + var typeList = "" + + + for file in files { + guard file != "_Startup.swift" else { continue } + guard file.hasSuffix(".swift") else { continue } + let basename = String (file.dropLast (6)) + if typeList != "" { + typeList.append(", ") + } + + typeList.append ("\(basename).self") + } + + let typeInit = + """ + import SwiftGodot + import SwiftGodotMacros + + #initSwiftExtension (cdecl: "\(extensionEntryPoint)", types: [\(typeList)]) + """ + try typeInit.write(toFile: typeRegistrationFile, atomically: false, encoding: .utf8) + } + + func ensureSwiftExtension () throws { + let extensionContents = """ + [configuration] + entry_symbol = "\(extensionEntryPoint)" + compatibility_minimum = 4.2 + + [libraries] + macos.debug = "res://bin/libSwiftExtension.dylib" + macos.release = "res://bin/libSwiftExtension.dylib" + """ + + try extensionContents.write(toFile: gdExtensionFile, atomically: false, encoding: .utf8) + } + + func ensureBaseline () throws { + try ensurePackageSwift() + try ensureTypeRegistration() + try ensureSwiftExtension() + } + + public override func _build() -> Bool { + pm ("Starting build \(getpid())") + defer { + pm ("Completed build \(getpid())") + } + do { + try ensureBaseline () + } catch { + pm ("Failed to ensureBaseline \(error)") + return false + } + do { + let p = try Process.run(URL (filePath: "/usr/bin/swift"), arguments: ["build", "--package-path", projectBaseDir]) + p.waitUntilExit() + } catch { + pm ("Failed to run swift build: \(error)") + return false + } + // TODO: for Apple platforms, I should lipo the binaries into a single one + for platform in ["x86_64-apple-macosx", "arm64-apple-macosx"] { + for kind in ["debug", "release"] { + for library in ["SwiftGodot", "SwiftExtension", "SwiftGodotMacros"] { + // TODO: add support for Windows and Linux (dll and .so) but will need to + for ext in ["dylib"] { + let file = "lib\(library).\(ext)" + let source = "\(projectBaseDir)/.build/\(platform)/\(kind)/\(file)" + let target = "\(projectBaseDir)/bin/\(file)" + print ("Copying \(source) to \(target)") + try? FileManager.default.copyItem(atPath: source, toPath: target) + } + } + } + } + return true + } + + public override func _clear() { + do { + try ensureBaseline() + } catch { + pm ("Failed to ensureBaseline \(error)") + return + } + do { + let p = try Process.run(URL (filePath: "/usr/bin/swift"), arguments: ["package", "clean", "--package-path", projectBaseDir]) + p.waitUntilExit() + } catch { + pm ("Failed to run swift build: \(error)") + } + } + + public override func _editorInit() { + register() + _enablePlugin() + } + + public override func _enablePlugin() { + super._enablePlugin() + pm () + projectSettingsChanged.connect { + self.pm ("Need to find the new project location") + } + + editorInterface = self.getEditorInterface() + + editorBaseControl = editorInterface?.getBaseControl() + editorSettings = editorInterface?.getEditorSettings() + + var errorDialog = AcceptDialog() + editorBaseControl?.addChild(node: errorDialog) + self.errorDialog = errorDialog + + var confirmCreateDialog = ConfirmationDialog () + editorBaseControl?.addChild(node: confirmCreateDialog) + confirmCreateDialog.confirmed.connect { + self.pm ("Must create the Package.swift file") + } + self.confirmCreateDialog = confirmCreateDialog + + var exportPlugin = EditorExportPlugin() + addExportPlugin(exportPlugin) + } + + public override func _disablePlugin() { + super._disablePlugin() + pm () + } + + // @EXT_NAME@ + // + let packageTemplate = """ +// swift-tools-version: 5.9 +// The swift-tools-version declares the minimum version of Swift required to build this package. + +import PackageDescription + +let package = Package( + name: "@EXT_NAME@", + platforms: [ + .macOS(.v13), + .iOS ("16.0") + ], + products: [ + .library( + name: "@EXT_NAME@", + type: .dynamic, + targets: ["@EXT_NAME@"]), + ], + dependencies: [ + .package(url: "https://github.com/migueldeicaza/SwiftGodot", branch: "editor-plugin"), + ], + targets: [ + .target( + name: "@EXT_NAME@", + dependencies: ["SwiftGodot", .product (name: "SwiftGodotMacros", package: "SwiftGodot")], + swiftSettings: [.unsafeFlags (["-suppress-warnings"])], + linkerSettings: [.unsafeFlags ( + ["-Xlinker", "-undefined", + "-Xlinker", "dynamic_lookup"])]), + ]) +""" + +} diff --git a/Sources/SwiftGodotEditorExtension/SwiftLanguageIntegration.swift b/Sources/SwiftGodotEditorExtension/SwiftLanguageIntegration.swift new file mode 100644 index 000000000..07fdcd7dc --- /dev/null +++ b/Sources/SwiftGodotEditorExtension/SwiftLanguageIntegration.swift @@ -0,0 +1,374 @@ +// +// SwiftLanguageIntegration.swift +// +// +// Created by Miguel de Icaza on 9/22/23. +// + +import Foundation +import SwiftGodot + +class SwiftLanguageIntegration: ScriptLanguageExtension { + static var shared = SwiftLanguageIntegration() + + required public init () { + super.init () + // NEED: EditorNode.addInitCallback + } + + required public init (nativeHandle: UnsafeRawPointer) { + fatalError("Not needed") + } + + func pm (_ data: String = "", functionName: String = #function) { + print ("Integration: \(functionName) \(data)") + } + + open override func _getName ()-> String { + return "Swift Language Integration" + } + + open override func _init () { + print ("SwiftLanguageIntegration called") + // TODO: could define useful things here + } + + open override func _getType ()-> String { + //pm() + return "SwiftScript" + } + + open override func _getExtension ()-> String { + //pm() + return "swift" + } + + open override func _finish () { + pm() + } + + static var reservedSwiftWords = [ + "associatedtype", "class", "deinit", "enum", "extension", "fileprivate", "func", "import", "init", "inout", "internal", "let", "open", "operator", "private", "precedencegroup", "protocol", "public", "rethrows", "static", "struct", "subscript", "typealias", "var", + "break", "case", "catch", "continue", "default", "defer", "do", "else", "fallthrough", "for", "guard", "if", "in", "repeat", "return", "throw", "switch", "where", "while", + "Any", "as", "await", "catch", "false", "is", "nil", "rethrows", "self", "Self", "super", "throw", "throws", "true", "try", + "_", + "#available", "#colorLiteral", "#elseif", "#else", "#endif", "#fileLiteral", "#if", "#imageLiteral", "#keyPath", "#selector", "#sourceLocation" + ] + + open override func _getReservedWords ()-> PackedStringArray { + return PackedStringArray (SwiftLanguageIntegration.reservedSwiftWords) + } + + open override func _isControlFlowKeyword (_ keyword: String)-> Bool { + switch keyword.description { + case "if", "break", "continue", "do", "else", "guard", "repeat", "while", "repeat", "throw", "try", + "return", "defer", "fallthrough", "for": + return true + default: + return false + } + } + + open override func _getCommentDelimiters ()-> PackedStringArray { + return PackedStringArray (["//", "/*"]) + } + + open override func _getStringDelimiters ()-> PackedStringArray { + return PackedStringArray (["\" \"", "@\" \""]) + } + + open override func _makeTemplate (_ template: String, className: String, baseClassName: String)-> Script { + pm ("template: \(template) className: \(className) baseClassName: \(baseClassName)") + var s = SwiftScript () + s.sourceCode = template + .replacing("_CLASS_", with: className) + .replacing("_BASE_", with: baseClassName) + return s + } + + struct SwiftScriptTemplate { + let inherit: String + let name: String + let description: String + let id: String + let origin: Int + let content: String + + func toDictionary () -> GDictionary { + var dict = GDictionary() + + dict ["inherit"] = Variant (inherit) + dict ["name"] = Variant (name) + dict ["description"] = Variant (description) + dict ["content"] = Variant (content) + + // TODO what to fill here? + dict ["id"] = Variant (id) + dict ["origin"] = Variant ("\(origin)") + return dict + } + } + var templates: [String: SwiftScriptTemplate] = [ + "Object": SwiftScriptTemplate( + inherit: "Object", + name: "Empty", + description: "Empty template suitable for all subclasses", + id: "object", origin: 0, + content: +""" +import SwiftGodot + +class _CLASS_: _BASE_ { + required init(nativeHandle: UnsafeRawPointer) { fatalError ("Not necessary") } + public required init () { + super.init () + } +} + +"""), + "Node": SwiftScriptTemplate(inherit: "Node", name: "Default", description: "Base template for Node with default Godot cycle methods", id: "node", origin: 0, content: +""" +import SwiftGodot + +public class _CLASS_: _BASE_ { + // Called when the node enters the scene tree for the first time. + public override func _ready() { + } + + // Called every frame. 'delta' is the elapsed time since the previous frame. + public override func _process(delta: Double) { + } +} + +""") + ] + + open override func _getBuiltInTemplates (object: StringName)-> VariantCollection { + var collection = VariantCollection () + + if let template = templates [object.description] { + collection.append (value: Variant (template.toDictionary())) + } else { + print (">> Got a request for an object we do not know of: \(object.description)") + } + + return collection + } + + open override func _isUsingTemplates ()-> Bool { + return true + } + + open override func _validate (script: String, path: String, validateFunctions: Bool, validateErrors: Bool, validateWarnings: Bool, validateSafeLines: Bool)-> GDictionary { + pm (); + // The return needs to push the following values: + // - "valid" if valid, nothing if not + // - "functions": array of strings listing functions + // - "errors": array of dictionary containing ("line" (Int), "column" (Int), "message" (String) + // - "warnings": array of dictionary containtng: + // Int ("end_line")); + // Int ("leftmost_column")); + // Int ("rightmost_column")); + // Int ("code")); + // String ("string_code")); + // String ("message")); + // - "safelines" + + var ret = GDictionary () + ret ["valid"] = Variant (true) + return ret + } + + // The goal of this method is to say if a path is acceptable to our plugin + // it is called from the "Create Script" dialog box, every time the user + // edits the file path + open override func _validatePath (_ path: String)-> String { + pm() + print ("_validatePath: \(path), returning that we are ok with it") + return "" + } + + open override func _createScript ()-> Object { + pm () + return SwiftScript () + } + + open override func _hasNamedClasses ()-> Bool { + pm("-> true") + return true + } + + open override func _supportsBuiltinMode ()-> Bool { + pm("-> true") + return true + } + + open override func _supportsDocumentation ()-> Bool { + return true + } + + open override func _canInheritFromFile ()-> Bool { + pm() + return false + } + + open override func _findFunction (className: String, functionName: String)-> Int32 { + pm() + return 0 + } + + open override func _makeFunction (className: String, functionName: String, functionArgs: PackedStringArray)-> String { + pm() + return "" + } + + open override func _openInExternalEditor (script: Script?, line: Int32, column: Int32)-> GodotError { + pm() + return .ok + } + + open override func _overridesExternalEditor ()-> Bool { + pm() + return false + } + + open func _instanceCreate (forObject: Object?)-> OpaquePointer? { + pm ("The object is: \(forObject)") + return nil + } + + open override func _completeCode (_ code: String, path: String, owner: Object?)-> GDictionary { + pm() + return GDictionary () + } + + open override func _lookupCode (_ code: String, symbol: String, path: String, owner: Object?)-> GDictionary { + pm() + return GDictionary () + } + + open override func _autoIndentCode (_ code: String, fromLine: Int32, toLine: Int32)-> String { + pm() + return "" + } + + open override func _addGlobalConstant (name: StringName, value: Variant) { + pm() + } + + open override func _addNamedGlobalConstant (name: StringName, value: Variant) { + pm() + } + + open override func _removeNamedGlobalConstant (name: StringName) { + pm() + } + + open override func _threadEnter () { + pm() + } + + open override func _threadExit () { + pm() + } + + open override func _debugGetError ()-> String { + pm() + return "" + } + + open override func _debugGetStackLevelCount ()-> Int32 { + pm() + return 0 + } + + open override func _debugGetStackLevelLine (level: Int32)-> Int32 { + pm() + return 0 + } + + open override func _debugGetStackLevelFunction (level: Int32)-> String { + pm() + return "" + } + + open override func _debugGetStackLevelLocals (level: Int32, maxSubitems: Int32, maxDepth: Int32)-> GDictionary { + pm() + return GDictionary () + } + + open override func _debugGetStackLevelMembers (level: Int32, maxSubitems: Int32, maxDepth: Int32)-> GDictionary { + pm() + return GDictionary () + } + + open override func _debugGetGlobals (maxSubitems: Int32, maxDepth: Int32)-> GDictionary { + pm() + return GDictionary () + } + + open override func _debugParseStackLevelExpression (level: Int32, expression: String, maxSubitems: Int32, maxDepth: Int32)-> String { + pm() + return "" + } + + open override func _debugGetCurrentStackInfo ()-> VariantCollection { + pm() + return VariantCollection() + } + + open override func _reloadAllScripts () { + pm() + } + + open override func _reloadToolScript (_ script: Script?, softReload: Bool) { + pm() + } + + open override func _getRecognizedExtensions ()-> PackedStringArray { + let r = PackedStringArray (["swift"]) + return r + } + + open override func _getPublicFunctions ()-> VariantCollection { + pm() + return VariantCollection() + } + + open override func _getPublicConstants ()-> GDictionary { + pm() + return GDictionary () + } + + open override func _getPublicAnnotations ()-> VariantCollection { + pm() + return VariantCollection() + } + + open override func _profilingStart () { + pm() + } + + open override func _profilingStop () { + pm() + } + + open override func _frame () { + //pm() + } + + open override func _handlesGlobalClassType (_ type: String)-> Bool { + pm("Type=\(type) returning false") + return false + } + + /// Contents: + /// - "name": String + /// - "base_type": String + /// - "icon_path": String + open override func _getGlobalClassName (path: String)-> GDictionary { + pm("For path: \(path), returning empty dictionary") + return GDictionary () + } +} + diff --git a/Sources/SwiftGodotEditorExtension/SwiftResourceFormatLoader.swift b/Sources/SwiftGodotEditorExtension/SwiftResourceFormatLoader.swift new file mode 100644 index 000000000..0b726d57e --- /dev/null +++ b/Sources/SwiftGodotEditorExtension/SwiftResourceFormatLoader.swift @@ -0,0 +1,108 @@ +// +// SwiftResourceFormatLoader.swift +// +// +// Created by Miguel de Icaza on 9/22/23. +// + +import Foundation +import SwiftGodot + +class SwiftResourceFormatLoader: ResourceFormatLoader { + var uids: [String:Int] = [:] + var next = 0 + + public required init () { + super.init () + } + + required init(nativeHandle: UnsafeRawPointer) { + fatalError("init(nativeHandle:) has not been implemented") + } + + func pm (_ data: String = "", functionName: String = #function) { + print ("SwiftResourceLoader: \(functionName) \(data)") + } + + open override func _exists(path: String) -> Bool { + pm ("Exists for \(path))") + return true + } + + open override func _getRecognizedExtensions() -> PackedStringArray { + return PackedStringArray(["swift"]) + } + + open override func _handlesType(_ type: StringName) -> Bool { + let ret = type.description == "Script" + //pm ("ResourceFormatLoader: \(type.description) => \(ret)") + return ret + } + + open override func _getClassesUsed(path: String) -> PackedStringArray { + pm ("Returnging empty for \(path)") + return PackedStringArray() + } + + open override func _getResourceUid(path: String) -> Int { + if let v = uids [path] { + return v + } + next += 1 + uids [path] = next + return next + } + + open override func _getResourceType(path: String) -> String { + if path.hasSuffix(".swift") { + return "SwiftScript" + } + pm("Returning empty for \(path)") + return "" + } + + open override func _recognizePath(_ path: String, type: StringName) -> Bool { + if path.hasSuffix(".swift") { + return true + } + pm ("Returning false for path=\(path) type=\(type)") + return false + } + + open override func _getResourceScriptClass(path: String) -> String { + pm ("Returning empty for \(path)") + return "" + } + + open override func _renameDependencies(path: String, renames: GDictionary) -> GodotError { + pm ("Request to rename \(path)") + return .ok + } + + open override func _getDependencies(path: String, addTypes: Bool) -> PackedStringArray { + pm ("Returning empty path=\(path) addTypes=\(addTypes)") + return PackedStringArray() + } + + open override func _load(path: String, originalPath: String, useSubThreads: Bool, cacheMode: Int32) -> Variant { + pm ("Request to load path=\(path) originalPath=\(originalPath) useSubthreads=\(useSubThreads) cacheMode=\(cacheMode)") + var rootPath: String + + if path.hasPrefix("res://Sources/\(extensionName)/") || path == "res://Package.swift" { + rootPath = ProjectSettings.globalizePath(path) + } else { + rootPath = ProjectSettings.globalizePath("res://Sources/\(extensionName)/\(path.dropFirst (6))") + } + pm ("RESOLVED PATH: \(rootPath)") + guard let contents = try? String (contentsOfFile: rootPath) else { + pm ("_LOAD: Failed to load the contents of \(rootPath)") + return Variant (Int (GodotError.errCantOpen.rawValue)) + } + let script = SwiftScript() + script.resourcePath = path + script.sourceCode = contents + pm ("_LOAD: RETURNING SCRIPT") + return Variant (script) + } +} + diff --git a/Sources/SwiftGodotEditorExtension/SwiftResourceFormatSaver.swift b/Sources/SwiftGodotEditorExtension/SwiftResourceFormatSaver.swift new file mode 100644 index 000000000..5111249a4 --- /dev/null +++ b/Sources/SwiftGodotEditorExtension/SwiftResourceFormatSaver.swift @@ -0,0 +1,90 @@ +// +// SwiftResourceFormatSaver.swift +// +// +// Created by Miguel de Icaza on 9/22/23. +// + +import Foundation +import SwiftGodot + +class SwiftResourceFormatSaver: ResourceFormatSaver { + public required init () { + super.init () + } + + required init(nativeHandle: UnsafeRawPointer) { + fatalError("init(nativeHandle:) has not been implemented") + } + + func pm (_ data: String = "", functionName: String = #function) { + print ("SwiftResourceSaver: \(functionName) \(data)") + } + + open override func _recognize(resource: Resource?) -> Bool { + if resource is SwiftScript { + return true + } else { + print ("_recognize, can not handle this: method on Resource \(resource?.resourceName) at \(resource?.resourcePath)") + return false + } + } + + open override func _setUid(path: String, uid: Int) -> GodotError { + pm () + print ("path: \(path) uid=\(uid)") + return .ok + } + + open override func _getRecognizedExtensions(resource: Resource?) -> PackedStringArray { + if let resource { + print (" -> resourceName=\(resource.resourceName)") + print (" -> resourcePath=\(resource.resourcePath)") + } + return PackedStringArray(["swift"]) + } + + open override func _recognizePath(resource: Resource?, path: String) -> Bool { + pm ("path: \(path) resource: \(resource?.resourceName)"); + return true + } + + // + // path is: res://FILE + open override func _save(resource: Resource?, path: String, flags: UInt32) -> GodotError { + var rootPath = ProjectSettings.globalizePath("res://") + let swiftSourceDir = "\(rootPath)/Sources/\(extensionName)" + + func ensureDirectory () -> Bool { + if !FileManager.default.fileExists(atPath: swiftSourceDir) { + do { + try FileManager.default.createDirectory(atPath: swiftSourceDir, withIntermediateDirectories: true) + } catch { + print ("Failed to create source directory at \(error)") + return false + } + } + return true + } + ensureDirectory() + pm ("res=\(resource?.resourceName) path: \(path) flags: \(flags)") + guard let script = resource as? SwiftScript else { + print ("_save the resource did not cast to a SwiftScript") + return .errFileUnrecognized + } + var actualPath = path.starts(with: "res://Sources/\(extensionName)/") || path == "res://Package.swift" ? path : "res://Sources/\(extensionName)/\(path.dropFirst(6))" + print ("Going to save to [\(actualPath)]") + guard let file = FileAccess.open(path: actualPath, flags: .write) else { + return .errCantOpen + } + file.storeString(script.source) + let err = file.getError() + if err != .ok { + print ("_save: Got an error from storing the string: \(err)") + return err + } + file.close() + return .ok + } +} + diff --git a/Sources/SwiftGodotEditorExtension/SwiftScript.swift b/Sources/SwiftGodotEditorExtension/SwiftScript.swift new file mode 100644 index 000000000..98a42b394 --- /dev/null +++ b/Sources/SwiftGodotEditorExtension/SwiftScript.swift @@ -0,0 +1,190 @@ +// +// SwiftScript.swift +// +// +// Created by Miguel de Icaza on 9/22/23. +// + +import Foundation +import SwiftGodot + +class SwiftScript: ScriptExtension { + var source: String + + public required init () { + source = "" + super.init () + } + + required init(nativeHandle: UnsafeRawPointer) { + source = "" + fatalError("init(nativeHandle:) has not been implemented") + } + + func pm (_ data: String = "", functionName: String = #function) { + print ("Script: \(functionName) \(data)") + } + + public override func _isTool() -> Bool { + //pm() + return false + } + + public override func _isValid() -> Bool { + pm() + return true + } + + public override func _getMembers() -> VariantCollection { + pm () + return VariantCollection() + } + + public override func _getLanguage() -> ScriptLanguage { + return SwiftLanguageIntegration.shared + } + + public override func _getConstants() -> GDictionary { + pm () + return GDictionary() + } + + public override func _updateExports() { + pm () + } + + public override func _canInstantiate() -> Bool { + return true + } + + public override func _getDocumentation() -> VariantCollection { + pm() + return VariantCollection() + } + + public override func _getRpcConfig() -> Variant { + pm () + return "Hello".toVariant() + } + + /// Must return the script that provides the base class for this script. + public override func _getBaseScript() -> Script? { + pm () + + return nil + } + + public override func _getGlobalName() -> StringName { + pm () + return "GlobalName" + } + + public override func _getSourceCode() -> String { + pm () + return source + } + + public override func _hasSourceCode() -> Bool { + pm () + return source != "" + } + + public override func _hasMethod(_ method: StringName) -> Bool { + pm (method.description) + return true + } + + public override func _reload(keepState: Bool) -> GodotError { + pm ("\(keepState)") + return .ok + } + + public override func _instanceHas(object: Object?) -> Bool { + pm () + return false + } + + public override func _getInstanceBaseType() -> StringName { + guard let regex = try? Regex ("class [A-Za-z_][A-Za-z0-9_]*\\s*:\\s*([A-Za-z_][A-Za-z0-9_]*)") else { + pm ("Failed to compile poor man's swift parser regex") + return "" + } + for line in source.split(separator: "\n") { + let res = line.matches(of: regex) + if res.count == 0 || res [0].count != 2 { + continue + } + if let base = res [0][1].substring { + pm ("Returning: \(base)") + return StringName (String (base)) + } + } + pm ("Did not find a base type") + return "" + } + + public override func _getScriptMethodList() -> VariantCollection { + pm () + return VariantCollection() + } + + public override func _getScriptSignalList() -> VariantCollection { + pm () + return VariantCollection() + } + + public override func _getScriptPropertyList() -> VariantCollection { + pm () + return VariantCollection() + } + + public override func _inheritsScript(_ script: Script?) -> Bool { + pm () + return false + } + + public override func _isPlaceholderFallbackEnabled() -> Bool { + pm () + return false + } + + public override func _setSourceCode(_ code: String) { + pm () + source = code + } + + public override func _getMemberLine(member: StringName) -> Int32 { + pm () + return 1 + } + + public override func _getMethodInfo(method: StringName) -> GDictionary { + return GDictionary() + } + + public override func _hasScriptSignal(_ signal: StringName) -> Bool { + pm () + return false + } + + public override func _editorCanReloadFromFile() -> Bool { + pm () + return false + } + + public override func _getPropertyDefaultValue(property: StringName) -> Variant { + pm ("For property: \(property.description)") + switch property.description { + case "script": + return Variant (self) + default: + return false.toVariant() + } + } + + public override func _hasPropertyDefaultValue(property: StringName) -> Bool { + pm (" property is: \(property.description) -> false") + return false + } +} + diff --git a/TestEditor/.gitignore b/TestEditor/.gitignore new file mode 100644 index 000000000..470918367 --- /dev/null +++ b/TestEditor/.gitignore @@ -0,0 +1,2 @@ +# Godot 4+ specific ignores +.godot/ diff --git a/TestEditor/icon.svg b/TestEditor/icon.svg new file mode 100644 index 000000000..adc26df6c --- /dev/null +++ b/TestEditor/icon.svg @@ -0,0 +1 @@ + diff --git a/TestEditor/icon.svg.import b/TestEditor/icon.svg.import new file mode 100644 index 000000000..7d2086741 --- /dev/null +++ b/TestEditor/icon.svg.import @@ -0,0 +1,37 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://bi1blceh3nr18" +path="res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://icon.svg" +dest_files=["res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 +svg/scale=1.0 +editor/scale_with_editor_scale=false +editor/convert_colors_with_editor_theme=false diff --git a/TestEditor/main.tscn b/TestEditor/main.tscn new file mode 100644 index 000000000..495ec11e1 --- /dev/null +++ b/TestEditor/main.tscn @@ -0,0 +1,3 @@ +[gd_scene format=3 uid="uid://dgv73oldpld3u"] + +[node name="Main" type="Node2D"] diff --git a/TestEditor/node_2d.tscn b/TestEditor/node_2d.tscn new file mode 100644 index 000000000..2fcac09d9 --- /dev/null +++ b/TestEditor/node_2d.tscn @@ -0,0 +1,5 @@ +[gd_scene load_steps=2 format=3 uid="uid://b2yh1fspd2mci"] + +[node name="Node2D" type="Node2D"] + +[node name="Node2" type="Node" parent="."] diff --git a/TestEditor/project.godot b/TestEditor/project.godot new file mode 100644 index 000000000..325bc757e --- /dev/null +++ b/TestEditor/project.godot @@ -0,0 +1,20 @@ +; Engine configuration file. +; It's best edited using the editor UI and not directly, +; since the parameters that go here are not all obvious. +; +; Format: +; [section] ; section goes between [] +; param=value ; assign values to parameters + +config_version=5 + +[application] + +config/name="Sample" +run/main_scene="res://node_2d.tscn" +config/features=PackedStringArray("4.2", "Forward Plus") +config/icon="res://icon.svg" + +[editor_plugins] + +enabled=PackedStringArray() diff --git a/TestEditor/swiftsupport.gdextension b/TestEditor/swiftsupport.gdextension new file mode 100644 index 000000000..48df265c8 --- /dev/null +++ b/TestEditor/swiftsupport.gdextension @@ -0,0 +1,9 @@ +[configuration] + +entry_symbol = "swift_godot_editor_exension_main" +compatibility_minimum = 4.2 + +[libraries] + +macos.debug = "res://bin/SwiftGodotEditorExtension" +macos.release = "res://bin/SwiftGodotEditorExtension" diff --git a/Tests/SwiftGodotMacrosTests/SceneTreeMacroTests.swift b/Tests/SwiftGodotMacrosTests/SceneTreeMacroTests.swift index 6597189c5..5e1c4d552 100644 --- a/Tests/SwiftGodotMacrosTests/SceneTreeMacroTests.swift +++ b/Tests/SwiftGodotMacrosTests/SceneTreeMacroTests.swift @@ -109,6 +109,4 @@ final class SceneTreeMacroTests: XCTestCase { macros: testMacros ) } - - }