From 7627398c11a3c3f44fe96389e4aa17e4069dfb9c Mon Sep 17 00:00:00 2001 From: chippmann Date: Sat, 12 Oct 2024 18:49:33 +0200 Subject: [PATCH 01/18] Add todo for annotation rework --- TODO.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 TODO.md diff --git a/TODO.md b/TODO.md new file mode 100644 index 0000000000..b01b164c4a --- /dev/null +++ b/TODO.md @@ -0,0 +1,22 @@ +# Annotations rework + +Replace existing annotations with: +- `GodotScript` -> classes +- `GodotMember` -> functions, properties (also allow signals but not relevant for them) + +Add meta annotation to api signals and overridable api functions: `GodotApiMember`. + +# New processing logic +## Properties +1. Collect all properties from hierarchy +2. Filter by existence of `GodotMember` annotation + +## Functions +1. Collect all functions from hierarchy +2. Filter by existence of `GodotMember` annotation or override function which has the annotation `GodotApiMember` + +## Signals +1. Collect all properties from hierarchy +2. Filter by type signal +3. Filter not has annotation `GodotApiMember` + From c40141c03c4f588a259bce7a0e26898e7ea9574e Mon Sep 17 00:00:00 2001 From: chippmann Date: Sat, 12 Oct 2024 19:14:25 +0200 Subject: [PATCH 02/18] Add `GodotApiMember` to api functions and signals for easier detection in the symbol processor --- .../tests/scripts/godot/tests/Invocation.gdj | 1 + .../scripts/godot/tests/JavaTestClass.gdj | 3 +- .../services/impl/GenerationService.kt | 15 +- .../kotlin/godot/annotation/GodotApiMember.kt | 10 + .../main/kotlin/godot/gen/godot/AStar2D.kt | 3 + .../main/kotlin/godot/gen/godot/AStar3D.kt | 3 + .../kotlin/godot/gen/godot/AStarGrid2D.kt | 3 + .../kotlin/godot/gen/godot/AcceptDialog.kt | 4 + .../godot/gen/godot/AnimatedSprite2D.kt | 6 + .../godot/gen/godot/AnimatedSprite3D.kt | 6 + .../godot/gen/godot/AnimationLibrary.kt | 5 + .../kotlin/godot/gen/godot/AnimationMixer.kt | 9 + .../kotlin/godot/gen/godot/AnimationNode.kt | 12 + .../gen/godot/AnimationNodeBlendSpace2D.kt | 2 + .../godot/gen/godot/AnimationNodeBlendTree.kt | 2 + .../AnimationNodeStateMachineTransition.kt | 2 + .../kotlin/godot/gen/godot/AnimationPlayer.kt | 3 + .../kotlin/godot/gen/godot/AnimationTree.kt | 2 + .../src/main/kotlin/godot/gen/godot/Area2D.kt | 9 + .../src/main/kotlin/godot/gen/godot/Area3D.kt | 9 + .../kotlin/godot/gen/godot/AudioEffect.kt | 2 + .../godot/gen/godot/AudioEffectInstance.kt | 2 + .../kotlin/godot/gen/godot/AudioServer.kt | 3 + .../kotlin/godot/gen/godot/AudioStream.kt | 9 + .../godot/gen/godot/AudioStreamPlayback.kt | 10 + .../gen/godot/AudioStreamPlaybackResampled.kt | 2 + .../godot/gen/godot/AudioStreamPlayer.kt | 2 + .../godot/gen/godot/AudioStreamPlayer2D.kt | 2 + .../godot/gen/godot/AudioStreamPlayer3D.kt | 2 + .../main/kotlin/godot/gen/godot/BaseButton.kt | 7 + .../main/kotlin/godot/gen/godot/BoneMap.kt | 3 + .../kotlin/godot/gen/godot/ButtonGroup.kt | 2 + .../kotlin/godot/gen/godot/CPUParticles2D.kt | 2 + .../kotlin/godot/gen/godot/CPUParticles3D.kt | 2 + .../kotlin/godot/gen/godot/CameraServer.kt | 3 + .../main/kotlin/godot/gen/godot/CanvasItem.kt | 6 + .../kotlin/godot/gen/godot/CanvasLayer.kt | 2 + .../main/kotlin/godot/gen/godot/CodeEdit.kt | 8 + .../godot/gen/godot/CollisionObject2D.kt | 11 + .../godot/gen/godot/CollisionObject3D.kt | 7 + .../kotlin/godot/gen/godot/ColorPicker.kt | 4 + .../godot/gen/godot/ColorPickerButton.kt | 4 + .../godot/gen/godot/CompositorEffect.kt | 2 + .../main/kotlin/godot/gen/godot/Container.kt | 5 + .../main/kotlin/godot/gen/godot/Control.kt | 19 ++ .../src/main/kotlin/godot/gen/godot/Curve.kt | 2 + .../kotlin/godot/gen/godot/EngineProfiler.kt | 4 + .../main/kotlin/godot/gen/godot/FileDialog.kt | 4 + .../godot/gen/godot/GDExtensionManager.kt | 2 + .../godot/gen/godot/GLTFDocumentExtension.kt | 20 ++ .../kotlin/godot/gen/godot/GPUParticles2D.kt | 2 + .../kotlin/godot/gen/godot/GPUParticles3D.kt | 2 + .../main/kotlin/godot/gen/godot/GraphEdit.kt | 23 ++ .../kotlin/godot/gen/godot/GraphElement.kt | 9 + .../main/kotlin/godot/gen/godot/GraphFrame.kt | 2 + .../main/kotlin/godot/gen/godot/GraphNode.kt | 3 + .../main/kotlin/godot/gen/godot/GridMap.kt | 3 + .../kotlin/godot/gen/godot/HTTPRequest.kt | 2 + .../gen/godot/ImageFormatLoaderExtension.kt | 3 + .../src/main/kotlin/godot/gen/godot/Input.kt | 2 + .../main/kotlin/godot/gen/godot/ItemList.kt | 6 + .../godot/gen/godot/JavaScriptBridge.kt | 2 + .../main/kotlin/godot/gen/godot/LineEdit.kt | 4 + .../main/kotlin/godot/gen/godot/MainLoop.kt | 6 + .../main/kotlin/godot/gen/godot/Material.kt | 5 + .../main/kotlin/godot/gen/godot/MenuButton.kt | 2 + .../src/main/kotlin/godot/gen/godot/Mesh.kt | 15 ++ .../kotlin/godot/gen/godot/MeshInstance2D.kt | 2 + .../kotlin/godot/gen/godot/MovieWriter.kt | 6 + .../godot/gen/godot/MultiMeshInstance2D.kt | 2 + .../kotlin/godot/gen/godot/MultiplayerAPI.kt | 6 + .../gen/godot/MultiplayerAPIExtension.kt | 10 + .../kotlin/godot/gen/godot/MultiplayerPeer.kt | 3 + .../gen/godot/MultiplayerPeerExtension.kt | 22 ++ .../godot/gen/godot/MultiplayerSpawner.kt | 3 + .../gen/godot/MultiplayerSynchronizer.kt | 4 + .../godot/gen/godot/NavigationAgent2D.kt | 7 + .../godot/gen/godot/NavigationAgent3D.kt | 7 + .../godot/gen/godot/NavigationRegion2D.kt | 3 + .../godot/gen/godot/NavigationRegion3D.kt | 3 + .../godot/gen/godot/NavigationServer2D.kt | 3 + .../godot/gen/godot/NavigationServer3D.kt | 4 + .../kotlin/godot/gen/godot/NinePatchRect.kt | 2 + .../src/main/kotlin/godot/gen/godot/Node.kt | 21 ++ .../src/main/kotlin/godot/gen/godot/Node3D.kt | 2 + .../src/main/kotlin/godot/gen/godot/Object.kt | 3 + .../godot/OpenXRExtensionWrapperExtension.kt | 25 +++ .../kotlin/godot/gen/godot/OpenXRInterface.kt | 9 + .../kotlin/godot/gen/godot/OptionButton.kt | 3 + .../godot/gen/godot/PacketPeerExtension.kt | 3 + .../src/main/kotlin/godot/gen/godot/Path3D.kt | 2 + .../kotlin/godot/gen/godot/PhysicalBone3D.kt | 2 + .../PhysicsDirectBodyState2DExtension.kt | 45 ++++ .../PhysicsDirectBodyState3DExtension.kt | 47 ++++ .../PhysicsDirectSpaceState3DExtension.kt | 2 + .../PhysicsServer3DRenderingServerHandler.kt | 4 + .../src/main/kotlin/godot/gen/godot/Popup.kt | 2 + .../main/kotlin/godot/gen/godot/PopupMenu.kt | 5 + .../kotlin/godot/gen/godot/PrimitiveMesh.kt | 2 + .../kotlin/godot/gen/godot/ProjectSettings.kt | 2 + .../src/main/kotlin/godot/gen/godot/Range.kt | 4 + .../godot/gen/godot/RenderDataExtension.kt | 5 + .../gen/godot/RenderSceneBuffersExtension.kt | 5 + .../gen/godot/RenderSceneDataExtension.kt | 7 + .../kotlin/godot/gen/godot/RenderingServer.kt | 3 + .../main/kotlin/godot/gen/godot/Resource.kt | 4 + .../godot/gen/godot/ResourceFormatLoader.kt | 12 + .../godot/gen/godot/ResourceFormatSaver.kt | 6 + .../kotlin/godot/gen/godot/RichTextEffect.kt | 2 + .../kotlin/godot/gen/godot/RichTextLabel.kt | 5 + .../kotlin/godot/gen/godot/RigidBody2D.kt | 7 + .../kotlin/godot/gen/godot/RigidBody3D.kt | 7 + .../godot/gen/godot/SceneMultiplayer.kt | 4 + .../main/kotlin/godot/gen/godot/SceneTree.kt | 9 + .../kotlin/godot/gen/godot/SceneTreeTimer.kt | 2 + .../kotlin/godot/gen/godot/ScriptExtension.kt | 34 +++ .../gen/godot/ScriptLanguageExtension.kt | 57 +++++ .../main/kotlin/godot/gen/godot/ScrollBar.kt | 2 + .../kotlin/godot/gen/godot/ScrollContainer.kt | 3 + .../main/kotlin/godot/gen/godot/Skeleton2D.kt | 2 + .../main/kotlin/godot/gen/godot/Skeleton3D.kt | 6 + .../godot/gen/godot/SkeletonModification2D.kt | 4 + .../godot/gen/godot/SkeletonModifier3D.kt | 3 + .../kotlin/godot/gen/godot/SkeletonProfile.kt | 2 + .../src/main/kotlin/godot/gen/godot/Slider.kt | 3 + .../kotlin/godot/gen/godot/SplitContainer.kt | 2 + .../main/kotlin/godot/gen/godot/Sprite2D.kt | 3 + .../main/kotlin/godot/gen/godot/Sprite3D.kt | 3 + .../kotlin/godot/gen/godot/StatusIndicator.kt | 2 + .../godot/gen/godot/StreamPeerExtension.kt | 2 + .../main/kotlin/godot/gen/godot/StyleBox.kt | 5 + .../godot/gen/godot/SubViewportContainer.kt | 2 + .../godot/gen/godot/SyntaxHighlighter.kt | 4 + .../src/main/kotlin/godot/gen/godot/TabBar.kt | 9 + .../kotlin/godot/gen/godot/TabContainer.kt | 8 + .../main/kotlin/godot/gen/godot/TextEdit.kt | 14 ++ .../godot/gen/godot/TextServerExtension.kt | 212 ++++++++++++++++++ .../godot/gen/godot/TextServerManager.kt | 3 + .../main/kotlin/godot/gen/godot/Texture2D.kt | 8 + .../main/kotlin/godot/gen/godot/Texture3D.kt | 7 + .../kotlin/godot/gen/godot/TextureLayered.kt | 8 + .../main/kotlin/godot/gen/godot/ThemeDB.kt | 2 + .../main/kotlin/godot/gen/godot/TileData.kt | 2 + .../main/kotlin/godot/gen/godot/TileMap.kt | 4 + .../kotlin/godot/gen/godot/TileMapLayer.kt | 4 + .../src/main/kotlin/godot/gen/godot/Timer.kt | 2 + .../godot/gen/godot/TouchScreenButton.kt | 3 + .../kotlin/godot/gen/godot/Translation.kt | 3 + .../src/main/kotlin/godot/gen/godot/Tree.kt | 16 ++ .../src/main/kotlin/godot/gen/godot/Tween.kt | 4 + .../main/kotlin/godot/gen/godot/Tweener.kt | 2 + .../main/kotlin/godot/gen/godot/UndoRedo.kt | 2 + .../kotlin/godot/gen/godot/VideoStream.kt | 2 + .../godot/gen/godot/VideoStreamPlayback.kt | 14 ++ .../godot/gen/godot/VideoStreamPlayer.kt | 2 + .../main/kotlin/godot/gen/godot/Viewport.kt | 3 + .../gen/godot/VisibleOnScreenNotifier2D.kt | 3 + .../gen/godot/VisibleOnScreenNotifier3D.kt | 3 + .../godot/gen/godot/VisualInstance3D.kt | 2 + .../godot/gen/godot/VisualShaderNodeCustom.kt | 22 ++ .../godot/gen/godot/VisualShaderNodeInput.kt | 2 + .../gen/godot/WebRTCDataChannelExtension.kt | 17 ++ .../godot/gen/godot/WebRTCPeerConnection.kt | 4 + .../godot/WebRTCPeerConnectionExtension.kt | 12 + .../kotlin/godot/gen/godot/WebXRInterface.kt | 14 ++ .../src/main/kotlin/godot/gen/godot/Window.kt | 15 ++ .../kotlin/godot/gen/godot/XRController3D.kt | 6 + .../kotlin/godot/gen/godot/XRInterface.kt | 2 + .../godot/gen/godot/XRInterfaceExtension.kt | 32 +++ .../main/kotlin/godot/gen/godot/XRNode3D.kt | 2 + .../godot/gen/godot/XRPositionalTracker.kt | 8 + .../main/kotlin/godot/gen/godot/XRServer.kt | 7 + .../godot/tools/common/constants/Classes.kt | 2 + 173 files changed, 1322 insertions(+), 5 deletions(-) create mode 100644 kt/godot-library/src/main/kotlin/godot/annotation/GodotApiMember.kt diff --git a/harness/tests/scripts/godot/tests/Invocation.gdj b/harness/tests/scripts/godot/tests/Invocation.gdj index 1de7614948..514052f873 100644 --- a/harness/tests/scripts/godot/tests/Invocation.gdj +++ b/harness/tests/scripts/godot/tests/Invocation.gdj @@ -40,6 +40,7 @@ properties = [ nav_meshes_dictionary, nullable_dictionary, color, + rid, packed_byte_array, packed_int32_array, packed_float64_array, diff --git a/harness/tests/scripts/godot/tests/JavaTestClass.gdj b/harness/tests/scripts/godot/tests/JavaTestClass.gdj index 2ac65467a3..8f5e99a539 100644 --- a/harness/tests/scripts/godot/tests/JavaTestClass.gdj +++ b/harness/tests/scripts/godot/tests/JavaTestClass.gdj @@ -30,7 +30,8 @@ properties = [ dictionary ] functions = [ - greeting, + _ready, + greeting, connect_and_trigger_signal, signal_callback ] \ No newline at end of file diff --git a/kt/api-generator/src/main/kotlin/godot/codegen/services/impl/GenerationService.kt b/kt/api-generator/src/main/kotlin/godot/codegen/services/impl/GenerationService.kt index d5169a6fe4..125c31328c 100644 --- a/kt/api-generator/src/main/kotlin/godot/codegen/services/impl/GenerationService.kt +++ b/kt/api-generator/src/main/kotlin/godot/codegen/services/impl/GenerationService.kt @@ -47,6 +47,7 @@ import godot.tools.common.constants.TO_GODOT_NAME_UTIL_FUNCTION import godot.tools.common.constants.CORE_TYPE_HELPER import godot.tools.common.constants.CORE_TYPE_LOCAL_COPY import godot.tools.common.constants.GENERATED_COMMENT +import godot.tools.common.constants.GODOT_API_MEMBER import godot.tools.common.constants.GODOT_BASE_TYPE import godot.tools.common.constants.GODOT_ERROR import godot.tools.common.constants.GodotKotlinJvmTypes @@ -398,6 +399,8 @@ class GenerationService( signalClass.typeName ) .addKdoc(signal) + // add entry generation helper marker to distinguish user signals from api signals + .addAnnotation(GODOT_API_MEMBER) .delegate( "%T", ClassName(godotCorePackage, "Signal" + arguments.size) @@ -578,17 +581,21 @@ class GenerationService( modifiers.add(KModifier.OVERRIDE) } + val generatedFunBuilder = FunSpec + .builder(method.name) + .applyJvmNameIfNecessary(method.name) + // Godot doesn't override its methods, they are either final or meant to be implemented by script or extension. if (method.internal.isVirtual) { modifiers.add(KModifier.OPEN) + + // add entry generation helper marker to find overridden functions to register + generatedFunBuilder.addAnnotation(GODOT_API_MEMBER) } else { modifiers.add(KModifier.FINAL) } - val generatedFunBuilder = FunSpec - .builder(method.name) - .addModifiers(modifiers) - .applyJvmNameIfNecessary(method.name) + generatedFunBuilder.addModifiers(modifiers) val methodTypeName = method.getCastedType() val shouldReturn = method.getTypeClassName().typeName != UNIT diff --git a/kt/godot-library/src/main/kotlin/godot/annotation/GodotApiMember.kt b/kt/godot-library/src/main/kotlin/godot/annotation/GodotApiMember.kt new file mode 100644 index 0000000000..0906a77007 --- /dev/null +++ b/kt/godot-library/src/main/kotlin/godot/annotation/GodotApiMember.kt @@ -0,0 +1,10 @@ +package godot.annotation + +/** + * Only applicable to godot type members generated in the api gen + * + * Here for the entry generation as marker to determine whether to register a signal or function. + */ +@Target(AnnotationTarget.PROPERTY, AnnotationTarget.FUNCTION) +@Retention(AnnotationRetention.RUNTIME) +internal annotation class GodotApiMember diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AStar2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AStar2D.kt index 2470bf86cb..b26bc63ff2 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AStar2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AStar2D.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.PackedInt64Array @@ -46,6 +47,7 @@ public open class AStar2D : RefCounted() { * Called when estimating the cost between a point and the path's ending point. * Note that this function is hidden in the default [AStar2D] class. */ + @GodotApiMember public open fun _estimateCost(fromId: Long, toId: Long): Float { throw NotImplementedError("_estimate_cost is not implemented for AStar2D") } @@ -54,6 +56,7 @@ public open class AStar2D : RefCounted() { * Called when computing the cost between two connected points. * Note that this function is hidden in the default [AStar2D] class. */ + @GodotApiMember public open fun _computeCost(fromId: Long, toId: Long): Float { throw NotImplementedError("_compute_cost is not implemented for AStar2D") } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AStar3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AStar3D.kt index ddb8ecd4a0..fe85c258c1 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AStar3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AStar3D.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.PackedInt64Array @@ -91,6 +92,7 @@ public open class AStar3D : RefCounted() { * Called when estimating the cost between a point and the path's ending point. * Note that this function is hidden in the default [AStar3D] class. */ + @GodotApiMember public open fun _estimateCost(fromId: Long, toId: Long): Float { throw NotImplementedError("_estimate_cost is not implemented for AStar3D") } @@ -99,6 +101,7 @@ public open class AStar3D : RefCounted() { * Called when computing the cost between two connected points. * Note that this function is hidden in the default [AStar3D] class. */ + @GodotApiMember public open fun _computeCost(fromId: Long, toId: Long): Float { throw NotImplementedError("_compute_cost is not implemented for AStar3D") } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AStarGrid2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AStarGrid2D.kt index 70ba97bcb2..73f075a515 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AStarGrid2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AStarGrid2D.kt @@ -8,6 +8,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.PackedVector2Array @@ -294,6 +295,7 @@ public open class AStarGrid2D : RefCounted() { * Called when estimating the cost between a point and the path's ending point. * Note that this function is hidden in the default [AStarGrid2D] class. */ + @GodotApiMember public open fun _estimateCost(fromId: Vector2i, toId: Vector2i): Float { throw NotImplementedError("_estimate_cost is not implemented for AStarGrid2D") } @@ -302,6 +304,7 @@ public open class AStarGrid2D : RefCounted() { * Called when computing the cost between two connected points. * Note that this function is hidden in the default [AStarGrid2D] class. */ + @GodotApiMember public open fun _computeCost(fromId: Vector2i, toId: Vector2i): Float { throw NotImplementedError("_compute_cost is not implemented for AStarGrid2D") } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AcceptDialog.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AcceptDialog.kt index 7472c6f5c0..ccf52587d9 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AcceptDialog.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AcceptDialog.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Signal0 @@ -35,16 +36,19 @@ public open class AcceptDialog : Window() { /** * Emitted when the dialog is accepted, i.e. the OK button is pressed. */ + @GodotApiMember public val confirmed: Signal0 by Signal0 /** * Emitted when the dialog is closed or the button created with [addCancelButton] is pressed. */ + @GodotApiMember public val canceled: Signal0 by Signal0 /** * Emitted when a custom button is pressed. See [addButton]. */ + @GodotApiMember public val customAction: Signal1 by Signal1 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimatedSprite2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimatedSprite2D.kt index c8c7d1fede..5d60a05fd4 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimatedSprite2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimatedSprite2D.kt @@ -8,6 +8,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Signal0 @@ -45,21 +46,25 @@ public open class AnimatedSprite2D : Node2D() { /** * Emitted when [spriteFrames] changes. */ + @GodotApiMember public val spriteFramesChanged: Signal0 by Signal0 /** * Emitted when [animation] changes. */ + @GodotApiMember public val animationChanged: Signal0 by Signal0 /** * Emitted when [frame] changes. */ + @GodotApiMember public val frameChanged: Signal0 by Signal0 /** * Emitted when the animation loops. */ + @GodotApiMember public val animationLooped: Signal0 by Signal0 /** @@ -67,6 +72,7 @@ public open class AnimatedSprite2D : Node2D() { * animation finishes, it pauses the playback. * **Note:** This signal is not emitted if an animation is looping. */ + @GodotApiMember public val animationFinished: Signal0 by Signal0 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimatedSprite3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimatedSprite3D.kt index 5456dc1359..661ed01939 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimatedSprite3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimatedSprite3D.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Signal0 @@ -42,21 +43,25 @@ public open class AnimatedSprite3D : SpriteBase3D() { /** * Emitted when [spriteFrames] changes. */ + @GodotApiMember public val spriteFramesChanged: Signal0 by Signal0 /** * Emitted when [animation] changes. */ + @GodotApiMember public val animationChanged: Signal0 by Signal0 /** * Emitted when [frame] changes. */ + @GodotApiMember public val frameChanged: Signal0 by Signal0 /** * Emitted when the animation loops. */ + @GodotApiMember public val animationLooped: Signal0 by Signal0 /** @@ -64,6 +69,7 @@ public open class AnimatedSprite3D : SpriteBase3D() { * animation finishes, it pauses the playback. * **Note:** This signal is not emitted if an animation is looping. */ + @GodotApiMember public val animationFinished: Signal0 by Signal0 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationLibrary.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationLibrary.kt index cce4a3dfd7..94aa10a7ba 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationLibrary.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationLibrary.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Signal1 @@ -35,16 +36,19 @@ public open class AnimationLibrary : Resource() { /** * Emitted when an [Animation] is added, under the key [name]. */ + @GodotApiMember public val animationAdded: Signal1 by Signal1 /** * Emitted when an [Animation] stored with the key [name] is removed. */ + @GodotApiMember public val animationRemoved: Signal1 by Signal1 /** * Emitted when the key for an [Animation] is changed, from [name] to [toName]. */ + @GodotApiMember public val animationRenamed: Signal2 by Signal2 /** @@ -52,6 +56,7 @@ public open class AnimationLibrary : Resource() { * changed paths. [name] is the key of the animation that was changed. * See also [signal Resource.changed], which this acts as a relay for. */ + @GodotApiMember public val animationChanged: Signal1 by Signal1 public override fun new(scriptIndex: Int): Unit { diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationMixer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationMixer.kt index c0025d8d6b..e8685ee174 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationMixer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationMixer.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.NodePath @@ -51,38 +52,45 @@ public open class AnimationMixer internal constructor() : Node() { /** * Notifies when an animation list is changed. */ + @GodotApiMember public val animationListChanged: Signal0 by Signal0 /** * Notifies when the animation libraries have changed. */ + @GodotApiMember public val animationLibrariesUpdated: Signal0 by Signal0 /** * Notifies when an animation finished playing. * **Note:** This signal is not emitted if an animation is looping. */ + @GodotApiMember public val animationFinished: Signal1 by Signal1 /** * Notifies when an animation starts playing. */ + @GodotApiMember public val animationStarted: Signal1 by Signal1 /** * Notifies when the caches have been cleared, either automatically, or manually via * [clearCaches]. */ + @GodotApiMember public val cachesCleared: Signal0 by Signal0 /** * Notifies when the blending result related have been applied to the target objects. */ + @GodotApiMember public val mixerApplied: Signal0 by Signal0 /** * Notifies when the property related process have been updated. */ + @GodotApiMember public val mixerUpdated: Signal0 by Signal0 /** @@ -224,6 +232,7 @@ public open class AnimationMixer internal constructor() : Node() { /** * A virtual function for processing after getting a key during playback. */ + @GodotApiMember public open fun _postProcessKeyValue( animation: Animation?, track: Int, diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNode.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNode.kt index 7b5b3ed02c..4128badc7a 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNode.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNode.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Dictionary @@ -62,6 +63,7 @@ public open class AnimationNode : Resource() { * [AnimationNodeBlendSpace1D], [AnimationNodeBlendSpace2D], [AnimationNodeStateMachine], * [AnimationNodeBlendTree] and [AnimationNodeTransition]. */ + @GodotApiMember public val treeChanged: Signal0 by Signal0 /** @@ -70,6 +72,7 @@ public open class AnimationNode : Resource() { * [AnimationNodeBlendSpace1D], [AnimationNodeBlendSpace2D], [AnimationNodeStateMachine], and * [AnimationNodeBlendTree]. */ + @GodotApiMember public val animationNodeRenamed: Signal3 by Signal3 /** @@ -78,6 +81,7 @@ public open class AnimationNode : Resource() { * [AnimationNodeBlendSpace1D], [AnimationNodeBlendSpace2D], [AnimationNodeStateMachine], and * [AnimationNodeBlendTree]. */ + @GodotApiMember public val animationNodeRemoved: Signal2 by Signal2 /** @@ -99,6 +103,7 @@ public open class AnimationNode : Resource() { * When inheriting from [AnimationRootNode], implement this virtual method to return all child * animation nodes in order as a `name: node` dictionary. */ + @GodotApiMember public open fun _getChildNodes(): Dictionary { throw NotImplementedError("_get_child_nodes is not implemented for AnimationNode") } @@ -109,6 +114,7 @@ public open class AnimationNode : Resource() { * nodes, given a resource can be reused in multiple trees. Format is similar to * [Object.getPropertyList]. */ + @GodotApiMember public open fun _getParameterList(): VariantArray { throw NotImplementedError("_get_parameter_list is not implemented for AnimationNode") } @@ -117,6 +123,7 @@ public open class AnimationNode : Resource() { * When inheriting from [AnimationRootNode], implement this virtual method to return a child * animation node by its [name]. */ + @GodotApiMember public open fun _getChildByName(name: StringName): AnimationNode? { throw NotImplementedError("_get_child_by_name is not implemented for AnimationNode") } @@ -126,6 +133,7 @@ public open class AnimationNode : Resource() { * value of a [parameter]. Parameters are custom local memory used for your animation nodes, given a * resource can be reused in multiple trees. */ + @GodotApiMember public open fun _getParameterDefaultValue(parameter: StringName): Any? { throw NotImplementedError("_get_parameter_default_value is not implemented for AnimationNode") } @@ -135,6 +143,7 @@ public open class AnimationNode : Resource() { * [parameter] is read-only. Parameters are custom local memory used for your animation nodes, given * a resource can be reused in multiple trees. */ + @GodotApiMember public open fun _isParameterReadOnly(parameter: StringName): Boolean { throw NotImplementedError("_is_parameter_read_only is not implemented for AnimationNode") } @@ -147,6 +156,7 @@ public open class AnimationNode : Resource() { * [getParameter] and [setParameter] to modify local memory. * This function should return the delta. */ + @GodotApiMember public open fun _process( time: Double, seek: Boolean, @@ -160,6 +170,7 @@ public open class AnimationNode : Resource() { * When inheriting from [AnimationRootNode], implement this virtual method to override the text * caption for this animation node. */ + @GodotApiMember public open fun _getCaption(): String { throw NotImplementedError("_get_caption is not implemented for AnimationNode") } @@ -168,6 +179,7 @@ public open class AnimationNode : Resource() { * When inheriting from [AnimationRootNode], implement this virtual method to return whether the * blend tree editor should display filter editing on this animation node. */ + @GodotApiMember public open fun _hasFilter(): Boolean { throw NotImplementedError("_has_filter is not implemented for AnimationNode") } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeBlendSpace2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeBlendSpace2D.kt index 027a2bba0c..57e85b52f0 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeBlendSpace2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeBlendSpace2D.kt @@ -8,6 +8,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Signal0 @@ -45,6 +46,7 @@ public open class AnimationNodeBlendSpace2D : AnimationRootNode() { * Emitted every time the blend space's triangles are created, removed, or when one of their * vertices changes position. */ + @GodotApiMember public val trianglesUpdated: Signal0 by Signal0 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeBlendTree.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeBlendTree.kt index 090c8cb460..ad336cb7ee 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeBlendTree.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeBlendTree.kt @@ -8,6 +8,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Signal1 @@ -40,6 +41,7 @@ public open class AnimationNodeBlendTree : AnimationRootNode() { /** * Emitted when the input port information is changed. */ + @GodotApiMember public val nodeChanged: Signal1 by Signal1 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeStateMachineTransition.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeStateMachineTransition.kt index 78af9a4d45..7a1f955fd1 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeStateMachineTransition.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeStateMachineTransition.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Signal0 @@ -39,6 +40,7 @@ public open class AnimationNodeStateMachineTransition : Resource() { /** * Emitted when [advanceCondition] is changed. */ + @GodotApiMember public val advanceConditionChanged: Signal0 by Signal0 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationPlayer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationPlayer.kt index d68082fbf2..5ea7646155 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationPlayer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationPlayer.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.NodePath @@ -51,6 +52,7 @@ public open class AnimationPlayer : AnimationMixer() { /** * Emitted when [currentAnimation] changes. */ + @GodotApiMember public val currentAnimationChanged: Signal1 by Signal1 /** @@ -59,6 +61,7 @@ public open class AnimationPlayer : AnimationMixer() { * **Note:** The signal is not emitted when the animation is changed via [AnimationPlayer.play] or * by an [AnimationTree]. */ + @GodotApiMember public val animationChanged: Signal2 by Signal2 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationTree.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationTree.kt index 1ec4417a78..8c17d0ca62 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationTree.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationTree.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.NodePath @@ -34,6 +35,7 @@ public open class AnimationTree : AnimationMixer() { /** * Emitted when the [animPlayer] is changed. */ + @GodotApiMember public val animationPlayerChanged: Signal0 by Signal0 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Area2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Area2D.kt index a30f826963..0c2d833c07 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Area2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Area2D.kt @@ -8,6 +8,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.RID @@ -65,6 +66,7 @@ public open class Area2D : CollisionObject2D() { * var local_shape_node = shape_owner_get_owner(local_shape_owner) * ``` */ + @GodotApiMember public val bodyShapeEntered: Signal4 by Signal4 /** @@ -73,6 +75,7 @@ public open class Area2D : CollisionObject2D() { * configured. Requires [monitoring] to be set to `true`. * See also [signal body_shape_entered]. */ + @GodotApiMember public val bodyShapeExited: Signal4 by Signal4 /** @@ -80,6 +83,7 @@ public open class Area2D : CollisionObject2D() { * [TileMap]. [TileMap]s are detected if their [TileSet] has collision shapes configured. Requires * [monitoring] to be set to `true`. */ + @GodotApiMember public val bodyEntered: Signal1 by Signal1 /** @@ -87,6 +91,7 @@ public open class Area2D : CollisionObject2D() { * [TileMap]. [TileMap]s are detected if their [TileSet] has collision shapes configured. Requires * [monitoring] to be set to `true`. */ + @GodotApiMember public val bodyExited: Signal1 by Signal1 /** @@ -106,6 +111,7 @@ public open class Area2D : CollisionObject2D() { * var local_shape_node = shape_owner_get_owner(local_shape_owner) * ``` */ + @GodotApiMember public val areaShapeEntered: Signal4 by Signal4 /** @@ -113,16 +119,19 @@ public open class Area2D : CollisionObject2D() { * [monitoring] to be set to `true`. * See also [signal area_shape_entered]. */ + @GodotApiMember public val areaShapeExited: Signal4 by Signal4 /** * Emitted when the received [area] enters this area. Requires [monitoring] to be set to `true`. */ + @GodotApiMember public val areaEntered: Signal1 by Signal1 /** * Emitted when the received [area] exits this area. Requires [monitoring] to be set to `true`. */ + @GodotApiMember public val areaExited: Signal1 by Signal1 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Area3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Area3D.kt index ce3eb84fb5..4b19e74e55 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Area3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Area3D.kt @@ -8,6 +8,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.NodePath @@ -73,6 +74,7 @@ public open class Area3D : CollisionObject3D() { * var local_shape_node = shape_owner_get_owner(local_shape_owner) * ``` */ + @GodotApiMember public val bodyShapeEntered: Signal4 by Signal4 /** @@ -81,6 +83,7 @@ public open class Area3D : CollisionObject3D() { * shapes configured. Requires [monitoring] to be set to `true`. * See also [signal body_shape_entered]. */ + @GodotApiMember public val bodyShapeExited: Signal4 by Signal4 /** @@ -88,6 +91,7 @@ public open class Area3D : CollisionObject3D() { * [GridMap]. [GridMap]s are detected if their [MeshLibrary] has collision shapes configured. * Requires [monitoring] to be set to `true`. */ + @GodotApiMember public val bodyEntered: Signal1 by Signal1 /** @@ -95,6 +99,7 @@ public open class Area3D : CollisionObject3D() { * [GridMap]. [GridMap]s are detected if their [MeshLibrary] has collision shapes configured. * Requires [monitoring] to be set to `true`. */ + @GodotApiMember public val bodyExited: Signal1 by Signal1 /** @@ -114,6 +119,7 @@ public open class Area3D : CollisionObject3D() { * var local_shape_node = shape_owner_get_owner(local_shape_owner) * ``` */ + @GodotApiMember public val areaShapeEntered: Signal4 by Signal4 /** @@ -121,16 +127,19 @@ public open class Area3D : CollisionObject3D() { * [monitoring] to be set to `true`. * See also [signal area_shape_entered]. */ + @GodotApiMember public val areaShapeExited: Signal4 by Signal4 /** * Emitted when the received [area] enters this area. Requires [monitoring] to be set to `true`. */ + @GodotApiMember public val areaEntered: Signal1 by Signal1 /** * Emitted when the received [area] exits this area. Requires [monitoring] to be set to `true`. */ + @GodotApiMember public val areaExited: Signal1 by Signal1 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffect.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffect.kt index a6254a9773..1844e3a2f7 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffect.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffect.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import kotlin.Int import kotlin.NotImplementedError @@ -45,6 +46,7 @@ public open class AudioEffect : Resource() { * instance. Depending on the implementation this allows the effect instance to listen for changes at * run-time and be modified accordingly. */ + @GodotApiMember public open fun _instantiate(): AudioEffectInstance? { throw NotImplementedError("_instantiate is not implemented for AudioEffect") } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectInstance.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectInstance.kt index eea560fc5f..6a490636b6 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectInstance.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectInstance.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import kotlin.Boolean import kotlin.Int @@ -30,6 +31,7 @@ public open class AudioEffectInstance : RefCounted() { * Should return `true` to force the [AudioServer] to always call [_process], even if the bus has * been muted or cannot otherwise be heard. */ + @GodotApiMember public open fun _processSilence(): Boolean { throw NotImplementedError("_process_silence is not implemented for AudioEffectInstance") } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioServer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioServer.kt index e698e9e84c..86b816d28f 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioServer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioServer.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.PackedStringArray @@ -42,12 +43,14 @@ public object AudioServer : Object() { /** * Emitted when an audio bus is added, deleted, or moved. */ + @GodotApiMember @JvmStatic public val busLayoutChanged: Signal0 by Signal0 /** * Emitted when the audio bus at [busIndex] is renamed from [oldName] to [newName]. */ + @GodotApiMember @JvmStatic public val busRenamed: Signal3 by Signal3 diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStream.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStream.kt index b65ecbb8f9..7b3b31f79a 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStream.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStream.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Dictionary @@ -34,6 +35,7 @@ public open class AudioStream : Resource() { /** * Signal to be emitted to notify when the parameter list changed. */ + @GodotApiMember public val parameterListChanged: Signal0 by Signal0 public override fun new(scriptIndex: Int): Unit { @@ -45,6 +47,7 @@ public open class AudioStream : Resource() { * a new [AudioStreamPlayback] created when the stream is played (such as by an * [AudioStreamPlayer]).. */ + @GodotApiMember public open fun _instantiatePlayback(): AudioStreamPlayback? { throw NotImplementedError("_instantiate_playback is not implemented for AudioStream") } @@ -52,6 +55,7 @@ public open class AudioStream : Resource() { /** * Override this method to customize the name assigned to this audio stream. Unused by the engine. */ + @GodotApiMember public open fun _getStreamName(): String { throw NotImplementedError("_get_stream_name is not implemented for AudioStream") } @@ -60,6 +64,7 @@ public open class AudioStream : Resource() { * Override this method to customize the returned value of [getLength]. Should return the length * of this audio stream, in seconds. */ + @GodotApiMember public open fun _getLength(): Double { throw NotImplementedError("_get_length is not implemented for AudioStream") } @@ -68,6 +73,7 @@ public open class AudioStream : Resource() { * Override this method to customize the returned value of [isMonophonic]. Should return `true` if * this audio stream only supports one channel. */ + @GodotApiMember public open fun _isMonophonic(): Boolean { throw NotImplementedError("_is_monophonic is not implemented for AudioStream") } @@ -78,6 +84,7 @@ public open class AudioStream : Resource() { * Ideally, the returned value should be based off the stream's sample rate * ([AudioStreamWAV.mixRate], for example). */ + @GodotApiMember public open fun _getBpm(): Double { throw NotImplementedError("_get_bpm is not implemented for AudioStream") } @@ -88,6 +95,7 @@ public open class AudioStream : Resource() { * Ideally, the returned value should be based off the stream's sample rate * ([AudioStreamWAV.mixRate], for example). */ + @GodotApiMember public open fun _getBeatCount(): Int { throw NotImplementedError("_get_beat_count is not implemented for AudioStream") } @@ -97,6 +105,7 @@ public open class AudioStream : Resource() { * property info description format (see [Object.getPropertyList]). Additionally, the default value * for this parameter must be added tho each dictionary in "default_value" field. */ + @GodotApiMember public open fun _getParameterList(): VariantArray> { throw NotImplementedError("_get_parameter_list is not implemented for AudioStream") } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamPlayback.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamPlayback.kt index ada5f67360..232bd0ca80 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamPlayback.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamPlayback.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.StringName @@ -35,6 +36,7 @@ public open class AudioStreamPlayback : RefCounted() { * Override this method to customize what happens when the playback starts at the given position, * such as by calling [AudioStreamPlayer.play]. */ + @GodotApiMember public open fun _start(fromPos: Double): Unit { } @@ -42,6 +44,7 @@ public open class AudioStreamPlayback : RefCounted() { * Override this method to customize what happens when the playback is stopped, such as by calling * [AudioStreamPlayer.stop]. */ + @GodotApiMember public open fun _stop(): Unit { } @@ -49,6 +52,7 @@ public open class AudioStreamPlayback : RefCounted() { * Overridable method. Should return `true` if this playback is active and playing its audio * stream. */ + @GodotApiMember public open fun _isPlaying(): Boolean { throw NotImplementedError("_is_playing is not implemented for AudioStreamPlayback") } @@ -57,6 +61,7 @@ public open class AudioStreamPlayback : RefCounted() { * Overridable method. Should return how many times this audio stream has looped. Most built-in * playbacks always return `0`. */ + @GodotApiMember public open fun _getLoopCount(): Int { throw NotImplementedError("_get_loop_count is not implemented for AudioStreamPlayback") } @@ -64,6 +69,7 @@ public open class AudioStreamPlayback : RefCounted() { /** * Overridable method. Should return the current progress along the audio stream, in seconds. */ + @GodotApiMember public open fun _getPlaybackPosition(): Double { throw NotImplementedError("_get_playback_position is not implemented for AudioStreamPlayback") } @@ -72,6 +78,7 @@ public open class AudioStreamPlayback : RefCounted() { * Override this method to customize what happens when seeking this audio stream at the given * [position], such as by calling [AudioStreamPlayer.seek]. */ + @GodotApiMember public open fun _seek(position: Double): Unit { } @@ -80,18 +87,21 @@ public open class AudioStreamPlayback : RefCounted() { * [AudioServer.setEnableTaggingUsedAudioStreams] has been set to `true`. Editor plugins may use this * method to "tag" the current position along the audio stream and display it in a preview. */ + @GodotApiMember public open fun _tagUsedStreams(): Unit { } /** * Set the current value of a playback parameter by name (see [AudioStream.GetParameterList]). */ + @GodotApiMember public open fun _setParameter(name: StringName, `value`: Any?): Unit { } /** * Return the current value of a playback parameter by name (see [AudioStream.GetParameterList]). */ + @GodotApiMember public open fun _getParameter(name: StringName): Any? { throw NotImplementedError("_get_parameter is not implemented for AudioStreamPlayback") } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamPlaybackResampled.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamPlaybackResampled.kt index 2e9f0468f3..ec950e5987 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamPlaybackResampled.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamPlaybackResampled.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.TypeManager @@ -23,6 +24,7 @@ public open class AudioStreamPlaybackResampled : AudioStreamPlayback() { callConstructor(ENGINECLASS_AUDIOSTREAMPLAYBACKRESAMPLED, scriptIndex) } + @GodotApiMember public open fun _getStreamSamplingRate(): Float { throw NotImplementedError("_get_stream_sampling_rate is not implemented for AudioStreamPlaybackResampled") } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamPlayer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamPlayer.kt index 321a7ac01e..3ef6bdff2a 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamPlayer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamPlayer.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Signal0 @@ -42,6 +43,7 @@ public open class AudioStreamPlayer : Node() { * Emitted when a sound finishes playing without interruptions. This signal is *not* emitted when * calling [stop], or when exiting the tree while sounds are playing. */ + @GodotApiMember public val finished: Signal0 by Signal0 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamPlayer2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamPlayer2D.kt index a44a59360d..75412790f6 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamPlayer2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamPlayer2D.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Signal0 @@ -42,6 +43,7 @@ public open class AudioStreamPlayer2D : Node2D() { /** * Emitted when the audio stops playing. */ + @GodotApiMember public val finished: Signal0 by Signal0 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamPlayer3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamPlayer3D.kt index 3a30d87ea8..63ef3fd248 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamPlayer3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamPlayer3D.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Signal0 @@ -45,6 +46,7 @@ public open class AudioStreamPlayer3D : Node3D() { /** * Emitted when the audio stops playing. */ + @GodotApiMember public val finished: Signal0 by Signal0 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/BaseButton.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/BaseButton.kt index e876aa73a2..0c58d32f27 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/BaseButton.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/BaseButton.kt @@ -7,6 +7,7 @@ package godot import godot.MouseButtonMaskValue +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Signal0 @@ -35,22 +36,26 @@ public open class BaseButton : Control() { * If you need to know the button's pressed state (and [toggleMode] is active), use [signal * toggled] instead. */ + @GodotApiMember public val pressed: Signal0 by Signal0 /** * Emitted when the button stops being held down. */ + @GodotApiMember public val buttonUp: Signal0 by Signal0 /** * Emitted when the button starts being held down. */ + @GodotApiMember public val buttonDown: Signal0 by Signal0 /** * Emitted when the button was just toggled between pressed and normal states (only if * [toggleMode] is active). The new state is contained in the [toggledOn] argument. */ + @GodotApiMember public val toggled: Signal1 by Signal1 /** @@ -182,12 +187,14 @@ public open class BaseButton : Control() { * Called when the button is pressed. If you need to know the button's pressed state (and * [toggleMode] is active), use [_toggled] instead. */ + @GodotApiMember public open fun _pressed(): Unit { } /** * Called when the button is toggled (only if [toggleMode] is active). */ + @GodotApiMember public open fun _toggled(toggledOn: Boolean): Unit { } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/BoneMap.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/BoneMap.kt index de7d18ef6c..f2714c5382 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/BoneMap.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/BoneMap.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Signal0 @@ -32,12 +33,14 @@ public open class BoneMap : Resource() { * This signal is emitted when change the key value in the [BoneMap]. This is used to validate * mapping and to update [BoneMap] editor. */ + @GodotApiMember public val boneMapUpdated: Signal0 by Signal0 /** * This signal is emitted when change the value in profile or change the reference of profile. * This is used to update key names in the [BoneMap] and to redraw the [BoneMap] editor. */ + @GodotApiMember public val profileUpdated: Signal0 by Signal0 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ButtonGroup.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ButtonGroup.kt index 9eabd66fad..247a7d71b0 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ButtonGroup.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ButtonGroup.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Signal1 @@ -33,6 +34,7 @@ public open class ButtonGroup : Resource() { /** * Emitted when one of the buttons of the group is pressed. */ + @GodotApiMember public val pressed: Signal1 by Signal1 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CPUParticles2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CPUParticles2D.kt index a9923cf933..5638aa96c9 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CPUParticles2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CPUParticles2D.kt @@ -8,6 +8,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Color @@ -46,6 +47,7 @@ public open class CPUParticles2D : Node2D() { * Emitted when all active particles have finished processing. When [oneShot] is disabled, * particles will process continuously, so this is never emitted. */ + @GodotApiMember public val finished: Signal0 by Signal0 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CPUParticles3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CPUParticles3D.kt index ccdf211e68..7844aadb20 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CPUParticles3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CPUParticles3D.kt @@ -8,6 +8,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.AABB @@ -47,6 +48,7 @@ public open class CPUParticles3D : GeometryInstance3D() { * Emitted when all active particles have finished processing. When [oneShot] is disabled, * particles will process continuously, so this is never emitted. */ + @GodotApiMember public val finished: Signal0 by Signal0 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CameraServer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CameraServer.kt index 3c61e708cf..6132f238b7 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CameraServer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CameraServer.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Signal1 @@ -36,12 +37,14 @@ public object CameraServer : Object() { /** * Emitted when a [CameraFeed] is added (e.g. a webcam is plugged in). */ + @GodotApiMember @JvmStatic public val cameraFeedAdded: Signal1 by Signal1 /** * Emitted when a [CameraFeed] is removed (e.g. a webcam is unplugged). */ + @GodotApiMember @JvmStatic public val cameraFeedRemoved: Signal1 by Signal1 diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CanvasItem.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CanvasItem.kt index dd6e471b94..312177f6f7 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CanvasItem.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CanvasItem.kt @@ -8,6 +8,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Color @@ -72,22 +73,26 @@ public open class CanvasItem internal constructor() : Node() { * notification, and *before* [_draw] is called. * **Note:** Deferred connections do not allow drawing through the `draw_*` methods. */ + @GodotApiMember public val draw: Signal0 by Signal0 /** * Emitted when the visibility (hidden/visible) changes. */ + @GodotApiMember public val visibilityChanged: Signal0 by Signal0 /** * Emitted when becoming hidden. */ + @GodotApiMember public val hidden: Signal0 by Signal0 /** * Emitted when the item's [Rect2] boundaries (position or size) have changed, or when an action * is taking place that may have impacted these boundaries (e.g. changing [Sprite2D.texture]). */ + @GodotApiMember public val itemRectChanged: Signal0 by Signal0 /** @@ -345,6 +350,7 @@ public open class CanvasItem internal constructor() : Node() { * manually or by the engine). * Corresponds to the [NOTIFICATION_DRAW] notification in [Object.Notification]. */ + @GodotApiMember public open fun _draw(): Unit { } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CanvasLayer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CanvasLayer.kt index 3cabe84f93..5357b3839d 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CanvasLayer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CanvasLayer.kt @@ -8,6 +8,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.RID @@ -54,6 +55,7 @@ public open class CanvasLayer : Node() { /** * Emitted when visibility of the layer is changed. See [visible]. */ + @GodotApiMember public val visibilityChanged: Signal0 by Signal0 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CodeEdit.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CodeEdit.kt index 9a354769c8..246fabf585 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CodeEdit.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CodeEdit.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Color @@ -53,22 +54,26 @@ public open class CodeEdit : TextEdit() { * Emitted when a breakpoint is added or removed from a line. If the line is moved via backspace a * removed is emitted at the old line. */ + @GodotApiMember public val breakpointToggled: Signal1 by Signal1 /** * Emitted when the user requests code completion. */ + @GodotApiMember public val codeCompletionRequested: Signal0 by Signal0 /** * Emitted when the user has clicked on a valid symbol. */ + @GodotApiMember public val symbolLookup: Signal3 by Signal3 /** * Emitted when the user hovers over a symbol. The symbol should be validated and responded to, by * calling [setSymbolLookupWordAsValid]. */ + @GodotApiMember public val symbolValidate: Signal1 by Signal1 /** @@ -306,6 +311,7 @@ public open class CodeEdit : TextEdit() { * Override this method to define how the selected entry should be inserted. If [replace] is * `true`, any existing text should be replaced. */ + @GodotApiMember public open fun _confirmCodeCompletion(replace: Boolean): Unit { } @@ -313,6 +319,7 @@ public open class CodeEdit : TextEdit() { * Override this method to define what happens when the user requests code completion. If [force] * is `true`, any checks should be bypassed. */ + @GodotApiMember public open fun _requestCodeCompletion(force: Boolean): Unit { } @@ -321,6 +328,7 @@ public open class CodeEdit : TextEdit() { * Both [candidates] and the return is a [Array] of [Dictionary], see [getCodeCompletionOption] * for [Dictionary] content. */ + @GodotApiMember public open fun _filterCodeCompletionCandidates(candidates: VariantArray>): VariantArray> { throw NotImplementedError("_filter_code_completion_candidates is not implemented for CodeEdit") diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CollisionObject2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CollisionObject2D.kt index a2e8fcb1d0..8ed0887d51 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CollisionObject2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CollisionObject2D.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.PackedInt32Array @@ -47,6 +48,7 @@ public open class CollisionObject2D internal constructor() : Node2D() { * Emitted when an input event occurs. Requires [inputPickable] to be `true` and at least one * [collisionLayer] bit to be set. See [_inputEvent] for details. */ + @GodotApiMember public val inputEvent: Signal3 by Signal3 /** @@ -58,6 +60,7 @@ public open class CollisionObject2D internal constructor() : Node2D() { * This signal may also not be emitted if another [CollisionObject2D] is overlapping the * [CollisionObject2D] in question. */ + @GodotApiMember public val mouseEntered: Signal0 by Signal0 /** @@ -69,6 +72,7 @@ public open class CollisionObject2D internal constructor() : Node2D() { * This signal may also not be emitted if another [CollisionObject2D] is overlapping the * [CollisionObject2D] in question. */ + @GodotApiMember public val mouseExited: Signal0 by Signal0 /** @@ -76,6 +80,7 @@ public open class CollisionObject2D internal constructor() : Node2D() { * another. [shapeIdx] is the child index of the newly entered [Shape2D]. Requires [inputPickable] to * be `true` and at least one [collisionLayer] bit to be set. */ + @GodotApiMember public val mouseShapeEntered: Signal1 by Signal1 /** @@ -83,6 +88,7 @@ public open class CollisionObject2D internal constructor() : Node2D() { * of the exited [Shape2D]. Requires [inputPickable] to be `true` and at least one [collisionLayer] * bit to be set. */ + @GodotApiMember public val mouseShapeExited: Signal1 by Signal1 /** @@ -165,6 +171,7 @@ public open class CollisionObject2D internal constructor() : Node2D() { * **Note:** [_inputEvent] requires [inputPickable] to be `true` and at least one [collisionLayer] * bit to be set. */ + @GodotApiMember public open fun _inputEvent( viewport: Viewport?, event: InputEvent?, @@ -177,6 +184,7 @@ public open class CollisionObject2D internal constructor() : Node2D() { * be `true` and at least one [collisionLayer] bit to be set. Note that moving between different * shapes within a single [CollisionObject2D] won't cause this function to be called. */ + @GodotApiMember public open fun _mouseEnter(): Unit { } @@ -185,6 +193,7 @@ public open class CollisionObject2D internal constructor() : Node2D() { * `true` and at least one [collisionLayer] bit to be set. Note that moving between different shapes * within a single [CollisionObject2D] won't cause this function to be called. */ + @GodotApiMember public open fun _mouseExit(): Unit { } @@ -193,6 +202,7 @@ public open class CollisionObject2D internal constructor() : Node2D() { * another. [shapeIdx] is the child index of the newly entered [Shape2D]. Requires [inputPickable] to * be `true` and at least one [collisionLayer] bit to be called. */ + @GodotApiMember public open fun _mouseShapeEnter(shapeIdx: Int): Unit { } @@ -201,6 +211,7 @@ public open class CollisionObject2D internal constructor() : Node2D() { * of the exited [Shape2D]. Requires [inputPickable] to be `true` and at least one [collisionLayer] * bit to be called. */ + @GodotApiMember public open fun _mouseShapeExit(shapeIdx: Int): Unit { } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CollisionObject3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CollisionObject3D.kt index 92ffb82577..9e5bd53e81 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CollisionObject3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CollisionObject3D.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.PackedInt32Array @@ -47,6 +48,7 @@ public open class CollisionObject3D internal constructor() : Node3D() { * world space of the mouse pointer on the surface of the shape with index [shapeIdx] and [normal] is * the normal vector of the surface at that point. */ + @GodotApiMember public val inputEvent: Signal5 by Signal5 /** @@ -57,6 +59,7 @@ public open class CollisionObject3D internal constructor() : Node3D() { * This signal may also not be emitted if another [CollisionObject3D] is overlapping the * [CollisionObject3D] in question. */ + @GodotApiMember public val mouseEntered: Signal0 by Signal0 /** @@ -67,6 +70,7 @@ public open class CollisionObject3D internal constructor() : Node3D() { * This signal may also not be emitted if another [CollisionObject3D] is overlapping the * [CollisionObject3D] in question. */ + @GodotApiMember public val mouseExited: Signal0 by Signal0 /** @@ -162,6 +166,7 @@ public open class CollisionObject3D internal constructor() : Node3D() { * **Note:** [_inputEvent] requires [inputRayPickable] to be `true` and at least one * [collisionLayer] bit to be set. */ + @GodotApiMember public open fun _inputEvent( camera: Camera3D?, event: InputEvent?, @@ -176,6 +181,7 @@ public open class CollisionObject3D internal constructor() : Node3D() { * to be `true` and at least one [collisionLayer] bit to be set. Note that moving between different * shapes within a single [CollisionObject3D] won't cause this function to be called. */ + @GodotApiMember public open fun _mouseEnter(): Unit { } @@ -184,6 +190,7 @@ public open class CollisionObject3D internal constructor() : Node3D() { * `true` and at least one [collisionLayer] bit to be set. Note that moving between different shapes * within a single [CollisionObject3D] won't cause this function to be called. */ + @GodotApiMember public open fun _mouseExit(): Unit { } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ColorPicker.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ColorPicker.kt index bc0865d058..b0456c4b05 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ColorPicker.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ColorPicker.kt @@ -8,6 +8,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Color @@ -38,16 +39,19 @@ public open class ColorPicker : VBoxContainer() { /** * Emitted when the color is changed. */ + @GodotApiMember public val colorChanged: Signal1 by Signal1 /** * Emitted when a preset is added. */ + @GodotApiMember public val presetAdded: Signal1 by Signal1 /** * Emitted when a preset is removed. */ + @GodotApiMember public val presetRemoved: Signal1 by Signal1 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ColorPickerButton.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ColorPickerButton.kt index 8e9d5c0cd7..bcdf28b31b 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ColorPickerButton.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ColorPickerButton.kt @@ -8,6 +8,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Color @@ -38,16 +39,19 @@ public open class ColorPickerButton : Button() { /** * Emitted when the color changes. */ + @GodotApiMember public val colorChanged: Signal1 by Signal1 /** * Emitted when the [ColorPicker] is closed. */ + @GodotApiMember public val popupClosed: Signal0 by Signal0 /** * Emitted when the [ColorPicker] is created (the button is pressed for the first time). */ + @GodotApiMember public val pickerCreated: Signal0 by Signal0 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CompositorEffect.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CompositorEffect.kt index 2ed4311048..a9a74ed2e6 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CompositorEffect.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CompositorEffect.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.TypeManager @@ -141,6 +142,7 @@ public open class CompositorEffect : Resource() { * match the effect callback type you've specified in [effectCallbackType]. [renderData] provides * access to the rendering state, it is only valid during rendering and should not be stored. */ + @GodotApiMember public open fun _renderCallback(effectCallbackType: Int, renderData: RenderData?): Unit { } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Container.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Container.kt index 5c5e8c21b6..766f0387c3 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Container.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Container.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.PackedInt32Array @@ -31,11 +32,13 @@ public open class Container : Control() { /** * Emitted when children are going to be sorted. */ + @GodotApiMember public val preSortChildren: Signal0 by Signal0 /** * Emitted when sorting the children is needed. */ + @GodotApiMember public val sortChildren: Signal0 by Signal0 public override fun new(scriptIndex: Int): Unit { @@ -49,6 +52,7 @@ public open class Container : Control() { * **Note:** Having no size flags is equal to having [Control.SIZE_SHRINK_BEGIN]. As such, this * value is always implicitly allowed. */ + @GodotApiMember public open fun _getAllowedSizeFlagsHorizontal(): PackedInt32Array { throw NotImplementedError("_get_allowed_size_flags_horizontal is not implemented for Container") } @@ -60,6 +64,7 @@ public open class Container : Control() { * **Note:** Having no size flags is equal to having [Control.SIZE_SHRINK_BEGIN]. As such, this * value is always implicitly allowed. */ + @GodotApiMember public open fun _getAllowedSizeFlagsVertical(): PackedInt32Array { throw NotImplementedError("_get_allowed_size_flags_vertical is not implemented for Container") } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Control.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Control.kt index 2c52871a82..e4e19b339b 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Control.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Control.kt @@ -8,6 +8,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Callable @@ -85,11 +86,13 @@ public open class Control : CanvasItem() { /** * Emitted when the control changes size. */ + @GodotApiMember public val resized: Signal0 by Signal0 /** * Emitted when the node receives an [InputEvent]. */ + @GodotApiMember public val guiInput: Signal1 by Signal1 /** @@ -98,6 +101,7 @@ public open class Control : CanvasItem() { * it and regardless if it's currently focused or not. * **Note:** [CanvasItem.zIndex] doesn't affect, which Control receives the signal. */ + @GodotApiMember public val mouseEntered: Signal0 by Signal0 /** @@ -113,31 +117,37 @@ public open class Control : CanvasItem() { * # Not hovering over area. * [/codeblock] */ + @GodotApiMember public val mouseExited: Signal0 by Signal0 /** * Emitted when the node gains focus. */ + @GodotApiMember public val focusEntered: Signal0 by Signal0 /** * Emitted when the node loses focus. */ + @GodotApiMember public val focusExited: Signal0 by Signal0 /** * Emitted when one of the size flags changes. See [sizeFlagsHorizontal] and [sizeFlagsVertical]. */ + @GodotApiMember public val sizeFlagsChanged: Signal0 by Signal0 /** * Emitted when the node's minimum size changes. */ + @GodotApiMember public val minimumSizeChanged: Signal0 by Signal0 /** * Emitted when the [NOTIFICATION_THEME_CHANGED] notification is sent. */ + @GodotApiMember public val themeChanged: Signal0 by Signal0 /** @@ -788,6 +798,7 @@ public open class Control : CanvasItem() { * **Note:** If you want to check if a point is inside the control, you can use * `Rect2(Vector2.ZERO, size).has_point(point)`. */ + @GodotApiMember public open fun _hasPoint(point: Vector2): Boolean { throw NotImplementedError("_has_point is not implemented for Control") } @@ -798,6 +809,7 @@ public open class Control : CanvasItem() { * order. Ranges should cover full source [text] without overlaps. BiDi algorithm will be used on * each range separately. */ + @GodotApiMember public open fun _structuredTextParser(args: VariantArray, text: String): VariantArray { throw NotImplementedError("_structured_text_parser is not implemented for Control") @@ -812,6 +824,7 @@ public open class Control : CanvasItem() { * already overrides its minimum size (e.g. [Label], [Button], [PanelContainer] etc.). It can only be * used with most basic GUI nodes, like [Control], [Container], [Panel] etc. */ + @GodotApiMember public open fun _getMinimumSize(): Vector2 { throw NotImplementedError("_get_minimum_size is not implemented for Control") } @@ -822,6 +835,7 @@ public open class Control : CanvasItem() { * resting over this control. See [getTooltip]. * **Note:** If this method returns an empty [String], no tooltip is displayed. */ + @GodotApiMember public open fun _getTooltip(atPosition: Vector2): String { throw NotImplementedError("_get_tooltip is not implemented for Control") } @@ -853,6 +867,7 @@ public open class Control : CanvasItem() { * } * ``` */ + @GodotApiMember public open fun _getDragData(atPosition: Vector2): Any? { throw NotImplementedError("_get_drag_data is not implemented for Control") } @@ -880,6 +895,7 @@ public open class Control : CanvasItem() { * } * ``` */ + @GodotApiMember public open fun _canDropData(atPosition: Vector2, `data`: Any?): Boolean { throw NotImplementedError("_can_drop_data is not implemented for Control") } @@ -911,6 +927,7 @@ public open class Control : CanvasItem() { * } * ``` */ + @GodotApiMember public open fun _dropData(atPosition: Vector2, `data`: Any?): Unit { } @@ -970,6 +987,7 @@ public open class Control : CanvasItem() { * } * ``` */ + @GodotApiMember public open fun _makeCustomTooltip(forText: String): Object? { throw NotImplementedError("_make_custom_tooltip is not implemented for Control") } @@ -1009,6 +1027,7 @@ public open class Control : CanvasItem() { * * it happens outside the parent's rectangle and the parent has either [clipContents] enabled. * **Note:** Event position is relative to the control origin. */ + @GodotApiMember public open fun _guiInput(event: InputEvent?): Unit { } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Curve.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Curve.kt index 39a8c91af4..802df5607d 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Curve.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Curve.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Signal0 @@ -36,6 +37,7 @@ public open class Curve : Resource() { /** * Emitted when [maxValue] or [minValue] is changed. */ + @GodotApiMember public val rangeChanged: Signal0 by Signal0 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/EngineProfiler.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/EngineProfiler.kt index efef9ab746..d0c178efee 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/EngineProfiler.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/EngineProfiler.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.core.VariantArray import kotlin.Any @@ -29,12 +30,14 @@ public open class EngineProfiler : RefCounted() { /** * Called when the profiler is enabled/disabled, along with a set of [options]. */ + @GodotApiMember public open fun _toggle(enable: Boolean, options: VariantArray): Unit { } /** * Called when data is added to profiler using [EngineDebugger.profilerAddFrameData]. */ + @GodotApiMember public open fun _addFrame(`data`: VariantArray): Unit { } @@ -43,6 +46,7 @@ public open class EngineProfiler : RefCounted() { * current frame. All time values are in seconds. Lower values represent faster processing times and * are therefore considered better. */ + @GodotApiMember public open fun _tick( frameTime: Double, processTime: Double, diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/FileDialog.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/FileDialog.kt index e11fc20e42..6567b49ee5 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/FileDialog.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/FileDialog.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Dictionary @@ -40,16 +41,19 @@ public open class FileDialog : ConfirmationDialog() { /** * Emitted when the user selects a file by double-clicking it or pressing the **OK** button. */ + @GodotApiMember public val fileSelected: Signal1 by Signal1 /** * Emitted when the user selects multiple files. */ + @GodotApiMember public val filesSelected: Signal1 by Signal1 /** * Emitted when the user selects a directory. */ + @GodotApiMember public val dirSelected: Signal1 by Signal1 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/GDExtensionManager.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/GDExtensionManager.kt index 84ba8e9f36..7533fc72c0 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/GDExtensionManager.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/GDExtensionManager.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.PackedStringArray @@ -35,6 +36,7 @@ public object GDExtensionManager : Object() { /** * Emitted after the editor has finished reloading one or more extensions. */ + @GodotApiMember @JvmStatic public val extensionsReloaded: Signal0 by Signal0 diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFDocumentExtension.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFDocumentExtension.kt index db33a658c1..e31e01e820 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFDocumentExtension.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFDocumentExtension.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.core.Dictionary import godot.core.PackedByteArray @@ -40,6 +41,7 @@ public open class GLTFDocumentExtension : Resource() { * for importing a given GLTF file. If [OK], the import will use this [GLTFDocumentExtension] * instance. If not overridden, [OK] is returned. */ + @GodotApiMember public open fun _importPreflight(state: GLTFState?, extensions: PackedStringArray): Error { throw NotImplementedError("_import_preflight is not implemented for GLTFDocumentExtension") } @@ -50,6 +52,7 @@ public open class GLTFDocumentExtension : Resource() { * Returns an array of the GLTF extensions supported by this GLTFDocumentExtension class. This is * used to validate if a GLTF file with required extensions can be loaded. */ + @GodotApiMember public open fun _getSupportedExtensions(): PackedStringArray { throw NotImplementedError("_get_supported_extensions is not implemented for GLTFDocumentExtension") } @@ -61,6 +64,7 @@ public open class GLTFDocumentExtension : Resource() { * extension JSON data into a format that can be used by [_generateSceneNode]. The return value * should be a member of the [Error] enum. */ + @GodotApiMember public open fun _parseNodeExtensions( state: GLTFState?, gltfNode: GLTFNode?, @@ -75,6 +79,7 @@ public open class GLTFDocumentExtension : Resource() { * Runs when parsing image data from a GLTF file. The data could be sourced from a separate file, * a URI, or a buffer, and then is passed as a byte array. */ + @GodotApiMember public open fun _parseImageData( state: GLTFState?, imageData: PackedByteArray, @@ -91,6 +96,7 @@ public open class GLTFDocumentExtension : Resource() { * be a [ResourceImporter] class able to import the file. If not defined or empty, Godot will save * the image into a PNG file. */ + @GodotApiMember public open fun _getImageFileExtension(): String { throw NotImplementedError("_get_image_file_extension is not implemented for GLTFDocumentExtension") } @@ -101,6 +107,7 @@ public open class GLTFDocumentExtension : Resource() { * Runs when parsing the texture JSON from the GLTF textures array. This can be used to set the * source image index to use as the texture. */ + @GodotApiMember public open fun _parseTextureJson( state: GLTFState?, textureJson: Dictionary, @@ -117,6 +124,7 @@ public open class GLTFDocumentExtension : Resource() { * returned node. * **Note:** The [sceneParent] parameter may be null if this is the single root node. */ + @GodotApiMember public open fun _generateSceneNode( state: GLTFState?, gltfNode: GLTFNode?, @@ -131,6 +139,7 @@ public open class GLTFDocumentExtension : Resource() { * This method can be used to modify any of the data imported so far after parsing, before * generating the nodes and then running the final per-node import step. */ + @GodotApiMember public open fun _importPostParse(state: GLTFState?): Error { throw NotImplementedError("_import_post_parse is not implemented for GLTFDocumentExtension") } @@ -140,6 +149,7 @@ public open class GLTFDocumentExtension : Resource() { * [_importPost]. * This method can be used to make modifications to each of the generated Godot scene nodes. */ + @GodotApiMember public open fun _importNode( state: GLTFState?, gltfNode: GLTFNode?, @@ -154,6 +164,7 @@ public open class GLTFDocumentExtension : Resource() { * process. * This method can be used to modify the final Godot scene generated by the import process. */ + @GodotApiMember public open fun _importPost(state: GLTFState?, root: Node?): Error { throw NotImplementedError("_import_post is not implemented for GLTFDocumentExtension") } @@ -165,6 +176,7 @@ public open class GLTFDocumentExtension : Resource() { * for exporting a given GLTF file. If [OK], the export will use this [GLTFDocumentExtension] * instance. If not overridden, [OK] is returned. */ + @GodotApiMember public open fun _exportPreflight(state: GLTFState?, root: Node?): Error { throw NotImplementedError("_export_preflight is not implemented for GLTFDocumentExtension") } @@ -175,6 +187,7 @@ public open class GLTFDocumentExtension : Resource() { * Runs when converting the data from a Godot scene node. This method can be used to process the * Godot scene node data into a format that can be used by [_exportNode]. */ + @GodotApiMember public open fun _convertSceneNode( state: GLTFState?, gltfNode: GLTFNode?, @@ -189,6 +202,7 @@ public open class GLTFDocumentExtension : Resource() { * when generating a buffer with [GLTFDocument.generateBuffer] or writing to the file system with * [GLTFDocument.writeToFilesystem]. */ + @GodotApiMember public open fun _exportPreserialize(state: GLTFState?): Error { throw NotImplementedError("_export_preserialize is not implemented for GLTFDocumentExtension") } @@ -203,6 +217,7 @@ public open class GLTFDocumentExtension : Resource() { * otherwise [_exportNode] will run next. If the format name contains `"Lossy"`, the lossy quality * slider will be displayed. */ + @GodotApiMember public open fun _getSaveableImageFormats(): PackedStringArray { throw NotImplementedError("_get_saveable_image_formats is not implemented for GLTFDocumentExtension") } @@ -217,6 +232,7 @@ public open class GLTFDocumentExtension : Resource() { * example, for a PNG image, it would be set to `"image/png"`. The return value must be a * [PackedByteArray] containing the image data. */ + @GodotApiMember public open fun _serializeImageToBytes( state: GLTFState?, image: Image?, @@ -234,6 +250,7 @@ public open class GLTFDocumentExtension : Resource() { * [_serializeImageToBytes] runs instead. Note that these methods only run when this * [GLTFDocumentExtension] is selected as the image exporter. */ + @GodotApiMember public open fun _saveImageAtPath( state: GLTFState?, image: Image?, @@ -252,6 +269,7 @@ public open class GLTFDocumentExtension : Resource() { * The extension must also be added as used extension with [GLTFState.addUsedExtension], be sure to * set `required` to `true` if you are not providing a fallback. */ + @GodotApiMember public open fun _serializeTextureJson( state: GLTFState?, textureJson: Dictionary, @@ -270,6 +288,7 @@ public open class GLTFDocumentExtension : Resource() { * available. The node may be null if not available, such as when exporting GLTF data not generated * from a Godot scene. */ + @GodotApiMember public open fun _exportNode( state: GLTFState?, gltfNode: GLTFNode?, @@ -284,6 +303,7 @@ public open class GLTFDocumentExtension : Resource() { * process. * This method can be used to modify the final JSON of the generated GLTF file. */ + @GodotApiMember public open fun _exportPost(state: GLTFState?): Error { throw NotImplementedError("_export_post is not implemented for GLTFDocumentExtension") } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/GPUParticles2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/GPUParticles2D.kt index 450d30162c..762156637f 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/GPUParticles2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/GPUParticles2D.kt @@ -8,6 +8,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Color @@ -57,6 +58,7 @@ public open class GPUParticles2D : Node2D() { * a short period after receiving the signal during which setting [emitting] to `true` will not * restart the emission cycle. This delay is avoided by instead calling [restart]. */ + @GodotApiMember public val finished: Signal0 by Signal0 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/GPUParticles3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/GPUParticles3D.kt index 71be941450..fbca1f92ec 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/GPUParticles3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/GPUParticles3D.kt @@ -8,6 +8,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.AABB @@ -53,6 +54,7 @@ public open class GPUParticles3D : GeometryInstance3D() { * a short period after receiving the signal during which setting [emitting] to `true` will not * restart the emission cycle. This delay is avoided by instead calling [restart]. */ + @GodotApiMember public val finished: Signal0 by Signal0 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/GraphEdit.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/GraphEdit.kt index b81093fa55..de45e578e9 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/GraphEdit.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/GraphEdit.kt @@ -8,6 +8,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Dictionary @@ -68,44 +69,52 @@ public open class GraphEdit : Control() { * Emitted to the GraphEdit when the connection between the [fromPort] of the [fromNode] * [GraphNode] and the [toPort] of the [toNode] [GraphNode] is attempted to be created. */ + @GodotApiMember public val connectionRequest: Signal4 by Signal4 /** * Emitted to the GraphEdit when the connection between [fromPort] of [fromNode] [GraphNode] and * [toPort] of [toNode] [GraphNode] is attempted to be removed. */ + @GodotApiMember public val disconnectionRequest: Signal4 by Signal4 /** * Emitted when user drags a connection from an output port into the empty space of the graph. */ + @GodotApiMember public val connectionToEmpty: Signal3 by Signal3 /** * Emitted when user drags a connection from an input port into the empty space of the graph. */ + @GodotApiMember public val connectionFromEmpty: Signal3 by Signal3 /** * Emitted at the beginning of a connection drag. */ + @GodotApiMember public val connectionDragStarted: Signal3 by Signal3 /** * Emitted at the end of a connection drag. */ + @GodotApiMember public val connectionDragEnded: Signal0 by Signal0 /** * Emitted when this [GraphEdit] captures a `ui_copy` action ([kbd]Ctrl + C[/kbd] by default). In * general, this signal indicates that the selected [GraphElement]s should be copied. */ + @GodotApiMember public val copyNodesRequest: Signal0 by Signal0 /** * Emitted when this [GraphEdit] captures a `ui_paste` action ([kbd]Ctrl + V[/kbd] by default). In * general, this signal indicates that previously copied [GraphElement]s should be pasted. */ + @GodotApiMember public val pasteNodesRequest: Signal0 by Signal0 /** @@ -113,6 +122,7 @@ public open class GraphEdit : Control() { * default). In general, this signal indicates that the selected [GraphElement]s should be * duplicated. */ + @GodotApiMember public val duplicateNodesRequest: Signal0 by Signal0 /** @@ -121,37 +131,44 @@ public open class GraphEdit : Control() { * [nodes] is an array of node names that should be removed. These usually include all selected * nodes. */ + @GodotApiMember public val deleteNodesRequest: Signal1> by Signal1 /** * Emitted when the given [GraphElement] node is selected. */ + @GodotApiMember public val nodeSelected: Signal1 by Signal1 /** * Emitted when the given [GraphElement] node is deselected. */ + @GodotApiMember public val nodeDeselected: Signal1 by Signal1 /** * Emitted when the [GraphFrame] [frame] is resized to [newRect]. */ + @GodotApiMember public val frameRectChanged: Signal2 by Signal2 /** * Emitted when a popup is requested. Happens on right-clicking in the GraphEdit. [atPosition] is * the position of the mouse pointer when the signal is sent. */ + @GodotApiMember public val popupRequest: Signal1 by Signal1 /** * Emitted at the beginning of a [GraphElement]'s movement. */ + @GodotApiMember public val beginNodeMove: Signal0 by Signal0 /** * Emitted at the end of a [GraphElement]'s movement. */ + @GodotApiMember public val endNodeMove: Signal0 by Signal0 /** @@ -159,12 +176,14 @@ public open class GraphEdit : Control() { * they were not previously attached to any other one. * [elements] is an array of [GraphElement]s to be attached. */ + @GodotApiMember public val graphElementsLinkedToFrameRequest: Signal2, StringName> by Signal2 /** * Emitted when the scroll offset is changed by the user. It will not be emitted when changed in * code. */ + @GodotApiMember public val scrollOffsetChanged: Signal1 by Signal1 /** @@ -496,6 +515,7 @@ public open class GraphEdit : Control() { * return rect.has_point(mouse_position) * [/codeblock] */ + @GodotApiMember public open fun _isInInputHotzone( inNode: Object?, inPort: Int, @@ -519,6 +539,7 @@ public open class GraphEdit : Control() { * return rect.has_point(mouse_position) * [/codeblock] */ + @GodotApiMember public open fun _isInOutputHotzone( inNode: Object?, inPort: Int, @@ -530,6 +551,7 @@ public open class GraphEdit : Control() { /** * Virtual method which can be overridden to customize how connections are drawn. */ + @GodotApiMember public open fun _getConnectionLine(fromPosition: Vector2, toPosition: Vector2): PackedVector2Array { throw NotImplementedError("_get_connection_line is not implemented for GraphEdit") @@ -557,6 +579,7 @@ public open class GraphEdit : Control() { * } * ``` */ + @GodotApiMember public open fun _isNodeHoverValid( fromNode: StringName, fromPort: Int, diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/GraphElement.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/GraphElement.kt index 940df93054..99a85fc250 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/GraphElement.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/GraphElement.kt @@ -8,6 +8,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Signal0 @@ -35,43 +36,51 @@ public open class GraphElement : Container() { /** * Emitted when the GraphElement is selected. */ + @GodotApiMember public val nodeSelected: Signal0 by Signal0 /** * Emitted when the GraphElement is deselected. */ + @GodotApiMember public val nodeDeselected: Signal0 by Signal0 /** * Emitted when displaying the GraphElement over other ones is requested. Happens on focusing * (clicking into) the GraphElement. */ + @GodotApiMember public val raiseRequest: Signal0 by Signal0 /** * Emitted when removing the GraphElement is requested. */ + @GodotApiMember public val deleteRequest: Signal0 by Signal0 /** * Emitted when resizing the GraphElement is requested. Happens on dragging the resizer handle * (see [resizable]). */ + @GodotApiMember public val resizeRequest: Signal1 by Signal1 /** * Emitted when releasing the mouse button after dragging the resizer handle (see [resizable]). */ + @GodotApiMember public val resizeEnd: Signal1 by Signal1 /** * Emitted when the GraphElement is dragged. */ + @GodotApiMember public val dragged: Signal2 by Signal2 /** * Emitted when the GraphElement is moved. */ + @GodotApiMember public val positionOffsetChanged: Signal0 by Signal0 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/GraphFrame.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/GraphFrame.kt index 8db633955d..4b335b49c2 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/GraphFrame.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/GraphFrame.kt @@ -8,6 +8,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Color @@ -40,6 +41,7 @@ public open class GraphFrame : GraphElement() { /** * Emitted when [autoshrinkEnabled] or [autoshrinkMargin] changes. */ + @GodotApiMember public val autoshrinkChanged: Signal0 by Signal0 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/GraphNode.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/GraphNode.kt index 490c4464bd..3bd2c68561 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/GraphNode.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/GraphNode.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Color @@ -53,6 +54,7 @@ public open class GraphNode : GraphElement() { /** * Emitted when any GraphNode's slot is updated. */ + @GodotApiMember public val slotUpdated: Signal1 by Signal1 /** @@ -82,6 +84,7 @@ public open class GraphNode : GraphElement() { callConstructor(ENGINECLASS_GRAPHNODE, scriptIndex) } + @GodotApiMember public open fun _drawPort( slotIndex: Int, position: Vector2i, diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/GridMap.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/GridMap.kt index a784c1a197..1174cd965c 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/GridMap.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/GridMap.kt @@ -8,6 +8,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Basis @@ -58,11 +59,13 @@ public open class GridMap : Node3D() { /** * Emitted when [cellSize] changes. */ + @GodotApiMember public val cellSizeChanged: Signal1 by Signal1 /** * Emitted when the [MeshLibrary] of this GridMap changes. */ + @GodotApiMember public val changed: Signal0 by Signal0 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/HTTPRequest.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/HTTPRequest.kt index e75f0525a6..fb1c640320 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/HTTPRequest.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/HTTPRequest.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.PackedByteArray @@ -197,6 +198,7 @@ public open class HTTPRequest : Node() { /** * Emitted when a request is completed. */ + @GodotApiMember public val requestCompleted: Signal4 by Signal4 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ImageFormatLoaderExtension.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ImageFormatLoaderExtension.kt index bc2cd0c7e2..328206f434 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ImageFormatLoaderExtension.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ImageFormatLoaderExtension.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.PackedStringArray @@ -34,6 +35,7 @@ public open class ImageFormatLoaderExtension : ImageFormatLoader() { * Returns the list of file extensions for this image format. Files with the given extensions will * be treated as image file and loaded using this class. */ + @GodotApiMember public open fun _getRecognizedExtensions(): PackedStringArray { throw NotImplementedError("_get_recognized_extensions is not implemented for ImageFormatLoaderExtension") } @@ -41,6 +43,7 @@ public open class ImageFormatLoaderExtension : ImageFormatLoader() { /** * Loads the content of [fileaccess] into the provided [image]. */ + @GodotApiMember public open fun _loadImage( image: Image?, fileaccess: FileAccess?, diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Input.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Input.kt index 6ab17008cf..5ce55356bd 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Input.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Input.kt @@ -7,6 +7,7 @@ package godot import godot.MouseButtonMaskValue +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Dictionary @@ -53,6 +54,7 @@ public object Input : Object() { /** * Emitted when a joypad device has been connected or disconnected. */ + @GodotApiMember @JvmStatic public val joyConnectionChanged: Signal2 by Signal2 diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ItemList.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ItemList.kt index 5bb9ed33c1..c424fe7a89 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ItemList.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ItemList.kt @@ -8,6 +8,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Color @@ -73,11 +74,13 @@ public open class ItemList : Control() { * Triggered when specified item has been selected. * [allowReselect] must be enabled to reselect an item. */ + @GodotApiMember public val itemSelected: Signal1 by Signal1 /** * Triggered when any mouse click is issued within the rect of the list but on empty space. */ + @GodotApiMember public val emptyClicked: Signal2 by Signal2 /** @@ -85,17 +88,20 @@ public open class ItemList : Control() { * The click position is also provided to allow appropriate popup of context menus at the correct * location. */ + @GodotApiMember public val itemClicked: Signal3 by Signal3 /** * Triggered when a multiple selection is altered on a list allowing multiple selection. */ + @GodotApiMember public val multiSelected: Signal2 by Signal2 /** * Triggered when specified list item is activated via double-clicking or by pressing * [kbd]Enter[/kbd]. */ + @GodotApiMember public val itemActivated: Signal1 by Signal1 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/JavaScriptBridge.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/JavaScriptBridge.kt index c9c54235d0..e3140508cb 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/JavaScriptBridge.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/JavaScriptBridge.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Callable @@ -48,6 +49,7 @@ public object JavaScriptBridge : Object() { * activated because a previous version is active. See [pwaUpdate] to force the update to take place * immediately. */ + @GodotApiMember @JvmStatic public val pwaUpdateAvailable: Signal0 by Signal0 diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/LineEdit.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/LineEdit.kt index e73c2cf829..ff94f775f3 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/LineEdit.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/LineEdit.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Signal1 @@ -63,17 +64,20 @@ public open class LineEdit : Control() { /** * Emitted when the text changes. */ + @GodotApiMember public val textChanged: Signal1 by Signal1 /** * Emitted when appending text that overflows the [maxLength]. The appended text is truncated to * fit [maxLength], and the part that couldn't fit is passed as the [rejectedSubstring] argument. */ + @GodotApiMember public val textChangeRejected: Signal1 by Signal1 /** * Emitted when the user presses [KEY_ENTER] on the [LineEdit]. */ + @GodotApiMember public val textSubmitted: Signal1 by Signal1 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/MainLoop.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/MainLoop.kt index 6261372526..46f60bd63b 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/MainLoop.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/MainLoop.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.core.Signal2 import kotlin.Boolean @@ -82,6 +83,7 @@ public open class MainLoop : Object() { /** * Emitted when a user responds to a permission request. */ + @GodotApiMember public val onRequestPermissionsResult: Signal2 by Signal2 public override fun new(scriptIndex: Int): Unit { @@ -91,6 +93,7 @@ public open class MainLoop : Object() { /** * Called once during initialization. */ + @GodotApiMember public open fun _initialize(): Unit { } @@ -100,6 +103,7 @@ public open class MainLoop : Object() { * If implemented, the method must return a boolean value. `true` ends the main loop, while * `false` lets it proceed to the next frame. */ + @GodotApiMember public open fun _physicsProcess(delta: Double): Boolean { throw NotImplementedError("_physics_process is not implemented for MainLoop") } @@ -110,6 +114,7 @@ public open class MainLoop : Object() { * If implemented, the method must return a boolean value. `true` ends the main loop, while * `false` lets it proceed to the next frame. */ + @GodotApiMember public open fun _process(delta: Double): Boolean { throw NotImplementedError("_process is not implemented for MainLoop") } @@ -117,6 +122,7 @@ public open class MainLoop : Object() { /** * Called before the program exits. */ + @GodotApiMember public open fun _finalize(): Unit { } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Material.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Material.kt index 3214e3c2cc..428141de24 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Material.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Material.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.RID @@ -73,6 +74,7 @@ public open class Material : Resource() { * Only exposed for the purpose of overriding. You cannot call this function directly. Used * internally by various editor tools. Used to access the RID of the [Material]'s [Shader]. */ + @GodotApiMember public open fun _getShaderRid(): RID { throw NotImplementedError("_get_shader_rid is not implemented for Material") } @@ -81,6 +83,7 @@ public open class Material : Resource() { * Only exposed for the purpose of overriding. You cannot call this function directly. Used * internally by various editor tools. */ + @GodotApiMember public open fun _getShaderMode(): Shader.Mode { throw NotImplementedError("_get_shader_mode is not implemented for Material") } @@ -89,6 +92,7 @@ public open class Material : Resource() { * Only exposed for the purpose of overriding. You cannot call this function directly. Used * internally to determine if [nextPass] should be shown in the editor or not. */ + @GodotApiMember public open fun _canDoNextPass(): Boolean { throw NotImplementedError("_can_do_next_pass is not implemented for Material") } @@ -97,6 +101,7 @@ public open class Material : Resource() { * Only exposed for the purpose of overriding. You cannot call this function directly. Used * internally to determine if [renderPriority] should be shown in the editor or not. */ + @GodotApiMember public open fun _canUseRenderPriority(): Boolean { throw NotImplementedError("_can_use_render_priority is not implemented for Material") } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/MenuButton.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/MenuButton.kt index 8e78a5fca4..318576a670 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/MenuButton.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/MenuButton.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Signal0 @@ -33,6 +34,7 @@ public open class MenuButton : Button() { /** * Emitted when the [PopupMenu] of this MenuButton is about to show. */ + @GodotApiMember public val aboutToPopup: Signal0 by Signal0 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Mesh.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Mesh.kt index 777e3c03c4..494ebd200b 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Mesh.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Mesh.kt @@ -8,6 +8,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.AABB @@ -91,6 +92,7 @@ public open class Mesh : Resource() { /** * Virtual method to override the surface count for a custom class extending [Mesh]. */ + @GodotApiMember public open fun _getSurfaceCount(): Int { throw NotImplementedError("_get_surface_count is not implemented for Mesh") } @@ -98,6 +100,7 @@ public open class Mesh : Resource() { /** * Virtual method to override the surface array length for a custom class extending [Mesh]. */ + @GodotApiMember public open fun _surfaceGetArrayLen(index: Int): Int { throw NotImplementedError("_surface_get_array_len is not implemented for Mesh") } @@ -105,6 +108,7 @@ public open class Mesh : Resource() { /** * Virtual method to override the surface array index length for a custom class extending [Mesh]. */ + @GodotApiMember public open fun _surfaceGetArrayIndexLen(index: Int): Int { throw NotImplementedError("_surface_get_array_index_len is not implemented for Mesh") } @@ -112,6 +116,7 @@ public open class Mesh : Resource() { /** * Virtual method to override the surface arrays for a custom class extending [Mesh]. */ + @GodotApiMember public open fun _surfaceGetArrays(index: Int): VariantArray { throw NotImplementedError("_surface_get_arrays is not implemented for Mesh") } @@ -119,6 +124,7 @@ public open class Mesh : Resource() { /** * Virtual method to override the blend shape arrays for a custom class extending [Mesh]. */ + @GodotApiMember public open fun _surfaceGetBlendShapeArrays(index: Int): VariantArray> { throw NotImplementedError("_surface_get_blend_shape_arrays is not implemented for Mesh") } @@ -126,6 +132,7 @@ public open class Mesh : Resource() { /** * Virtual method to override the surface LODs for a custom class extending [Mesh]. */ + @GodotApiMember public open fun _surfaceGetLods(index: Int): Dictionary { throw NotImplementedError("_surface_get_lods is not implemented for Mesh") } @@ -133,6 +140,7 @@ public open class Mesh : Resource() { /** * Virtual method to override the surface format for a custom class extending [Mesh]. */ + @GodotApiMember public open fun _surfaceGetFormat(index: Int): Long { throw NotImplementedError("_surface_get_format is not implemented for Mesh") } @@ -140,6 +148,7 @@ public open class Mesh : Resource() { /** * Virtual method to override the surface primitive type for a custom class extending [Mesh]. */ + @GodotApiMember public open fun _surfaceGetPrimitiveType(index: Int): Long { throw NotImplementedError("_surface_get_primitive_type is not implemented for Mesh") } @@ -148,12 +157,14 @@ public open class Mesh : Resource() { * Virtual method to override the setting of a [material] at the given [index] for a custom class * extending [Mesh]. */ + @GodotApiMember public open fun _surfaceSetMaterial(index: Int, material: Material?): Unit { } /** * Virtual method to override the surface material for a custom class extending [Mesh]. */ + @GodotApiMember public open fun _surfaceGetMaterial(index: Int): Material? { throw NotImplementedError("_surface_get_material is not implemented for Mesh") } @@ -161,6 +172,7 @@ public open class Mesh : Resource() { /** * Virtual method to override the number of blend shapes for a custom class extending [Mesh]. */ + @GodotApiMember public open fun _getBlendShapeCount(): Int { throw NotImplementedError("_get_blend_shape_count is not implemented for Mesh") } @@ -169,6 +181,7 @@ public open class Mesh : Resource() { * Virtual method to override the retrieval of blend shape names for a custom class extending * [Mesh]. */ + @GodotApiMember public open fun _getBlendShapeName(index: Int): StringName { throw NotImplementedError("_get_blend_shape_name is not implemented for Mesh") } @@ -176,12 +189,14 @@ public open class Mesh : Resource() { /** * Virtual method to override the names of blend shapes for a custom class extending [Mesh]. */ + @GodotApiMember public open fun _setBlendShapeName(index: Int, name: StringName): Unit { } /** * Virtual method to override the [AABB] for a custom class extending [Mesh]. */ + @GodotApiMember public open fun _getAabb(): AABB { throw NotImplementedError("_get_aabb is not implemented for Mesh") } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/MeshInstance2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/MeshInstance2D.kt index b7a2be44c8..b0899829ca 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/MeshInstance2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/MeshInstance2D.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Signal0 @@ -28,6 +29,7 @@ public open class MeshInstance2D : Node2D() { /** * Emitted when the [texture] is changed. */ + @GodotApiMember public val textureChanged: Signal0 by Signal0 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/MovieWriter.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/MovieWriter.kt index 8c945ea0c9..036d2e6bc5 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/MovieWriter.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/MovieWriter.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.TypeManager @@ -65,6 +66,7 @@ public open class MovieWriter : Object() { * value returned must be specified in Hz. Defaults to 48000 Hz if [_getAudioMixRate] is not * overridden. */ + @GodotApiMember public open fun _getAudioMixRate(): Long { throw NotImplementedError("_get_audio_mix_rate is not implemented for MovieWriter") } @@ -74,6 +76,7 @@ public open class MovieWriter : Object() { * This can affect the number of output channels in the resulting audio file/stream. Defaults to * [AudioServer.SPEAKER_MODE_STEREO] if [_getAudioSpeakerMode] is not overridden. */ + @GodotApiMember public open fun _getAudioSpeakerMode(): AudioServer.SpeakerMode { throw NotImplementedError("_get_audio_speaker_mode is not implemented for MovieWriter") } @@ -90,6 +93,7 @@ public open class MovieWriter : Object() { * return path.get_extension().to_lower() == "mkv" * [/codeblock] */ + @GodotApiMember public open fun _handlesFile(path: String): Boolean { throw NotImplementedError("_handles_file is not implemented for MovieWriter") } @@ -100,6 +104,7 @@ public open class MovieWriter : Object() { * settings or using the `--fixed-fps ` * [url=$DOCS_URL/tutorials/editor/command_line_tutorial.html]command line argument[/url]. */ + @GodotApiMember public open fun _writeBegin( movieSize: Vector2i, fps: Long, @@ -114,6 +119,7 @@ public open class MovieWriter : Object() { * **Note:** Pressing [kbd]Ctrl + C[/kbd] on the terminal running the editor/project does *not* * result in [_writeEnd] being called. */ + @GodotApiMember public open fun _writeEnd(): Unit { } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/MultiMeshInstance2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/MultiMeshInstance2D.kt index 8fb2ee85d7..da4ba97803 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/MultiMeshInstance2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/MultiMeshInstance2D.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Signal0 @@ -27,6 +28,7 @@ public open class MultiMeshInstance2D : Node2D() { /** * Emitted when the [texture] is changed. */ + @GodotApiMember public val textureChanged: Signal0 by Signal0 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/MultiplayerAPI.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/MultiplayerAPI.kt index 643a858c49..546918c683 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/MultiplayerAPI.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/MultiplayerAPI.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.PackedInt32Array @@ -50,30 +51,35 @@ public open class MultiplayerAPI internal constructor() : RefCounted() { * ID of the new peer. Clients get notified when other clients connect to the same server. Upon * connecting to a server, a client also receives this signal for the server (with ID being 1). */ + @GodotApiMember public val peerConnected: Signal1 by Signal1 /** * Emitted when this MultiplayerAPI's [multiplayerPeer] disconnects from a peer. Clients get * notified when other clients disconnect from the same server. */ + @GodotApiMember public val peerDisconnected: Signal1 by Signal1 /** * Emitted when this MultiplayerAPI's [multiplayerPeer] successfully connected to a server. Only * emitted on clients. */ + @GodotApiMember public val connectedToServer: Signal0 by Signal0 /** * Emitted when this MultiplayerAPI's [multiplayerPeer] fails to establish a connection to a * server. Only emitted on clients. */ + @GodotApiMember public val connectionFailed: Signal0 by Signal0 /** * Emitted when this MultiplayerAPI's [multiplayerPeer] disconnects from server. Only emitted on * clients. */ + @GodotApiMember public val serverDisconnected: Signal0 by Signal0 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/MultiplayerAPIExtension.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/MultiplayerAPIExtension.kt index 9cb68f4df3..c78d5bc71b 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/MultiplayerAPIExtension.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/MultiplayerAPIExtension.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.core.PackedInt32Array import godot.core.StringName @@ -107,6 +108,7 @@ public open class MultiplayerAPIExtension : MultiplayerAPI() { /** * Callback for [MultiplayerAPI.poll]. */ + @GodotApiMember public open fun _poll(): Error { throw NotImplementedError("_poll is not implemented for MultiplayerAPIExtension") } @@ -114,12 +116,14 @@ public open class MultiplayerAPIExtension : MultiplayerAPI() { /** * Called when the [MultiplayerAPI.multiplayerPeer] is set. */ + @GodotApiMember public open fun _setMultiplayerPeer(multiplayerPeer: MultiplayerPeer?): Unit { } /** * Called when the [MultiplayerAPI.multiplayerPeer] is retrieved. */ + @GodotApiMember public open fun _getMultiplayerPeer(): MultiplayerPeer? { throw NotImplementedError("_get_multiplayer_peer is not implemented for MultiplayerAPIExtension") } @@ -127,6 +131,7 @@ public open class MultiplayerAPIExtension : MultiplayerAPI() { /** * Callback for [MultiplayerAPI.getUniqueId]. */ + @GodotApiMember public open fun _getUniqueId(): Int { throw NotImplementedError("_get_unique_id is not implemented for MultiplayerAPIExtension") } @@ -134,6 +139,7 @@ public open class MultiplayerAPIExtension : MultiplayerAPI() { /** * Callback for [MultiplayerAPI.getPeers]. */ + @GodotApiMember public open fun _getPeerIds(): PackedInt32Array { throw NotImplementedError("_get_peer_ids is not implemented for MultiplayerAPIExtension") } @@ -141,6 +147,7 @@ public open class MultiplayerAPIExtension : MultiplayerAPI() { /** * Callback for [MultiplayerAPI.rpc]. */ + @GodotApiMember public open fun _rpc( peer: Int, `object`: Object?, @@ -153,6 +160,7 @@ public open class MultiplayerAPIExtension : MultiplayerAPI() { /** * Callback for [MultiplayerAPI.getRemoteSenderId]. */ + @GodotApiMember public open fun _getRemoteSenderId(): Int { throw NotImplementedError("_get_remote_sender_id is not implemented for MultiplayerAPIExtension") } @@ -160,6 +168,7 @@ public open class MultiplayerAPIExtension : MultiplayerAPI() { /** * Callback for [MultiplayerAPI.objectConfigurationAdd]. */ + @GodotApiMember public open fun _objectConfigurationAdd(`object`: Object?, configuration: Any?): Error { throw NotImplementedError("_object_configuration_add is not implemented for MultiplayerAPIExtension") } @@ -167,6 +176,7 @@ public open class MultiplayerAPIExtension : MultiplayerAPI() { /** * Callback for [MultiplayerAPI.objectConfigurationRemove]. */ + @GodotApiMember public open fun _objectConfigurationRemove(`object`: Object?, configuration: Any?): Error { throw NotImplementedError("_object_configuration_remove is not implemented for MultiplayerAPIExtension") } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/MultiplayerPeer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/MultiplayerPeer.kt index c3b7646c84..cefc1db9c7 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/MultiplayerPeer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/MultiplayerPeer.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Signal1 @@ -36,11 +37,13 @@ public open class MultiplayerPeer internal constructor() : PacketPeer() { /** * Emitted when a remote peer connects. */ + @GodotApiMember public val peerConnected: Signal1 by Signal1 /** * Emitted when a remote peer has disconnected. */ + @GodotApiMember public val peerDisconnected: Signal1 by Signal1 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/MultiplayerPeerExtension.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/MultiplayerPeerExtension.kt index 99bf9c3baf..740f68ce4c 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/MultiplayerPeerExtension.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/MultiplayerPeerExtension.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.core.PackedByteArray import kotlin.Boolean @@ -28,6 +29,7 @@ public open class MultiplayerPeerExtension : MultiplayerPeer() { /** * Called when the available packet count is internally requested by the [MultiplayerAPI]. */ + @GodotApiMember public open fun _getAvailablePacketCount(): Int { throw NotImplementedError("_get_available_packet_count is not implemented for MultiplayerPeerExtension") } @@ -35,6 +37,7 @@ public open class MultiplayerPeerExtension : MultiplayerPeer() { /** * Called when the maximum allowed packet size (in bytes) is requested by the [MultiplayerAPI]. */ + @GodotApiMember public open fun _getMaxPacketSize(): Int { throw NotImplementedError("_get_max_packet_size is not implemented for MultiplayerPeerExtension") } @@ -43,6 +46,7 @@ public open class MultiplayerPeerExtension : MultiplayerPeer() { * Called when a packet needs to be received by the [MultiplayerAPI], if [_getPacket] isn't * implemented. Use this when extending this class via GDScript. */ + @GodotApiMember public open fun _getPacketScript(): PackedByteArray { throw NotImplementedError("_get_packet_script is not implemented for MultiplayerPeerExtension") } @@ -51,6 +55,7 @@ public open class MultiplayerPeerExtension : MultiplayerPeer() { * Called when a packet needs to be sent by the [MultiplayerAPI], if [_putPacket] isn't * implemented. Use this when extending this class via GDScript. */ + @GodotApiMember public open fun _putPacketScript(pBuffer: PackedByteArray): Error { throw NotImplementedError("_put_packet_script is not implemented for MultiplayerPeerExtension") } @@ -59,6 +64,7 @@ public open class MultiplayerPeerExtension : MultiplayerPeer() { * Called to get the channel over which the next available packet was received. See * [MultiplayerPeer.getPacketChannel]. */ + @GodotApiMember public open fun _getPacketChannel(): Int { throw NotImplementedError("_get_packet_channel is not implemented for MultiplayerPeerExtension") } @@ -67,6 +73,7 @@ public open class MultiplayerPeerExtension : MultiplayerPeer() { * Called to get the transfer mode the remote peer used to send the next available packet. See * [MultiplayerPeer.getPacketMode]. */ + @GodotApiMember public open fun _getPacketMode(): MultiplayerPeer.TransferMode { throw NotImplementedError("_get_packet_mode is not implemented for MultiplayerPeerExtension") } @@ -75,6 +82,7 @@ public open class MultiplayerPeerExtension : MultiplayerPeer() { * Called when the channel to use is set for this [MultiplayerPeer] (see * [MultiplayerPeer.transferChannel]). */ + @GodotApiMember public open fun _setTransferChannel(pChannel: Int): Unit { } @@ -82,6 +90,7 @@ public open class MultiplayerPeerExtension : MultiplayerPeer() { * Called when the transfer channel to use is read on this [MultiplayerPeer] (see * [MultiplayerPeer.transferChannel]). */ + @GodotApiMember public open fun _getTransferChannel(): Int { throw NotImplementedError("_get_transfer_channel is not implemented for MultiplayerPeerExtension") } @@ -90,6 +99,7 @@ public open class MultiplayerPeerExtension : MultiplayerPeer() { * Called when the transfer mode is set on this [MultiplayerPeer] (see * [MultiplayerPeer.transferMode]). */ + @GodotApiMember public open fun _setTransferMode(pMode: MultiplayerPeer.TransferMode): Unit { } @@ -97,6 +107,7 @@ public open class MultiplayerPeerExtension : MultiplayerPeer() { * Called when the transfer mode to use is read on this [MultiplayerPeer] (see * [MultiplayerPeer.transferMode]). */ + @GodotApiMember public open fun _getTransferMode(): MultiplayerPeer.TransferMode { throw NotImplementedError("_get_transfer_mode is not implemented for MultiplayerPeerExtension") } @@ -105,6 +116,7 @@ public open class MultiplayerPeerExtension : MultiplayerPeer() { * Called when the target peer to use is set for this [MultiplayerPeer] (see * [MultiplayerPeer.setTargetPeer]). */ + @GodotApiMember public open fun _setTargetPeer(pPeer: Int): Unit { } @@ -112,6 +124,7 @@ public open class MultiplayerPeerExtension : MultiplayerPeer() { * Called when the ID of the [MultiplayerPeer] who sent the most recent packet is requested (see * [MultiplayerPeer.getPacketPeer]). */ + @GodotApiMember public open fun _getPacketPeer(): Int { throw NotImplementedError("_get_packet_peer is not implemented for MultiplayerPeerExtension") } @@ -120,6 +133,7 @@ public open class MultiplayerPeerExtension : MultiplayerPeer() { * Called when the "is server" status is requested on the [MultiplayerAPI]. See * [MultiplayerAPI.isServer]. */ + @GodotApiMember public open fun _isServer(): Boolean { throw NotImplementedError("_is_server is not implemented for MultiplayerPeerExtension") } @@ -127,12 +141,14 @@ public open class MultiplayerPeerExtension : MultiplayerPeer() { /** * Called when the [MultiplayerAPI] is polled. See [MultiplayerAPI.poll]. */ + @GodotApiMember public open fun _poll(): Unit { } /** * Called when the multiplayer peer should be immediately closed (see [MultiplayerPeer.close]). */ + @GodotApiMember public open fun _close(): Unit { } @@ -140,6 +156,7 @@ public open class MultiplayerPeerExtension : MultiplayerPeer() { * Called when the connected [pPeer] should be forcibly disconnected (see * [MultiplayerPeer.disconnectPeer]). */ + @GodotApiMember public open fun _disconnectPeer(pPeer: Int, pForce: Boolean): Unit { } @@ -147,6 +164,7 @@ public open class MultiplayerPeerExtension : MultiplayerPeer() { * Called when the unique ID of this [MultiplayerPeer] is requested (see * [MultiplayerPeer.getUniqueId]). The value must be between `1` and `2147483647`. */ + @GodotApiMember public open fun _getUniqueId(): Int { throw NotImplementedError("_get_unique_id is not implemented for MultiplayerPeerExtension") } @@ -155,6 +173,7 @@ public open class MultiplayerPeerExtension : MultiplayerPeer() { * Called when the "refuse new connections" status is set on this [MultiplayerPeer] (see * [MultiplayerPeer.refuseNewConnections]). */ + @GodotApiMember public open fun _setRefuseNewConnections(pEnable: Boolean): Unit { } @@ -162,6 +181,7 @@ public open class MultiplayerPeerExtension : MultiplayerPeer() { * Called when the "refuse new connections" status is requested on this [MultiplayerPeer] (see * [MultiplayerPeer.refuseNewConnections]). */ + @GodotApiMember public open fun _isRefusingNewConnections(): Boolean { throw NotImplementedError("_is_refusing_new_connections is not implemented for MultiplayerPeerExtension") } @@ -170,6 +190,7 @@ public open class MultiplayerPeerExtension : MultiplayerPeer() { * Called to check if the server can act as a relay in the current configuration. See * [MultiplayerPeer.isServerRelaySupported]. */ + @GodotApiMember public open fun _isServerRelaySupported(): Boolean { throw NotImplementedError("_is_server_relay_supported is not implemented for MultiplayerPeerExtension") } @@ -178,6 +199,7 @@ public open class MultiplayerPeerExtension : MultiplayerPeer() { * Called when the connection status is requested on the [MultiplayerPeer] (see * [MultiplayerPeer.getConnectionStatus]). */ + @GodotApiMember public open fun _getConnectionStatus(): MultiplayerPeer.ConnectionStatus { throw NotImplementedError("_get_connection_status is not implemented for MultiplayerPeerExtension") } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/MultiplayerSpawner.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/MultiplayerSpawner.kt index 6e1d0de8a7..0143fcea9c 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/MultiplayerSpawner.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/MultiplayerSpawner.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Callable @@ -42,12 +43,14 @@ public open class MultiplayerSpawner : Node() { * Emitted when a spawnable scene or custom spawn was despawned by the multiplayer authority. Only * called on puppets. */ + @GodotApiMember public val despawned: Signal1 by Signal1 /** * Emitted when a spawnable scene or custom spawn was spawned by the multiplayer authority. Only * called on puppets. */ + @GodotApiMember public val spawned: Signal1 by Signal1 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/MultiplayerSynchronizer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/MultiplayerSynchronizer.kt index 6c54e6039f..678bf47385 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/MultiplayerSynchronizer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/MultiplayerSynchronizer.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Callable @@ -50,17 +51,20 @@ public open class MultiplayerSynchronizer : Node() { * Emitted when a new synchronization state is received by this synchronizer after the properties * have been updated. */ + @GodotApiMember public val synchronized: Signal0 by Signal0 /** * Emitted when a new delta synchronization state is received by this synchronizer after the * properties have been updated. */ + @GodotApiMember public val deltaSynchronized: Signal0 by Signal0 /** * Emitted when visibility of [forPeer] is updated. See [updateVisibility]. */ + @GodotApiMember public val visibilityChanged: Signal1 by Signal1 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationAgent2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationAgent2D.kt index 0423b496d3..dd6744fbea 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationAgent2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationAgent2D.kt @@ -9,6 +9,7 @@ package godot import godot.NavigationPathQueryParameters2D.PathMetadataFlagsValue import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Color @@ -57,6 +58,7 @@ public open class NavigationAgent2D : Node() { * - because navigation map has changed. * - because agent pushed further away from the current path segment than the [pathMaxDistance]. */ + @GodotApiMember public val pathChanged: Signal0 by Signal0 /** @@ -67,6 +69,7 @@ public open class NavigationAgent2D : Node() { * It may not always be possible to reach the target but it should always be possible to reach the * final position. See [getFinalPosition]. */ + @GodotApiMember public val targetReached: Signal0 by Signal0 /** @@ -79,6 +82,7 @@ public open class NavigationAgent2D : Node() { * - `rid`: The [RID] of the containing navigation primitive (region or link). * - `owner`: The object which manages the containing navigation primitive (region or link). */ + @GodotApiMember public val waypointReached: Signal1> by Signal1 /** @@ -95,6 +99,7 @@ public open class NavigationAgent2D : Node() { * - `link_exit_position`: If `owner` is available and the owner is a [NavigationLink2D], it will * contain the global position of the link's point which the agent is exiting. */ + @GodotApiMember public val linkReached: Signal1> by Signal1 /** @@ -103,12 +108,14 @@ public open class NavigationAgent2D : Node() { * of the path is reached. This signal is emitted only once per loaded path. * This signal will be emitted just after [signal target_reached] when the target is reachable. */ + @GodotApiMember public val navigationFinished: Signal0 by Signal0 /** * Notifies when the collision avoidance velocity is calculated. Emitted every update as long as * [avoidanceEnabled] is `true` and the agent has a navigation map. */ + @GodotApiMember public val velocityComputed: Signal1 by Signal1 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationAgent3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationAgent3D.kt index 4ee242913d..b96378091a 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationAgent3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationAgent3D.kt @@ -9,6 +9,7 @@ package godot import godot.NavigationPathQueryParameters3D.PathMetadataFlagsValue import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Color @@ -57,6 +58,7 @@ public open class NavigationAgent3D : Node() { * - because navigation map has changed. * - because agent pushed further away from the current path segment than the [pathMaxDistance]. */ + @GodotApiMember public val pathChanged: Signal0 by Signal0 /** @@ -67,6 +69,7 @@ public open class NavigationAgent3D : Node() { * It may not always be possible to reach the target but it should always be possible to reach the * final position. See [getFinalPosition]. */ + @GodotApiMember public val targetReached: Signal0 by Signal0 /** @@ -79,6 +82,7 @@ public open class NavigationAgent3D : Node() { * - `rid`: The [RID] of the containing navigation primitive (region or link). * - `owner`: The object which manages the containing navigation primitive (region or link). */ + @GodotApiMember public val waypointReached: Signal1> by Signal1 /** @@ -95,6 +99,7 @@ public open class NavigationAgent3D : Node() { * - `link_exit_position`: If `owner` is available and the owner is a [NavigationLink3D], it will * contain the global position of the link's point which the agent is exiting. */ + @GodotApiMember public val linkReached: Signal1> by Signal1 /** @@ -103,12 +108,14 @@ public open class NavigationAgent3D : Node() { * of the path is reached. This signal is emitted only once per loaded path. * This signal will be emitted just after [signal target_reached] when the target is reachable. */ + @GodotApiMember public val navigationFinished: Signal0 by Signal0 /** * Notifies when the collision avoidance velocity is calculated. Emitted every update as long as * [avoidanceEnabled] is `true` and the agent has a navigation map. */ + @GodotApiMember public val velocityComputed: Signal1 by Signal1 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationRegion2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationRegion2D.kt index ae0f5e07b5..9943e795d5 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationRegion2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationRegion2D.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.RID @@ -51,11 +52,13 @@ public open class NavigationRegion2D : Node2D() { * Emitted when the used navigation polygon is replaced or changes to the internals of the current * navigation polygon are committed. */ + @GodotApiMember public val navigationPolygonChanged: Signal0 by Signal0 /** * Emitted when a navigation polygon bake operation is completed. */ + @GodotApiMember public val bakeFinished: Signal0 by Signal0 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationRegion3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationRegion3D.kt index 3fe112e9ab..b42580f318 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationRegion3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationRegion3D.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.RID @@ -50,11 +51,13 @@ public open class NavigationRegion3D : Node3D() { /** * Notifies when the [NavigationMesh] has changed. */ + @GodotApiMember public val navigationMeshChanged: Signal0 by Signal0 /** * Notifies when the navigation mesh bake operation is completed. */ + @GodotApiMember public val bakeFinished: Signal0 by Signal0 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationServer2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationServer2D.kt index eecf940cec..fccadf115a 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationServer2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationServer2D.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Callable @@ -66,12 +67,14 @@ public object NavigationServer2D : Object() { /** * Emitted when a navigation map is updated, when a region moves or is modified. */ + @GodotApiMember @JvmStatic public val mapChanged: Signal1 by Signal1 /** * Emitted when navigation debug settings are changed. Only available in debug builds. */ + @GodotApiMember @JvmStatic public val navigationDebugChanged: Signal0 by Signal0 diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationServer3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationServer3D.kt index 4c4a3c770b..a4fcdf1d59 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationServer3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationServer3D.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Callable @@ -66,18 +67,21 @@ public object NavigationServer3D : Object() { /** * Emitted when a navigation map is updated, when a region moves or is modified. */ + @GodotApiMember @JvmStatic public val mapChanged: Signal1 by Signal1 /** * Emitted when navigation debug settings are changed. Only available in debug builds. */ + @GodotApiMember @JvmStatic public val navigationDebugChanged: Signal0 by Signal0 /** * Emitted when avoidance debug settings are changed. Only available in debug builds. */ + @GodotApiMember @JvmStatic public val avoidanceDebugChanged: Signal0 by Signal0 diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/NinePatchRect.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/NinePatchRect.kt index f6f053ebf7..c1b0deba8a 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/NinePatchRect.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/NinePatchRect.kt @@ -8,6 +8,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Rect2 @@ -37,6 +38,7 @@ public open class NinePatchRect : Control() { /** * Emitted when the node's texture changes. */ + @GodotApiMember public val textureChanged: Signal0 by Signal0 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Node.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Node.kt index dae6f01e1e..4c7d0576a9 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Node.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Node.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.NodePath @@ -103,17 +104,20 @@ public open class Node : Object() { /** * Emitted when the node is considered ready, after [_ready] is called. */ + @GodotApiMember public val ready: Signal0 by Signal0 /** * Emitted when the node's [name] is changed, if the node is inside the tree. */ + @GodotApiMember public val renamed: Signal0 by Signal0 /** * Emitted when the node enters the tree. * This signal is emitted *after* the related [NOTIFICATION_ENTER_TREE] notification. */ + @GodotApiMember public val treeEntered: Signal0 by Signal0 /** @@ -122,12 +126,14 @@ public open class Node : Object() { * This signal is emitted *after* the node's [_exitTree], and *before* the related * [NOTIFICATION_EXIT_TREE]. */ + @GodotApiMember public val treeExiting: Signal0 by Signal0 /** * Emitted after the node exits the tree and is no longer active. * This signal is emitted *after* the related [NOTIFICATION_EXIT_TREE] notification. */ + @GodotApiMember public val treeExited: Signal0 by Signal0 /** @@ -136,6 +142,7 @@ public open class Node : Object() { * This signal is emitted *after* the child node's own [NOTIFICATION_ENTER_TREE] and [signal * tree_entered]. */ + @GodotApiMember public val childEnteredTree: Signal1 by Signal1 /** @@ -145,12 +152,14 @@ public open class Node : Object() { * When this signal is received, the child [node] is still accessible inside the tree. This signal * is emitted *after* the child node's own [signal tree_exiting] and [NOTIFICATION_EXIT_TREE]. */ + @GodotApiMember public val childExitingTree: Signal1 by Signal1 /** * Emitted when the list of children is changed. This happens when child nodes are added, moved or * removed. */ + @GodotApiMember public val childOrderChanged: Signal0 by Signal0 /** @@ -158,11 +167,13 @@ public open class Node : Object() { * This signal is emitted *after* [node] has been added as a child of the original parent node, * but *before* all original child nodes have been reparented to [node]. */ + @GodotApiMember public val replacingBy: Signal1 by Signal1 /** * Emitted when the node's editor description field changed. */ + @GodotApiMember public val editorDescriptionChanged: Signal1 by Signal1 /** @@ -596,6 +607,7 @@ public open class Node : Object() { * **Note:** This method is only called if the node is present in the scene tree (i.e. if it's not * an orphan). */ + @GodotApiMember public open fun _process(delta: Double): Unit { } @@ -609,6 +621,7 @@ public open class Node : Object() { * **Note:** This method is only called if the node is present in the scene tree (i.e. if it's not * an orphan). */ + @GodotApiMember public open fun _physicsProcess(delta: Double): Unit { } @@ -618,6 +631,7 @@ public open class Node : Object() { * called first, and then that of the children. * Corresponds to the [NOTIFICATION_ENTER_TREE] notification in [Object.Notification]. */ + @GodotApiMember public open fun _enterTree(): Unit { } @@ -629,6 +643,7 @@ public open class Node : Object() { * [signal tree_exiting]. To get notified when the node has already left the active tree, connect to * the [signal tree_exited]. */ + @GodotApiMember public open fun _exitTree(): Unit { } @@ -645,6 +660,7 @@ public open class Node : Object() { * bypassed by requesting another call with [requestReady], which may be called anywhere before * adding the node again. */ + @GodotApiMember public open fun _ready(): Unit { } @@ -666,6 +682,7 @@ public open class Node : Object() { * return [] * [/codeblock] */ + @GodotApiMember public open fun _getConfigurationWarnings(): PackedStringArray { throw NotImplementedError("_get_configuration_warnings is not implemented for Node") } @@ -682,6 +699,7 @@ public open class Node : Object() { * **Note:** This method is only called if the node is present in the scene tree (i.e. if it's not * an orphan). */ + @GodotApiMember public open fun _input(event: InputEvent?): Unit { } @@ -698,6 +716,7 @@ public open class Node : Object() { * **Note:** This method is only called if the node is present in the scene tree (i.e. if it's not * orphan). */ + @GodotApiMember public open fun _shortcutInput(event: InputEvent?): Unit { } @@ -716,6 +735,7 @@ public open class Node : Object() { * **Note:** This method is only called if the node is present in the scene tree (i.e. if it's not * an orphan). */ + @GodotApiMember public open fun _unhandledInput(event: InputEvent?): Unit { } @@ -736,6 +756,7 @@ public open class Node : Object() { * **Note:** This method is only called if the node is present in the scene tree (i.e. if it's not * an orphan). */ + @GodotApiMember public open fun _unhandledKeyInput(event: InputEvent?): Unit { } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Node3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Node3D.kt index e064abe759..bd0ebaca0e 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Node3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Node3D.kt @@ -8,6 +8,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Basis @@ -58,6 +59,7 @@ public open class Node3D : Node() { /** * Emitted when node visibility changes. */ + @GodotApiMember public val visibilityChanged: Signal0 by Signal0 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Object.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Object.kt index 9f92141346..bd17f729c0 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Object.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Object.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Callable @@ -88,11 +89,13 @@ public open class Object : KtObject() { * **Note:** When this signal is emitted, the new script is not initialized yet. If you need to * access the new script, defer connections to this signal with [CONNECT_DEFERRED]. */ + @GodotApiMember public val scriptChanged: Signal0 by Signal0 /** * Emitted when [notifyPropertyListChanged] is called. */ + @GodotApiMember public val propertyListChanged: Signal0 by Signal0 public override fun new(scriptIndex: Int): Unit { diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRExtensionWrapperExtension.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRExtensionWrapperExtension.kt index fc3a8b20c9..bbec21c609 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRExtensionWrapperExtension.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRExtensionWrapperExtension.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Dictionary @@ -39,6 +40,7 @@ public open class OpenXRExtensionWrapperExtension : Object() { * - If the `bool *` points to a boolean, the boolean will be updated to `true` if the extension * is enabled. */ + @GodotApiMember public open fun _getRequestedExtensions(): Dictionary { throw NotImplementedError("_get_requested_extensions is not implemented for OpenXRExtensionWrapperExtension") } @@ -49,6 +51,7 @@ public open class OpenXRExtensionWrapperExtension : Object() { * This will only be called if the extension previously registered itself with * [OpenXRAPIExtension.registerCompositionLayerProvider]. */ + @GodotApiMember public open fun _getCompositionLayerCount(): Int { throw NotImplementedError("_get_composition_layer_count is not implemented for OpenXRExtensionWrapperExtension") } @@ -59,6 +62,7 @@ public open class OpenXRExtensionWrapperExtension : Object() { * This will only be called if the extension previously registered itself with * [OpenXRAPIExtension.registerCompositionLayerProvider]. */ + @GodotApiMember public open fun _getCompositionLayer(index: Int): Long { throw NotImplementedError("_get_composition_layer is not implemented for OpenXRExtensionWrapperExtension") } @@ -71,6 +75,7 @@ public open class OpenXRExtensionWrapperExtension : Object() { * This will only be called if the extension previously registered itself with * [OpenXRAPIExtension.registerCompositionLayerProvider]. */ + @GodotApiMember public open fun _getCompositionLayerOrder(index: Int): Int { throw NotImplementedError("_get_composition_layer_order is not implemented for OpenXRExtensionWrapperExtension") } @@ -79,6 +84,7 @@ public open class OpenXRExtensionWrapperExtension : Object() { * Returns a [PackedStringArray] of positional tracker names that are used within the extension * wrapper. */ + @GodotApiMember public open fun _getSuggestedTrackerNames(): PackedStringArray { throw NotImplementedError("_get_suggested_tracker_names is not implemented for OpenXRExtensionWrapperExtension") } @@ -90,30 +96,35 @@ public open class OpenXRExtensionWrapperExtension : Object() { * system. The controller data is used to setup action maps for users who may have access to the * relevant hardware. */ + @GodotApiMember public open fun _onRegisterMetadata(): Unit { } /** * Called before the OpenXR instance is created. */ + @GodotApiMember public open fun _onBeforeInstanceCreated(): Unit { } /** * Called right after the OpenXR instance is created. */ + @GodotApiMember public open fun _onInstanceCreated(instance: Long): Unit { } /** * Called right before the OpenXR instance is destroyed. */ + @GodotApiMember public open fun _onInstanceDestroyed(): Unit { } /** * Called right after the OpenXR session is created. */ + @GodotApiMember public open fun _onSessionCreated(session: Long): Unit { } @@ -122,30 +133,35 @@ public open class OpenXRExtensionWrapperExtension : Object() { * processing steps of the main loop. During this step controller data is queried and made available * to game logic. */ + @GodotApiMember public open fun _onProcess(): Unit { } /** * Called right before the XR viewports begin their rendering step. */ + @GodotApiMember public open fun _onPreRender(): Unit { } /** * Called right after the main swapchains are (re)created. */ + @GodotApiMember public open fun _onMainSwapchainsCreated(): Unit { } /** * Called right before the OpenXR session is destroyed. */ + @GodotApiMember public open fun _onSessionDestroyed(): Unit { } /** * Called when the OpenXR session state is changed to idle. */ + @GodotApiMember public open fun _onStateIdle(): Unit { } @@ -153,6 +169,7 @@ public open class OpenXRExtensionWrapperExtension : Object() { * Called when the OpenXR session state is changed to ready. This means OpenXR is ready to set up * the session. */ + @GodotApiMember public open fun _onStateReady(): Unit { } @@ -160,6 +177,7 @@ public open class OpenXRExtensionWrapperExtension : Object() { * Called when the OpenXR session state is changed to synchronized. OpenXR also returns to this * state when the application loses focus. */ + @GodotApiMember public open fun _onStateSynchronized(): Unit { } @@ -167,6 +185,7 @@ public open class OpenXRExtensionWrapperExtension : Object() { * Called when the OpenXR session state is changed to visible. This means OpenXR is now ready to * receive frames. */ + @GodotApiMember public open fun _onStateVisible(): Unit { } @@ -174,24 +193,28 @@ public open class OpenXRExtensionWrapperExtension : Object() { * Called when the OpenXR session state is changed to focused. This state is the active state when * the game runs. */ + @GodotApiMember public open fun _onStateFocused(): Unit { } /** * Called when the OpenXR session state is changed to stopping. */ + @GodotApiMember public open fun _onStateStopping(): Unit { } /** * Called when the OpenXR session state is changed to loss pending. */ + @GodotApiMember public open fun _onStateLossPending(): Unit { } /** * Called when the OpenXR session state is changed to exiting. */ + @GodotApiMember public open fun _onStateExiting(): Unit { } @@ -199,6 +222,7 @@ public open class OpenXRExtensionWrapperExtension : Object() { * Gets an array of [Dictionary]s that represent properties, just like [Object.GetPropertyList], * that will be added to [OpenXRCompositionLayer] nodes. */ + @GodotApiMember public open fun _getViewportCompositionLayerExtensionProperties(): VariantArray> { throw NotImplementedError("_get_viewport_composition_layer_extension_properties is not implemented for OpenXRExtensionWrapperExtension") @@ -208,6 +232,7 @@ public open class OpenXRExtensionWrapperExtension : Object() { * Gets a [Dictionary] containing the default values for the properties returned by * [_getViewportCompositionLayerExtensionProperties]. */ + @GodotApiMember public open fun _getViewportCompositionLayerExtensionPropertyDefaults(): Dictionary { throw NotImplementedError("_get_viewport_composition_layer_extension_property_defaults is not implemented for OpenXRExtensionWrapperExtension") } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRInterface.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRInterface.kt index f64e8c19bd..0d8fe05ec7 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRInterface.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRInterface.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Quaternion @@ -49,42 +50,50 @@ public open class OpenXRInterface : XRInterface() { /** * Informs our OpenXR session has been started. */ + @GodotApiMember public val sessionBegun: Signal0 by Signal0 /** * Informs our OpenXR session is stopping. */ + @GodotApiMember public val sessionStopping: Signal0 by Signal0 /** * Informs our OpenXR session now has focus. */ + @GodotApiMember public val sessionFocussed: Signal0 by Signal0 /** * Informs our OpenXR session is now visible (output is being sent to the HMD). */ + @GodotApiMember public val sessionVisible: Signal0 by Signal0 /** * Informs our OpenXR session is in the process of being lost. */ + @GodotApiMember public val sessionLossPending: Signal0 by Signal0 /** * Informs our OpenXR instance is exiting. */ + @GodotApiMember public val instanceExiting: Signal0 by Signal0 /** * Informs the user queued a recenter of the player position. */ + @GodotApiMember public val poseRecentered: Signal0 by Signal0 /** * Informs the user the HMD refresh rate has changed. * **Note:** Only emitted if XR runtime supports the refresh rate extension. */ + @GodotApiMember public val refreshRateChanged: Signal1 by Signal1 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/OptionButton.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/OptionButton.kt index 27e00ca2eb..4fe38f6102 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/OptionButton.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/OptionButton.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Signal1 @@ -43,6 +44,7 @@ public open class OptionButton : Button() { * passed as argument. * [allowReselect] must be enabled to reselect an item. */ + @GodotApiMember public val itemSelected: Signal1 by Signal1 /** @@ -50,6 +52,7 @@ public open class OptionButton : Button() { * [ProjectSettings.input/uiDown] input actions. The index of the item selected is passed as * argument. */ + @GodotApiMember public val itemFocused: Signal1 by Signal1 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PacketPeerExtension.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PacketPeerExtension.kt index c050cbced3..d8e0049519 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PacketPeerExtension.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PacketPeerExtension.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import kotlin.Int import kotlin.NotImplementedError @@ -18,10 +19,12 @@ public open class PacketPeerExtension : PacketPeer() { callConstructor(ENGINECLASS_PACKETPEEREXTENSION, scriptIndex) } + @GodotApiMember public open fun _getAvailablePacketCount(): Int { throw NotImplementedError("_get_available_packet_count is not implemented for PacketPeerExtension") } + @GodotApiMember public open fun _getMaxPacketSize(): Int { throw NotImplementedError("_get_max_packet_size is not implemented for PacketPeerExtension") } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Path3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Path3D.kt index fb099a5380..cdf5b5c279 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Path3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Path3D.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Signal0 @@ -29,6 +30,7 @@ public open class Path3D : Node3D() { /** * Emitted when the [curve] changes. */ + @GodotApiMember public val curveChanged: Signal0 by Signal0 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicalBone3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicalBone3D.kt index 7bd796dbc7..265e3c2aee 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicalBone3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicalBone3D.kt @@ -8,6 +8,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Transform3D @@ -375,6 +376,7 @@ public open class PhysicalBone3D : PhysicsBody3D() { * [customIntegrator] property allows you to disable the standard force integration and do fully * custom force integration for a body. */ + @GodotApiMember public open fun _integrateForces(state: PhysicsDirectBodyState3D?): Unit { } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsDirectBodyState2DExtension.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsDirectBodyState2DExtension.kt index f592d8ea8c..08099c286c 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsDirectBodyState2DExtension.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsDirectBodyState2DExtension.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.core.RID import godot.core.Transform2D @@ -34,6 +35,7 @@ public open class PhysicsDirectBodyState2DExtension : PhysicsDirectBodyState2D() * Implement to override the behavior of [PhysicsDirectBodyState2D.totalGravity] and its * respective getter. */ + @GodotApiMember public open fun _getTotalGravity(): Vector2 { throw NotImplementedError("_get_total_gravity is not implemented for PhysicsDirectBodyState2DExtension") } @@ -42,6 +44,7 @@ public open class PhysicsDirectBodyState2DExtension : PhysicsDirectBodyState2D() * Implement to override the behavior of [PhysicsDirectBodyState2D.totalLinearDamp] and its * respective getter. */ + @GodotApiMember public open fun _getTotalLinearDamp(): Float { throw NotImplementedError("_get_total_linear_damp is not implemented for PhysicsDirectBodyState2DExtension") } @@ -50,6 +53,7 @@ public open class PhysicsDirectBodyState2DExtension : PhysicsDirectBodyState2D() * Implement to override the behavior of [PhysicsDirectBodyState2D.totalAngularDamp] and its * respective getter. */ + @GodotApiMember public open fun _getTotalAngularDamp(): Float { throw NotImplementedError("_get_total_angular_damp is not implemented for PhysicsDirectBodyState2DExtension") } @@ -58,6 +62,7 @@ public open class PhysicsDirectBodyState2DExtension : PhysicsDirectBodyState2D() * Implement to override the behavior of [PhysicsDirectBodyState2D.centerOfMass] and its * respective getter. */ + @GodotApiMember public open fun _getCenterOfMass(): Vector2 { throw NotImplementedError("_get_center_of_mass is not implemented for PhysicsDirectBodyState2DExtension") } @@ -66,6 +71,7 @@ public open class PhysicsDirectBodyState2DExtension : PhysicsDirectBodyState2D() * Implement to override the behavior of [PhysicsDirectBodyState2D.centerOfMassLocal] and its * respective getter. */ + @GodotApiMember public open fun _getCenterOfMassLocal(): Vector2 { throw NotImplementedError("_get_center_of_mass_local is not implemented for PhysicsDirectBodyState2DExtension") } @@ -74,6 +80,7 @@ public open class PhysicsDirectBodyState2DExtension : PhysicsDirectBodyState2D() * Implement to override the behavior of [PhysicsDirectBodyState2D.inverseMass] and its respective * getter. */ + @GodotApiMember public open fun _getInverseMass(): Float { throw NotImplementedError("_get_inverse_mass is not implemented for PhysicsDirectBodyState2DExtension") } @@ -82,6 +89,7 @@ public open class PhysicsDirectBodyState2DExtension : PhysicsDirectBodyState2D() * Implement to override the behavior of [PhysicsDirectBodyState2D.inverseInertia] and its * respective getter. */ + @GodotApiMember public open fun _getInverseInertia(): Float { throw NotImplementedError("_get_inverse_inertia is not implemented for PhysicsDirectBodyState2DExtension") } @@ -90,6 +98,7 @@ public open class PhysicsDirectBodyState2DExtension : PhysicsDirectBodyState2D() * Implement to override the behavior of [PhysicsDirectBodyState2D.linearVelocity] and its * respective setter. */ + @GodotApiMember public open fun _setLinearVelocity(velocity: Vector2): Unit { } @@ -97,6 +106,7 @@ public open class PhysicsDirectBodyState2DExtension : PhysicsDirectBodyState2D() * Implement to override the behavior of [PhysicsDirectBodyState2D.linearVelocity] and its * respective getter. */ + @GodotApiMember public open fun _getLinearVelocity(): Vector2 { throw NotImplementedError("_get_linear_velocity is not implemented for PhysicsDirectBodyState2DExtension") } @@ -105,6 +115,7 @@ public open class PhysicsDirectBodyState2DExtension : PhysicsDirectBodyState2D() * Implement to override the behavior of [PhysicsDirectBodyState2D.angularVelocity] and its * respective setter. */ + @GodotApiMember public open fun _setAngularVelocity(velocity: Float): Unit { } @@ -112,6 +123,7 @@ public open class PhysicsDirectBodyState2DExtension : PhysicsDirectBodyState2D() * Implement to override the behavior of [PhysicsDirectBodyState2D.angularVelocity] and its * respective getter. */ + @GodotApiMember public open fun _getAngularVelocity(): Float { throw NotImplementedError("_get_angular_velocity is not implemented for PhysicsDirectBodyState2DExtension") } @@ -120,6 +132,7 @@ public open class PhysicsDirectBodyState2DExtension : PhysicsDirectBodyState2D() * Implement to override the behavior of [PhysicsDirectBodyState2D.transform] and its respective * setter. */ + @GodotApiMember public open fun _setTransform(transform: Transform2D): Unit { } @@ -127,6 +140,7 @@ public open class PhysicsDirectBodyState2DExtension : PhysicsDirectBodyState2D() * Implement to override the behavior of [PhysicsDirectBodyState2D.transform] and its respective * getter. */ + @GodotApiMember public open fun _getTransform(): Transform2D { throw NotImplementedError("_get_transform is not implemented for PhysicsDirectBodyState2DExtension") } @@ -134,6 +148,7 @@ public open class PhysicsDirectBodyState2DExtension : PhysicsDirectBodyState2D() /** * Overridable version of [PhysicsDirectBodyState2D.getVelocityAtLocalPosition]. */ + @GodotApiMember public open fun _getVelocityAtLocalPosition(localPosition: Vector2): Vector2 { throw NotImplementedError("_get_velocity_at_local_position is not implemented for PhysicsDirectBodyState2DExtension") } @@ -141,66 +156,77 @@ public open class PhysicsDirectBodyState2DExtension : PhysicsDirectBodyState2D() /** * Overridable version of [PhysicsDirectBodyState2D.applyCentralImpulse]. */ + @GodotApiMember public open fun _applyCentralImpulse(impulse: Vector2): Unit { } /** * Overridable version of [PhysicsDirectBodyState2D.applyImpulse]. */ + @GodotApiMember public open fun _applyImpulse(impulse: Vector2, position: Vector2): Unit { } /** * Overridable version of [PhysicsDirectBodyState2D.applyTorqueImpulse]. */ + @GodotApiMember public open fun _applyTorqueImpulse(impulse: Float): Unit { } /** * Overridable version of [PhysicsDirectBodyState2D.applyCentralForce]. */ + @GodotApiMember public open fun _applyCentralForce(force: Vector2): Unit { } /** * Overridable version of [PhysicsDirectBodyState2D.applyForce]. */ + @GodotApiMember public open fun _applyForce(force: Vector2, position: Vector2): Unit { } /** * Overridable version of [PhysicsDirectBodyState2D.applyTorque]. */ + @GodotApiMember public open fun _applyTorque(torque: Float): Unit { } /** * Overridable version of [PhysicsDirectBodyState2D.addConstantCentralForce]. */ + @GodotApiMember public open fun _addConstantCentralForce(force: Vector2): Unit { } /** * Overridable version of [PhysicsDirectBodyState2D.addConstantForce]. */ + @GodotApiMember public open fun _addConstantForce(force: Vector2, position: Vector2): Unit { } /** * Overridable version of [PhysicsDirectBodyState2D.addConstantTorque]. */ + @GodotApiMember public open fun _addConstantTorque(torque: Float): Unit { } /** * Overridable version of [PhysicsDirectBodyState2D.setConstantForce]. */ + @GodotApiMember public open fun _setConstantForce(force: Vector2): Unit { } /** * Overridable version of [PhysicsDirectBodyState2D.getConstantForce]. */ + @GodotApiMember public open fun _getConstantForce(): Vector2 { throw NotImplementedError("_get_constant_force is not implemented for PhysicsDirectBodyState2DExtension") } @@ -208,12 +234,14 @@ public open class PhysicsDirectBodyState2DExtension : PhysicsDirectBodyState2D() /** * Overridable version of [PhysicsDirectBodyState2D.setConstantTorque]. */ + @GodotApiMember public open fun _setConstantTorque(torque: Float): Unit { } /** * Overridable version of [PhysicsDirectBodyState2D.getConstantTorque]. */ + @GodotApiMember public open fun _getConstantTorque(): Float { throw NotImplementedError("_get_constant_torque is not implemented for PhysicsDirectBodyState2DExtension") } @@ -222,6 +250,7 @@ public open class PhysicsDirectBodyState2DExtension : PhysicsDirectBodyState2D() * Implement to override the behavior of [PhysicsDirectBodyState2D.sleeping] and its respective * setter. */ + @GodotApiMember public open fun _setSleepState(enabled: Boolean): Unit { } @@ -229,6 +258,7 @@ public open class PhysicsDirectBodyState2DExtension : PhysicsDirectBodyState2D() * Implement to override the behavior of [PhysicsDirectBodyState2D.sleeping] and its respective * getter. */ + @GodotApiMember public open fun _isSleeping(): Boolean { throw NotImplementedError("_is_sleeping is not implemented for PhysicsDirectBodyState2DExtension") } @@ -236,6 +266,7 @@ public open class PhysicsDirectBodyState2DExtension : PhysicsDirectBodyState2D() /** * Overridable version of [PhysicsDirectBodyState2D.getContactCount]. */ + @GodotApiMember public open fun _getContactCount(): Int { throw NotImplementedError("_get_contact_count is not implemented for PhysicsDirectBodyState2DExtension") } @@ -243,6 +274,7 @@ public open class PhysicsDirectBodyState2DExtension : PhysicsDirectBodyState2D() /** * Overridable version of [PhysicsDirectBodyState2D.getContactLocalPosition]. */ + @GodotApiMember public open fun _getContactLocalPosition(contactIdx: Int): Vector2 { throw NotImplementedError("_get_contact_local_position is not implemented for PhysicsDirectBodyState2DExtension") } @@ -250,6 +282,7 @@ public open class PhysicsDirectBodyState2DExtension : PhysicsDirectBodyState2D() /** * Overridable version of [PhysicsDirectBodyState2D.getContactLocalNormal]. */ + @GodotApiMember public open fun _getContactLocalNormal(contactIdx: Int): Vector2 { throw NotImplementedError("_get_contact_local_normal is not implemented for PhysicsDirectBodyState2DExtension") } @@ -257,6 +290,7 @@ public open class PhysicsDirectBodyState2DExtension : PhysicsDirectBodyState2D() /** * Overridable version of [PhysicsDirectBodyState2D.getContactLocalShape]. */ + @GodotApiMember public open fun _getContactLocalShape(contactIdx: Int): Int { throw NotImplementedError("_get_contact_local_shape is not implemented for PhysicsDirectBodyState2DExtension") } @@ -264,6 +298,7 @@ public open class PhysicsDirectBodyState2DExtension : PhysicsDirectBodyState2D() /** * Overridable version of [PhysicsDirectBodyState2D.getContactLocalVelocityAtPosition]. */ + @GodotApiMember public open fun _getContactLocalVelocityAtPosition(contactIdx: Int): Vector2 { throw NotImplementedError("_get_contact_local_velocity_at_position is not implemented for PhysicsDirectBodyState2DExtension") } @@ -271,6 +306,7 @@ public open class PhysicsDirectBodyState2DExtension : PhysicsDirectBodyState2D() /** * Overridable version of [PhysicsDirectBodyState2D.getContactCollider]. */ + @GodotApiMember public open fun _getContactCollider(contactIdx: Int): RID { throw NotImplementedError("_get_contact_collider is not implemented for PhysicsDirectBodyState2DExtension") } @@ -278,6 +314,7 @@ public open class PhysicsDirectBodyState2DExtension : PhysicsDirectBodyState2D() /** * Overridable version of [PhysicsDirectBodyState2D.getContactColliderPosition]. */ + @GodotApiMember public open fun _getContactColliderPosition(contactIdx: Int): Vector2 { throw NotImplementedError("_get_contact_collider_position is not implemented for PhysicsDirectBodyState2DExtension") } @@ -285,6 +322,7 @@ public open class PhysicsDirectBodyState2DExtension : PhysicsDirectBodyState2D() /** * Overridable version of [PhysicsDirectBodyState2D.getContactColliderId]. */ + @GodotApiMember public open fun _getContactColliderId(contactIdx: Int): Long { throw NotImplementedError("_get_contact_collider_id is not implemented for PhysicsDirectBodyState2DExtension") } @@ -292,6 +330,7 @@ public open class PhysicsDirectBodyState2DExtension : PhysicsDirectBodyState2D() /** * Overridable version of [PhysicsDirectBodyState2D.getContactColliderObject]. */ + @GodotApiMember public open fun _getContactColliderObject(contactIdx: Int): Object? { throw NotImplementedError("_get_contact_collider_object is not implemented for PhysicsDirectBodyState2DExtension") } @@ -299,6 +338,7 @@ public open class PhysicsDirectBodyState2DExtension : PhysicsDirectBodyState2D() /** * Overridable version of [PhysicsDirectBodyState2D.getContactColliderShape]. */ + @GodotApiMember public open fun _getContactColliderShape(contactIdx: Int): Int { throw NotImplementedError("_get_contact_collider_shape is not implemented for PhysicsDirectBodyState2DExtension") } @@ -306,6 +346,7 @@ public open class PhysicsDirectBodyState2DExtension : PhysicsDirectBodyState2D() /** * Overridable version of [PhysicsDirectBodyState2D.getContactColliderVelocityAtPosition]. */ + @GodotApiMember public open fun _getContactColliderVelocityAtPosition(contactIdx: Int): Vector2 { throw NotImplementedError("_get_contact_collider_velocity_at_position is not implemented for PhysicsDirectBodyState2DExtension") } @@ -313,6 +354,7 @@ public open class PhysicsDirectBodyState2DExtension : PhysicsDirectBodyState2D() /** * Overridable version of [PhysicsDirectBodyState2D.getContactImpulse]. */ + @GodotApiMember public open fun _getContactImpulse(contactIdx: Int): Vector2 { throw NotImplementedError("_get_contact_impulse is not implemented for PhysicsDirectBodyState2DExtension") } @@ -321,6 +363,7 @@ public open class PhysicsDirectBodyState2DExtension : PhysicsDirectBodyState2D() * Implement to override the behavior of [PhysicsDirectBodyState2D.step] and its respective * getter. */ + @GodotApiMember public open fun _getStep(): Float { throw NotImplementedError("_get_step is not implemented for PhysicsDirectBodyState2DExtension") } @@ -328,12 +371,14 @@ public open class PhysicsDirectBodyState2DExtension : PhysicsDirectBodyState2D() /** * Overridable version of [PhysicsDirectBodyState2D.integrateForces]. */ + @GodotApiMember public open fun _integrateForces(): Unit { } /** * Overridable version of [PhysicsDirectBodyState2D.getSpaceState]. */ + @GodotApiMember public open fun _getSpaceState(): PhysicsDirectSpaceState2D? { throw NotImplementedError("_get_space_state is not implemented for PhysicsDirectBodyState2DExtension") } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsDirectBodyState3DExtension.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsDirectBodyState3DExtension.kt index 348ad3a9e8..d7084310a5 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsDirectBodyState3DExtension.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsDirectBodyState3DExtension.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.core.Basis import godot.core.RID @@ -31,170 +32,216 @@ public open class PhysicsDirectBodyState3DExtension : PhysicsDirectBodyState3D() callConstructor(ENGINECLASS_PHYSICSDIRECTBODYSTATE3DEXTENSION, scriptIndex) } + @GodotApiMember public open fun _getTotalGravity(): Vector3 { throw NotImplementedError("_get_total_gravity is not implemented for PhysicsDirectBodyState3DExtension") } + @GodotApiMember public open fun _getTotalLinearDamp(): Float { throw NotImplementedError("_get_total_linear_damp is not implemented for PhysicsDirectBodyState3DExtension") } + @GodotApiMember public open fun _getTotalAngularDamp(): Float { throw NotImplementedError("_get_total_angular_damp is not implemented for PhysicsDirectBodyState3DExtension") } + @GodotApiMember public open fun _getCenterOfMass(): Vector3 { throw NotImplementedError("_get_center_of_mass is not implemented for PhysicsDirectBodyState3DExtension") } + @GodotApiMember public open fun _getCenterOfMassLocal(): Vector3 { throw NotImplementedError("_get_center_of_mass_local is not implemented for PhysicsDirectBodyState3DExtension") } + @GodotApiMember public open fun _getPrincipalInertiaAxes(): Basis { throw NotImplementedError("_get_principal_inertia_axes is not implemented for PhysicsDirectBodyState3DExtension") } + @GodotApiMember public open fun _getInverseMass(): Float { throw NotImplementedError("_get_inverse_mass is not implemented for PhysicsDirectBodyState3DExtension") } + @GodotApiMember public open fun _getInverseInertia(): Vector3 { throw NotImplementedError("_get_inverse_inertia is not implemented for PhysicsDirectBodyState3DExtension") } + @GodotApiMember public open fun _getInverseInertiaTensor(): Basis { throw NotImplementedError("_get_inverse_inertia_tensor is not implemented for PhysicsDirectBodyState3DExtension") } + @GodotApiMember public open fun _setLinearVelocity(velocity: Vector3): Unit { } + @GodotApiMember public open fun _getLinearVelocity(): Vector3 { throw NotImplementedError("_get_linear_velocity is not implemented for PhysicsDirectBodyState3DExtension") } + @GodotApiMember public open fun _setAngularVelocity(velocity: Vector3): Unit { } + @GodotApiMember public open fun _getAngularVelocity(): Vector3 { throw NotImplementedError("_get_angular_velocity is not implemented for PhysicsDirectBodyState3DExtension") } + @GodotApiMember public open fun _setTransform(transform: Transform3D): Unit { } + @GodotApiMember public open fun _getTransform(): Transform3D { throw NotImplementedError("_get_transform is not implemented for PhysicsDirectBodyState3DExtension") } + @GodotApiMember public open fun _getVelocityAtLocalPosition(localPosition: Vector3): Vector3 { throw NotImplementedError("_get_velocity_at_local_position is not implemented for PhysicsDirectBodyState3DExtension") } + @GodotApiMember public open fun _applyCentralImpulse(impulse: Vector3): Unit { } + @GodotApiMember public open fun _applyImpulse(impulse: Vector3, position: Vector3): Unit { } + @GodotApiMember public open fun _applyTorqueImpulse(impulse: Vector3): Unit { } + @GodotApiMember public open fun _applyCentralForce(force: Vector3): Unit { } + @GodotApiMember public open fun _applyForce(force: Vector3, position: Vector3): Unit { } + @GodotApiMember public open fun _applyTorque(torque: Vector3): Unit { } + @GodotApiMember public open fun _addConstantCentralForce(force: Vector3): Unit { } + @GodotApiMember public open fun _addConstantForce(force: Vector3, position: Vector3): Unit { } + @GodotApiMember public open fun _addConstantTorque(torque: Vector3): Unit { } + @GodotApiMember public open fun _setConstantForce(force: Vector3): Unit { } + @GodotApiMember public open fun _getConstantForce(): Vector3 { throw NotImplementedError("_get_constant_force is not implemented for PhysicsDirectBodyState3DExtension") } + @GodotApiMember public open fun _setConstantTorque(torque: Vector3): Unit { } + @GodotApiMember public open fun _getConstantTorque(): Vector3 { throw NotImplementedError("_get_constant_torque is not implemented for PhysicsDirectBodyState3DExtension") } + @GodotApiMember public open fun _setSleepState(enabled: Boolean): Unit { } + @GodotApiMember public open fun _isSleeping(): Boolean { throw NotImplementedError("_is_sleeping is not implemented for PhysicsDirectBodyState3DExtension") } + @GodotApiMember public open fun _getContactCount(): Int { throw NotImplementedError("_get_contact_count is not implemented for PhysicsDirectBodyState3DExtension") } + @GodotApiMember public open fun _getContactLocalPosition(contactIdx: Int): Vector3 { throw NotImplementedError("_get_contact_local_position is not implemented for PhysicsDirectBodyState3DExtension") } + @GodotApiMember public open fun _getContactLocalNormal(contactIdx: Int): Vector3 { throw NotImplementedError("_get_contact_local_normal is not implemented for PhysicsDirectBodyState3DExtension") } + @GodotApiMember public open fun _getContactImpulse(contactIdx: Int): Vector3 { throw NotImplementedError("_get_contact_impulse is not implemented for PhysicsDirectBodyState3DExtension") } + @GodotApiMember public open fun _getContactLocalShape(contactIdx: Int): Int { throw NotImplementedError("_get_contact_local_shape is not implemented for PhysicsDirectBodyState3DExtension") } + @GodotApiMember public open fun _getContactLocalVelocityAtPosition(contactIdx: Int): Vector3 { throw NotImplementedError("_get_contact_local_velocity_at_position is not implemented for PhysicsDirectBodyState3DExtension") } + @GodotApiMember public open fun _getContactCollider(contactIdx: Int): RID { throw NotImplementedError("_get_contact_collider is not implemented for PhysicsDirectBodyState3DExtension") } + @GodotApiMember public open fun _getContactColliderPosition(contactIdx: Int): Vector3 { throw NotImplementedError("_get_contact_collider_position is not implemented for PhysicsDirectBodyState3DExtension") } + @GodotApiMember public open fun _getContactColliderId(contactIdx: Int): Long { throw NotImplementedError("_get_contact_collider_id is not implemented for PhysicsDirectBodyState3DExtension") } + @GodotApiMember public open fun _getContactColliderObject(contactIdx: Int): Object? { throw NotImplementedError("_get_contact_collider_object is not implemented for PhysicsDirectBodyState3DExtension") } + @GodotApiMember public open fun _getContactColliderShape(contactIdx: Int): Int { throw NotImplementedError("_get_contact_collider_shape is not implemented for PhysicsDirectBodyState3DExtension") } + @GodotApiMember public open fun _getContactColliderVelocityAtPosition(contactIdx: Int): Vector3 { throw NotImplementedError("_get_contact_collider_velocity_at_position is not implemented for PhysicsDirectBodyState3DExtension") } + @GodotApiMember public open fun _getStep(): Float { throw NotImplementedError("_get_step is not implemented for PhysicsDirectBodyState3DExtension") } + @GodotApiMember public open fun _integrateForces(): Unit { } + @GodotApiMember public open fun _getSpaceState(): PhysicsDirectSpaceState3D? { throw NotImplementedError("_get_space_state is not implemented for PhysicsDirectBodyState3DExtension") } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsDirectSpaceState3DExtension.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsDirectSpaceState3DExtension.kt index 2185fdca2b..b6d7cc6bec 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsDirectSpaceState3DExtension.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsDirectSpaceState3DExtension.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.RID @@ -33,6 +34,7 @@ public open class PhysicsDirectSpaceState3DExtension : PhysicsDirectSpaceState3D callConstructor(ENGINECLASS_PHYSICSDIRECTSPACESTATE3DEXTENSION, scriptIndex) } + @GodotApiMember public open fun _getClosestPointToObjectVolume(`object`: RID, point: Vector3): Vector3 { throw NotImplementedError("_get_closest_point_to_object_volume is not implemented for PhysicsDirectSpaceState3DExtension") } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsServer3DRenderingServerHandler.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsServer3DRenderingServerHandler.kt index 0a11160add..04fb19f63b 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsServer3DRenderingServerHandler.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsServer3DRenderingServerHandler.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.AABB @@ -30,6 +31,7 @@ public open class PhysicsServer3DRenderingServerHandler : Object() { * specified by [vertexId]. * **Note:** The [vertex] parameter used to be of type `const void*` prior to Godot 4.2. */ + @GodotApiMember public open fun _setVertex(vertexId: Int, vertex: Vector3): Unit { } @@ -38,12 +40,14 @@ public open class PhysicsServer3DRenderingServerHandler : Object() { * specified by [vertexId]. * **Note:** The [normal] parameter used to be of type `const void*` prior to Godot 4.2. */ + @GodotApiMember public open fun _setNormal(vertexId: Int, normal: Vector3): Unit { } /** * Called by the [PhysicsServer3D] to set the bounding box for the [SoftBody3D]. */ + @GodotApiMember public open fun _setAabb(aabb: AABB): Unit { } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Popup.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Popup.kt index 51a7554675..4dda3dac52 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Popup.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Popup.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.core.Signal0 import kotlin.Int @@ -21,6 +22,7 @@ public open class Popup : Window() { /** * Emitted when the popup is hidden. */ + @GodotApiMember public val popupHide: Signal0 by Signal0 public override fun new(scriptIndex: Int): Unit { diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PopupMenu.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PopupMenu.kt index 510fc533df..a30cf2433e 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PopupMenu.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PopupMenu.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Color @@ -61,22 +62,26 @@ public open class PopupMenu : Popup() { * **Note:** If [id] is negative (either explicitly or due to overflow), this will return the * corresponding index instead. */ + @GodotApiMember public val idPressed: Signal1 by Signal1 /** * Emitted when the user navigated to an item of some [id] using the [ProjectSettings.input/uiUp] * or [ProjectSettings.input/uiDown] input action. */ + @GodotApiMember public val idFocused: Signal1 by Signal1 /** * Emitted when an item of some [index] is pressed or its accelerator is activated. */ + @GodotApiMember public val indexPressed: Signal1 by Signal1 /** * Emitted when any item is added, modified or removed. */ + @GodotApiMember public val menuChanged: Signal0 by Signal0 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PrimitiveMesh.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PrimitiveMesh.kt index a547f64078..055d764ee4 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PrimitiveMesh.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PrimitiveMesh.kt @@ -8,6 +8,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.AABB @@ -133,6 +134,7 @@ public open class PrimitiveMesh : Mesh() { * [Array] where each element is another Array of values required for the mesh (see the * [Mesh.ArrayType] constants). */ + @GodotApiMember public open fun _createMeshArray(): VariantArray { throw NotImplementedError("_create_mesh_array is not implemented for PrimitiveMesh") } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ProjectSettings.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ProjectSettings.kt index e67567a0ec..a58055e139 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ProjectSettings.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ProjectSettings.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Dictionary @@ -53,6 +54,7 @@ public object ProjectSettings : Object() { /** * Emitted when any setting is changed, up to once per process frame. */ + @GodotApiMember @JvmStatic public val settingsChanged: Signal0 by Signal0 diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Range.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Range.kt index 835e988f2e..2534388fa5 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Range.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Range.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Signal0 @@ -38,11 +39,13 @@ public open class Range : Control() { * **Note:** Unlike signals such as [signal LineEdit.text_changed], [signal value_changed] is also * emitted when [value] is set directly via code. */ + @GodotApiMember public val valueChanged: Signal1 by Signal1 /** * Emitted when [minValue], [maxValue], [page], or [step] change. */ + @GodotApiMember public val changed: Signal0 by Signal0 /** @@ -168,6 +171,7 @@ public open class Range : Control() { * Called when the [Range]'s value is changed (following the same conditions as [signal * value_changed]). */ + @GodotApiMember public open fun _valueChanged(newValue: Double): Unit { } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/RenderDataExtension.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/RenderDataExtension.kt index cda6c97917..d79d75b769 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/RenderDataExtension.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/RenderDataExtension.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.core.RID import kotlin.Int @@ -25,6 +26,7 @@ public open class RenderDataExtension : RenderData() { /** * Implement this in GDExtension to return the implementation's [RenderSceneBuffers] object. */ + @GodotApiMember public open fun _getRenderSceneBuffers(): RenderSceneBuffers? { throw NotImplementedError("_get_render_scene_buffers is not implemented for RenderDataExtension") } @@ -32,6 +34,7 @@ public open class RenderDataExtension : RenderData() { /** * Implement this in GDExtension to return the implementation's [RenderSceneDataExtension] object. */ + @GodotApiMember public open fun _getRenderSceneData(): RenderSceneData? { throw NotImplementedError("_get_render_scene_data is not implemented for RenderDataExtension") } @@ -39,6 +42,7 @@ public open class RenderDataExtension : RenderData() { /** * Implement this in GDExtension to return the [RID] of the implementation's environment object. */ + @GodotApiMember public open fun _getEnvironment(): RID { throw NotImplementedError("_get_environment is not implemented for RenderDataExtension") } @@ -47,6 +51,7 @@ public open class RenderDataExtension : RenderData() { * Implement this in GDExtension to return the [RID] for the implementation's camera attributes * object. */ + @GodotApiMember public open fun _getCameraAttributes(): RID { throw NotImplementedError("_get_camera_attributes is not implemented for RenderDataExtension") } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/RenderSceneBuffersExtension.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/RenderSceneBuffersExtension.kt index 72869b46a2..7ce747278c 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/RenderSceneBuffersExtension.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/RenderSceneBuffersExtension.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import kotlin.Boolean import kotlin.Float @@ -25,24 +26,28 @@ public open class RenderSceneBuffersExtension : RenderSceneBuffers() { /** * Implement this in GDExtension to handle the (re)sizing of a viewport. */ + @GodotApiMember public open fun _configure(config: RenderSceneBuffersConfiguration?): Unit { } /** * Implement this in GDExtension to record a new FSR sharpness value. */ + @GodotApiMember public open fun _setFsrSharpness(fsrSharpness: Float): Unit { } /** * Implement this in GDExtension to change the texture mipmap bias. */ + @GodotApiMember public open fun _setTextureMipmapBias(textureMipmapBias: Float): Unit { } /** * Implement this in GDExtension to react to the debanding flag changing. */ + @GodotApiMember public open fun _setUseDebanding(useDebanding: Boolean): Unit { } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/RenderSceneDataExtension.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/RenderSceneDataExtension.kt index 5e53d8a74a..ea4ed858fe 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/RenderSceneDataExtension.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/RenderSceneDataExtension.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.core.Projection import godot.core.RID @@ -29,6 +30,7 @@ public open class RenderSceneDataExtension : RenderSceneData() { /** * Implement this in GDExtension to return the camera [Transform3D]. */ + @GodotApiMember public open fun _getCamTransform(): Transform3D { throw NotImplementedError("_get_cam_transform is not implemented for RenderSceneDataExtension") } @@ -36,6 +38,7 @@ public open class RenderSceneDataExtension : RenderSceneData() { /** * Implement this in GDExtension to return the camera [Projection]. */ + @GodotApiMember public open fun _getCamProjection(): Projection { throw NotImplementedError("_get_cam_projection is not implemented for RenderSceneDataExtension") } @@ -43,6 +46,7 @@ public open class RenderSceneDataExtension : RenderSceneData() { /** * Implement this in GDExtension to return the view count. */ + @GodotApiMember public open fun _getViewCount(): Long { throw NotImplementedError("_get_view_count is not implemented for RenderSceneDataExtension") } @@ -50,6 +54,7 @@ public open class RenderSceneDataExtension : RenderSceneData() { /** * Implement this in GDExtension to return the eye offset for the given [view]. */ + @GodotApiMember public open fun _getViewEyeOffset(view: Long): Vector3 { throw NotImplementedError("_get_view_eye_offset is not implemented for RenderSceneDataExtension") } @@ -57,6 +62,7 @@ public open class RenderSceneDataExtension : RenderSceneData() { /** * Implement this in GDExtension to return the view [Projection] for the given [view]. */ + @GodotApiMember public open fun _getViewProjection(view: Long): Projection { throw NotImplementedError("_get_view_projection is not implemented for RenderSceneDataExtension") } @@ -65,6 +71,7 @@ public open class RenderSceneDataExtension : RenderSceneData() { * Implement this in GDExtension to return the [RID] of the uniform buffer containing the scene * data as a UBO. */ + @GodotApiMember public open fun _getUniformBuffer(): RID { throw NotImplementedError("_get_uniform_buffer is not implemented for RenderSceneDataExtension") } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/RenderingServer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/RenderingServer.kt index 39217a67f0..5d6322fa65 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/RenderingServer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/RenderingServer.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.AABB @@ -175,6 +176,7 @@ public object RenderingServer : Object() { /** * Emitted at the beginning of the frame, before the RenderingServer updates all the Viewports. */ + @GodotApiMember @JvmStatic public val framePreDraw: Signal0 by Signal0 @@ -182,6 +184,7 @@ public object RenderingServer : Object() { * Emitted at the end of the frame, after the RenderingServer has finished updating all the * Viewports. */ + @GodotApiMember @JvmStatic public val framePostDraw: Signal0 by Signal0 diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Resource.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Resource.kt index f01b20a9f2..e60d0486b7 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Resource.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Resource.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.RID @@ -49,11 +50,13 @@ public open class Resource : RefCounted() { * **Note:** This signal is not emitted automatically for properties of custom resources. If * necessary, a setter needs to be created to emit the signal. */ + @GodotApiMember public val changed: Signal0 by Signal0 /** * Emitted by a newly duplicated resource with [resourceLocalToScene] set to `true`. */ + @GodotApiMember public val setupLocalToSceneRequested: Signal0 by Signal0 /** @@ -138,6 +141,7 @@ public open class Resource : RefCounted() { * damage = randi_range(10, 40) * [/codeblock] */ + @GodotApiMember public open fun _setupLocalToScene(): Unit { } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ResourceFormatLoader.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ResourceFormatLoader.kt index 687490e397..2927363229 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ResourceFormatLoader.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ResourceFormatLoader.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.core.Dictionary import godot.core.PackedStringArray @@ -42,6 +43,7 @@ public open class ResourceFormatLoader : RefCounted() { /** * Gets the list of extensions for files this loader is able to read. */ + @GodotApiMember public open fun _getRecognizedExtensions(): PackedStringArray { throw NotImplementedError("_get_recognized_extensions is not implemented for ResourceFormatLoader") } @@ -53,6 +55,7 @@ public open class ResourceFormatLoader : RefCounted() { * the ones provided by [_getRecognizedExtensions], and if the type is within the ones provided by * [_getResourceType]. */ + @GodotApiMember public open fun _recognizePath(path: String, type: StringName): Boolean { throw NotImplementedError("_recognize_path is not implemented for ResourceFormatLoader") } @@ -62,6 +65,7 @@ public open class ResourceFormatLoader : RefCounted() { * **Note:** Custom resource types defined by scripts aren't known by the [ClassDB], so you might * just handle `"Resource"` for them. */ + @GodotApiMember public open fun _handlesType(type: StringName): Boolean { throw NotImplementedError("_handles_type is not implemented for ResourceFormatLoader") } @@ -72,6 +76,7 @@ public open class ResourceFormatLoader : RefCounted() { * **Note:** Custom resource types defined by scripts aren't known by the [ClassDB], so you might * just return `"Resource"` for them. */ + @GodotApiMember public open fun _getResourceType(path: String): String { throw NotImplementedError("_get_resource_type is not implemented for ResourceFormatLoader") } @@ -80,10 +85,12 @@ public open class ResourceFormatLoader : RefCounted() { * Returns the script class name associated with the [Resource] under the given [path]. If the * resource has no script or the script isn't a named class, it should return `""`. */ + @GodotApiMember public open fun _getResourceScriptClass(path: String): String { throw NotImplementedError("_get_resource_script_class is not implemented for ResourceFormatLoader") } + @GodotApiMember public open fun _getResourceUid(path: String): Long { throw NotImplementedError("_get_resource_uid is not implemented for ResourceFormatLoader") } @@ -94,6 +101,7 @@ public open class ResourceFormatLoader : RefCounted() { * **Note:** Custom resource types defined by scripts aren't known by the [ClassDB], so you might * just return `"Resource"` for them. */ + @GodotApiMember public open fun _getDependencies(path: String, addTypes: Boolean): PackedStringArray { throw NotImplementedError("_get_dependencies is not implemented for ResourceFormatLoader") } @@ -103,14 +111,17 @@ public open class ResourceFormatLoader : RefCounted() { * dictionary `{ String => String }` mapping old dependency paths to new paths. * Returns [OK] on success, or an [Error] constant in case of failure. */ + @GodotApiMember public open fun _renameDependencies(path: String, renames: Dictionary): Error { throw NotImplementedError("_rename_dependencies is not implemented for ResourceFormatLoader") } + @GodotApiMember public open fun _exists(path: String): Boolean { throw NotImplementedError("_exists is not implemented for ResourceFormatLoader") } + @GodotApiMember public open fun _getClassesUsed(path: String): PackedStringArray { throw NotImplementedError("_get_classes_used is not implemented for ResourceFormatLoader") } @@ -122,6 +133,7 @@ public open class ResourceFormatLoader : RefCounted() { * The [cacheMode] property defines whether and how the cache should be used or updated when * loading the resource. See [CacheMode] for details. */ + @GodotApiMember public open fun _load( path: String, originalPath: String, diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ResourceFormatSaver.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ResourceFormatSaver.kt index b6301aa36b..da22851b7b 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ResourceFormatSaver.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ResourceFormatSaver.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.core.PackedStringArray import kotlin.Boolean @@ -37,6 +38,7 @@ public open class ResourceFormatSaver : RefCounted() { * with [ResourceSaver.SaverFlags] constants. * Returns [OK] on success, or an [Error] constant in case of failure. */ + @GodotApiMember public open fun _save( resource: Resource?, path: String, @@ -49,6 +51,7 @@ public open class ResourceFormatSaver : RefCounted() { * Sets a new UID for the resource at the given [path]. Returns [OK] on success, or an [Error] * constant in case of failure. */ + @GodotApiMember public open fun _setUid(path: String, uid: Long): Error { throw NotImplementedError("_set_uid is not implemented for ResourceFormatSaver") } @@ -56,6 +59,7 @@ public open class ResourceFormatSaver : RefCounted() { /** * Returns whether the given resource object can be saved by this saver. */ + @GodotApiMember public open fun _recognize(resource: Resource?): Boolean { throw NotImplementedError("_recognize is not implemented for ResourceFormatSaver") } @@ -64,6 +68,7 @@ public open class ResourceFormatSaver : RefCounted() { * Returns the list of extensions available for saving the resource object, provided it is * recognized (see [_recognize]). */ + @GodotApiMember public open fun _getRecognizedExtensions(resource: Resource?): PackedStringArray { throw NotImplementedError("_get_recognized_extensions is not implemented for ResourceFormatSaver") } @@ -73,6 +78,7 @@ public open class ResourceFormatSaver : RefCounted() { * If this method is not implemented, the default behavior returns whether the path's extension is * within the ones provided by [_getRecognizedExtensions]. */ + @GodotApiMember public open fun _recognizePath(resource: Resource?, path: String): Boolean { throw NotImplementedError("_recognize_path is not implemented for ResourceFormatSaver") } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/RichTextEffect.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/RichTextEffect.kt index d219a34c47..64896db66f 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/RichTextEffect.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/RichTextEffect.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import kotlin.Boolean import kotlin.Int @@ -43,6 +44,7 @@ public open class RichTextEffect : Resource() { * character could be transformed successfully. If the method returns `false`, it will skip * transformation to avoid displaying broken text. */ + @GodotApiMember public open fun _processCustomFx(charFx: CharFXTransform?): Boolean { throw NotImplementedError("_process_custom_fx is not implemented for RichTextEffect") } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/RichTextLabel.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/RichTextLabel.kt index b92c41adb0..94583e3f6a 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/RichTextLabel.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/RichTextLabel.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Color @@ -84,21 +85,25 @@ public open class RichTextLabel : Control() { * OS.shell_open(str(meta)) * ``` */ + @GodotApiMember public val metaClicked: Signal1 by Signal1 /** * Triggers when the mouse enters a meta tag. */ + @GodotApiMember public val metaHoverStarted: Signal1 by Signal1 /** * Triggers when the mouse exits a meta tag. */ + @GodotApiMember public val metaHoverEnded: Signal1 by Signal1 /** * Triggered when the document is fully loaded. */ + @GodotApiMember public val finished: Signal0 by Signal0 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/RigidBody2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/RigidBody2D.kt index 9ef20fc359..1d15bade8b 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/RigidBody2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/RigidBody2D.kt @@ -8,6 +8,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.RID @@ -68,6 +69,7 @@ public open class RigidBody2D : PhysicsBody2D() { * Get the [CollisionShape2D] node with * `self.shape_owner_get_owner(self.shape_find_owner(local_shape_index))`. */ + @GodotApiMember public val bodyShapeEntered: Signal4 by Signal4 /** @@ -85,6 +87,7 @@ public open class RigidBody2D : PhysicsBody2D() { * Get the [CollisionShape2D] node with * `self.shape_owner_get_owner(self.shape_find_owner(local_shape_index))`. */ + @GodotApiMember public val bodyShapeExited: Signal4 by Signal4 /** @@ -93,6 +96,7 @@ public open class RigidBody2D : PhysicsBody2D() { * the collisions. [TileMap]s are detected if the [TileSet] has Collision [Shape2D]s. * [body] the [Node], if it exists in the tree, of the other [PhysicsBody2D] or [TileMap]. */ + @GodotApiMember public val bodyEntered: Signal1 by Signal1 /** @@ -101,6 +105,7 @@ public open class RigidBody2D : PhysicsBody2D() { * the collisions. [TileMap]s are detected if the [TileSet] has Collision [Shape2D]s. * [body] the [Node], if it exists in the tree, of the other [PhysicsBody2D] or [TileMap]. */ + @GodotApiMember public val bodyExited: Signal1 by Signal1 /** @@ -109,6 +114,7 @@ public open class RigidBody2D : PhysicsBody2D() { * sleeping state is changed by the physics engine or `emit_signal("sleeping_state_changed")` is * used. */ + @GodotApiMember public val sleepingStateChanged: Signal0 by Signal0 /** @@ -525,6 +531,7 @@ public open class RigidBody2D : PhysicsBody2D() { * [customIntegrator] property allows you to disable the standard force integration and do fully * custom force integration for a body. */ + @GodotApiMember public open fun _integrateForces(state: PhysicsDirectBodyState2D?): Unit { } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/RigidBody3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/RigidBody3D.kt index 0e94d53c59..a24334e751 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/RigidBody3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/RigidBody3D.kt @@ -8,6 +8,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Basis @@ -70,6 +71,7 @@ public open class RigidBody3D : PhysicsBody3D() { * Get the [CollisionShape3D] node with * `self.shape_owner_get_owner(self.shape_find_owner(local_shape_index))`. */ + @GodotApiMember public val bodyShapeEntered: Signal4 by Signal4 /** @@ -87,6 +89,7 @@ public open class RigidBody3D : PhysicsBody3D() { * Get the [CollisionShape3D] node with * `self.shape_owner_get_owner(self.shape_find_owner(local_shape_index))`. */ + @GodotApiMember public val bodyShapeExited: Signal4 by Signal4 /** @@ -95,6 +98,7 @@ public open class RigidBody3D : PhysicsBody3D() { * the collisions. [GridMap]s are detected if the [MeshLibrary] has Collision [Shape3D]s. * [body] the [Node], if it exists in the tree, of the other [PhysicsBody3D] or [GridMap]. */ + @GodotApiMember public val bodyEntered: Signal1 by Signal1 /** @@ -103,6 +107,7 @@ public open class RigidBody3D : PhysicsBody3D() { * the collisions. [GridMap]s are detected if the [MeshLibrary] has Collision [Shape3D]s. * [body] the [Node], if it exists in the tree, of the other [PhysicsBody3D] or [GridMap]. */ + @GodotApiMember public val bodyExited: Signal1 by Signal1 /** @@ -111,6 +116,7 @@ public open class RigidBody3D : PhysicsBody3D() { * sleeping state is changed by the physics engine or `emit_signal("sleeping_state_changed")` is * used. */ + @GodotApiMember public val sleepingStateChanged: Signal0 by Signal0 /** @@ -632,6 +638,7 @@ public open class RigidBody3D : PhysicsBody3D() { * [customIntegrator] property allows you to disable the standard force integration and do fully * custom force integration for a body. */ + @GodotApiMember public open fun _integrateForces(state: PhysicsDirectBodyState3D?): Unit { } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/SceneMultiplayer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/SceneMultiplayer.kt index 41eb121eb0..fec8632fed 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/SceneMultiplayer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/SceneMultiplayer.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Callable @@ -56,18 +57,21 @@ public open class SceneMultiplayer : MultiplayerAPI() { * [getAuthenticatingPeers]), and only authentication data will be sent or received. See [sendAuth] * for sending authentication data. */ + @GodotApiMember public val peerAuthenticating: Signal1 by Signal1 /** * Emitted when this MultiplayerAPI's [MultiplayerAPI.multiplayerPeer] disconnects from a peer for * which authentication had not yet completed. See [signal peer_authenticating]. */ + @GodotApiMember public val peerAuthenticationFailed: Signal1 by Signal1 /** * Emitted when this MultiplayerAPI's [MultiplayerAPI.multiplayerPeer] receives a [packet] with * custom data (see [sendBytes]). ID is the peer ID of the peer that sent the packet. */ + @GodotApiMember public val peerPacket: Signal2 by Signal2 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/SceneTree.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/SceneTree.kt index 21ebb09102..1bd0f4afd6 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/SceneTree.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/SceneTree.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.NodePath @@ -51,43 +52,51 @@ public open class SceneTree : MainLoop() { /** * Emitted any time the tree's hierarchy changes (nodes being moved, renamed, etc.). */ + @GodotApiMember public val treeChanged: Signal0 by Signal0 /** * Emitted when the [Node.processMode] of any node inside the tree is changed. Only emitted in the * editor, to update the visibility of disabled nodes. */ + @GodotApiMember public val treeProcessModeChanged: Signal0 by Signal0 /** * Emitted when the [node] enters this tree. */ + @GodotApiMember public val nodeAdded: Signal1 by Signal1 /** * Emitted when the [node] exits this tree. */ + @GodotApiMember public val nodeRemoved: Signal1 by Signal1 /** * Emitted when the [node]'s [Node.name] is changed. */ + @GodotApiMember public val nodeRenamed: Signal1 by Signal1 /** * Emitted when the [node]'s [Node.updateConfigurationWarnings] is called. Only emitted in the * editor. */ + @GodotApiMember public val nodeConfigurationWarningChanged: Signal1 by Signal1 /** * Emitted immediately before [Node.Process] is called on every node in this tree. */ + @GodotApiMember public val processFrame: Signal0 by Signal0 /** * Emitted immediately before [Node.PhysicsProcess] is called on every node in this tree. */ + @GodotApiMember public val physicsFrame: Signal0 by Signal0 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/SceneTreeTimer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/SceneTreeTimer.kt index 30f4e5be70..91ddefbe59 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/SceneTreeTimer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/SceneTreeTimer.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Signal0 @@ -53,6 +54,7 @@ public open class SceneTreeTimer internal constructor() : RefCounted() { /** * Emitted when the timer reaches 0. */ + @GodotApiMember public val timeout: Signal0 by Signal0 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ScriptExtension.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ScriptExtension.kt index cbe74c8e2b..825ef2ee53 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ScriptExtension.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ScriptExtension.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.core.Dictionary import godot.core.StringName @@ -24,61 +25,76 @@ public open class ScriptExtension : Script() { callConstructor(ENGINECLASS_SCRIPTEXTENSION, scriptIndex) } + @GodotApiMember public open fun _editorCanReloadFromFile(): Boolean { throw NotImplementedError("_editor_can_reload_from_file is not implemented for ScriptExtension") } + @GodotApiMember public open fun _canInstantiate(): Boolean { throw NotImplementedError("_can_instantiate is not implemented for ScriptExtension") } + @GodotApiMember public open fun _getBaseScript(): Script? { throw NotImplementedError("_get_base_script is not implemented for ScriptExtension") } + @GodotApiMember public open fun _getGlobalName(): StringName { throw NotImplementedError("_get_global_name is not implemented for ScriptExtension") } + @GodotApiMember public open fun _inheritsScript(script: Script?): Boolean { throw NotImplementedError("_inherits_script is not implemented for ScriptExtension") } + @GodotApiMember public open fun _getInstanceBaseType(): StringName { throw NotImplementedError("_get_instance_base_type is not implemented for ScriptExtension") } + @GodotApiMember public open fun _instanceHas(`object`: Object?): Boolean { throw NotImplementedError("_instance_has is not implemented for ScriptExtension") } + @GodotApiMember public open fun _hasSourceCode(): Boolean { throw NotImplementedError("_has_source_code is not implemented for ScriptExtension") } + @GodotApiMember public open fun _getSourceCode(): String { throw NotImplementedError("_get_source_code is not implemented for ScriptExtension") } + @GodotApiMember public open fun _setSourceCode(code: String): Unit { } + @GodotApiMember public open fun _reload(keepState: Boolean): Error { throw NotImplementedError("_reload is not implemented for ScriptExtension") } + @GodotApiMember public open fun _getDocumentation(): VariantArray> { throw NotImplementedError("_get_documentation is not implemented for ScriptExtension") } + @GodotApiMember public open fun _getClassIconPath(): String { throw NotImplementedError("_get_class_icon_path is not implemented for ScriptExtension") } + @GodotApiMember public open fun _hasMethod(method: StringName): Boolean { throw NotImplementedError("_has_method is not implemented for ScriptExtension") } + @GodotApiMember public open fun _hasStaticMethod(method: StringName): Boolean { throw NotImplementedError("_has_static_method is not implemented for ScriptExtension") } @@ -87,18 +103,22 @@ public open class ScriptExtension : Script() { * Return the expected argument count for the given [method], or `null` if it can't be determined * (which will then fall back to the default behavior). */ + @GodotApiMember public open fun _getScriptMethodArgumentCount(method: StringName): Any? { throw NotImplementedError("_get_script_method_argument_count is not implemented for ScriptExtension") } + @GodotApiMember public open fun _getMethodInfo(method: StringName): Dictionary { throw NotImplementedError("_get_method_info is not implemented for ScriptExtension") } + @GodotApiMember public open fun _isTool(): Boolean { throw NotImplementedError("_is_tool is not implemented for ScriptExtension") } + @GodotApiMember public open fun _isValid(): Boolean { throw NotImplementedError("_is_valid is not implemented for ScriptExtension") } @@ -107,57 +127,71 @@ public open class ScriptExtension : Script() { * Returns `true` if the script is an abstract script. An abstract script does not have a * constructor and cannot be instantiated. */ + @GodotApiMember public open fun _isAbstract(): Boolean { throw NotImplementedError("_is_abstract is not implemented for ScriptExtension") } + @GodotApiMember public open fun _getLanguage(): ScriptLanguage? { throw NotImplementedError("_get_language is not implemented for ScriptExtension") } + @GodotApiMember public open fun _hasScriptSignal(signal: StringName): Boolean { throw NotImplementedError("_has_script_signal is not implemented for ScriptExtension") } + @GodotApiMember public open fun _getScriptSignalList(): VariantArray> { throw NotImplementedError("_get_script_signal_list is not implemented for ScriptExtension") } + @GodotApiMember public open fun _hasPropertyDefaultValue(`property`: StringName): Boolean { throw NotImplementedError("_has_property_default_value is not implemented for ScriptExtension") } + @GodotApiMember public open fun _getPropertyDefaultValue(`property`: StringName): Any? { throw NotImplementedError("_get_property_default_value is not implemented for ScriptExtension") } + @GodotApiMember public open fun _updateExports(): Unit { } + @GodotApiMember public open fun _getScriptMethodList(): VariantArray> { throw NotImplementedError("_get_script_method_list is not implemented for ScriptExtension") } + @GodotApiMember public open fun _getScriptPropertyList(): VariantArray> { throw NotImplementedError("_get_script_property_list is not implemented for ScriptExtension") } + @GodotApiMember public open fun _getMemberLine(member: StringName): Int { throw NotImplementedError("_get_member_line is not implemented for ScriptExtension") } + @GodotApiMember public open fun _getConstants(): Dictionary { throw NotImplementedError("_get_constants is not implemented for ScriptExtension") } + @GodotApiMember public open fun _getMembers(): VariantArray { throw NotImplementedError("_get_members is not implemented for ScriptExtension") } + @GodotApiMember public open fun _isPlaceholderFallbackEnabled(): Boolean { throw NotImplementedError("_is_placeholder_fallback_enabled is not implemented for ScriptExtension") } + @GodotApiMember public open fun _getRpcConfig(): Any? { throw NotImplementedError("_get_rpc_config is not implemented for ScriptExtension") } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ScriptLanguageExtension.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ScriptLanguageExtension.kt index b1eafb2113..0cec3ad601 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ScriptLanguageExtension.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ScriptLanguageExtension.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.core.Dictionary import godot.core.PackedStringArray @@ -26,44 +27,55 @@ public open class ScriptLanguageExtension : ScriptLanguage() { callConstructor(ENGINECLASS_SCRIPTLANGUAGEEXTENSION, scriptIndex) } + @GodotApiMember public open fun _getName(): String { throw NotImplementedError("_get_name is not implemented for ScriptLanguageExtension") } + @GodotApiMember public open fun _init(): Unit { } + @GodotApiMember public open fun _getType(): String { throw NotImplementedError("_get_type is not implemented for ScriptLanguageExtension") } + @GodotApiMember public open fun _getExtension(): String { throw NotImplementedError("_get_extension is not implemented for ScriptLanguageExtension") } + @GodotApiMember public open fun _finish(): Unit { } + @GodotApiMember public open fun _getReservedWords(): PackedStringArray { throw NotImplementedError("_get_reserved_words is not implemented for ScriptLanguageExtension") } + @GodotApiMember public open fun _isControlFlowKeyword(keyword: String): Boolean { throw NotImplementedError("_is_control_flow_keyword is not implemented for ScriptLanguageExtension") } + @GodotApiMember public open fun _getCommentDelimiters(): PackedStringArray { throw NotImplementedError("_get_comment_delimiters is not implemented for ScriptLanguageExtension") } + @GodotApiMember public open fun _getDocCommentDelimiters(): PackedStringArray { throw NotImplementedError("_get_doc_comment_delimiters is not implemented for ScriptLanguageExtension") } + @GodotApiMember public open fun _getStringDelimiters(): PackedStringArray { throw NotImplementedError("_get_string_delimiters is not implemented for ScriptLanguageExtension") } + @GodotApiMember public open fun _makeTemplate( template: String, className: String, @@ -72,14 +84,17 @@ public open class ScriptLanguageExtension : ScriptLanguage() { throw NotImplementedError("_make_template is not implemented for ScriptLanguageExtension") } + @GodotApiMember public open fun _getBuiltInTemplates(`object`: StringName): VariantArray> { throw NotImplementedError("_get_built_in_templates is not implemented for ScriptLanguageExtension") } + @GodotApiMember public open fun _isUsingTemplates(): Boolean { throw NotImplementedError("_is_using_templates is not implemented for ScriptLanguageExtension") } + @GodotApiMember public open fun _validate( script: String, path: String, @@ -91,26 +106,32 @@ public open class ScriptLanguageExtension : ScriptLanguage() { throw NotImplementedError("_validate is not implemented for ScriptLanguageExtension") } + @GodotApiMember public open fun _validatePath(path: String): String { throw NotImplementedError("_validate_path is not implemented for ScriptLanguageExtension") } + @GodotApiMember public open fun _createScript(): Object? { throw NotImplementedError("_create_script is not implemented for ScriptLanguageExtension") } + @GodotApiMember public open fun _hasNamedClasses(): Boolean { throw NotImplementedError("_has_named_classes is not implemented for ScriptLanguageExtension") } + @GodotApiMember public open fun _supportsBuiltinMode(): Boolean { throw NotImplementedError("_supports_builtin_mode is not implemented for ScriptLanguageExtension") } + @GodotApiMember public open fun _supportsDocumentation(): Boolean { throw NotImplementedError("_supports_documentation is not implemented for ScriptLanguageExtension") } + @GodotApiMember public open fun _canInheritFromFile(): Boolean { throw NotImplementedError("_can_inherit_from_file is not implemented for ScriptLanguageExtension") } @@ -119,10 +140,12 @@ public open class ScriptLanguageExtension : ScriptLanguage() { * Returns the line where the function is defined in the code, or `-1` if the function is not * present. */ + @GodotApiMember public open fun _findFunction(function: String, code: String): Int { throw NotImplementedError("_find_function is not implemented for ScriptLanguageExtension") } + @GodotApiMember public open fun _makeFunction( className: String, functionName: String, @@ -131,10 +154,12 @@ public open class ScriptLanguageExtension : ScriptLanguage() { throw NotImplementedError("_make_function is not implemented for ScriptLanguageExtension") } + @GodotApiMember public open fun _canMakeFunction(): Boolean { throw NotImplementedError("_can_make_function is not implemented for ScriptLanguageExtension") } + @GodotApiMember public open fun _openInExternalEditor( script: Script?, line: Int, @@ -143,14 +168,17 @@ public open class ScriptLanguageExtension : ScriptLanguage() { throw NotImplementedError("_open_in_external_editor is not implemented for ScriptLanguageExtension") } + @GodotApiMember public open fun _overridesExternalEditor(): Boolean { throw NotImplementedError("_overrides_external_editor is not implemented for ScriptLanguageExtension") } + @GodotApiMember public open fun _preferredFileNameCasing(): ScriptLanguage.ScriptNameCasing { throw NotImplementedError("_preferred_file_name_casing is not implemented for ScriptLanguageExtension") } + @GodotApiMember public open fun _completeCode( code: String, path: String, @@ -159,6 +187,7 @@ public open class ScriptLanguageExtension : ScriptLanguage() { throw NotImplementedError("_complete_code is not implemented for ScriptLanguageExtension") } + @GodotApiMember public open fun _lookupCode( code: String, symbol: String, @@ -168,6 +197,7 @@ public open class ScriptLanguageExtension : ScriptLanguage() { throw NotImplementedError("_lookup_code is not implemented for ScriptLanguageExtension") } + @GodotApiMember public open fun _autoIndentCode( code: String, fromLine: Int, @@ -176,33 +206,42 @@ public open class ScriptLanguageExtension : ScriptLanguage() { throw NotImplementedError("_auto_indent_code is not implemented for ScriptLanguageExtension") } + @GodotApiMember public open fun _addGlobalConstant(name: StringName, `value`: Any?): Unit { } + @GodotApiMember public open fun _addNamedGlobalConstant(name: StringName, `value`: Any?): Unit { } + @GodotApiMember public open fun _removeNamedGlobalConstant(name: StringName): Unit { } + @GodotApiMember public open fun _threadEnter(): Unit { } + @GodotApiMember public open fun _threadExit(): Unit { } + @GodotApiMember public open fun _debugGetError(): String { throw NotImplementedError("_debug_get_error is not implemented for ScriptLanguageExtension") } + @GodotApiMember public open fun _debugGetStackLevelCount(): Int { throw NotImplementedError("_debug_get_stack_level_count is not implemented for ScriptLanguageExtension") } + @GodotApiMember public open fun _debugGetStackLevelLine(level: Int): Int { throw NotImplementedError("_debug_get_stack_level_line is not implemented for ScriptLanguageExtension") } + @GodotApiMember public open fun _debugGetStackLevelFunction(level: Int): String { throw NotImplementedError("_debug_get_stack_level_function is not implemented for ScriptLanguageExtension") } @@ -210,10 +249,12 @@ public open class ScriptLanguageExtension : ScriptLanguage() { /** * Returns the source associated with a given debug stack position. */ + @GodotApiMember public open fun _debugGetStackLevelSource(level: Int): String { throw NotImplementedError("_debug_get_stack_level_source is not implemented for ScriptLanguageExtension") } + @GodotApiMember public open fun _debugGetStackLevelLocals( level: Int, maxSubitems: Int, @@ -222,6 +263,7 @@ public open class ScriptLanguageExtension : ScriptLanguage() { throw NotImplementedError("_debug_get_stack_level_locals is not implemented for ScriptLanguageExtension") } + @GodotApiMember public open fun _debugGetStackLevelMembers( level: Int, maxSubitems: Int, @@ -230,10 +272,12 @@ public open class ScriptLanguageExtension : ScriptLanguage() { throw NotImplementedError("_debug_get_stack_level_members is not implemented for ScriptLanguageExtension") } + @GodotApiMember public open fun _debugGetGlobals(maxSubitems: Int, maxDepth: Int): Dictionary { throw NotImplementedError("_debug_get_globals is not implemented for ScriptLanguageExtension") } + @GodotApiMember public open fun _debugParseStackLevelExpression( level: Int, expression: String, @@ -243,48 +287,61 @@ public open class ScriptLanguageExtension : ScriptLanguage() { throw NotImplementedError("_debug_parse_stack_level_expression is not implemented for ScriptLanguageExtension") } + @GodotApiMember public open fun _debugGetCurrentStackInfo(): VariantArray> { throw NotImplementedError("_debug_get_current_stack_info is not implemented for ScriptLanguageExtension") } + @GodotApiMember public open fun _reloadAllScripts(): Unit { } + @GodotApiMember public open fun _reloadToolScript(script: Script?, softReload: Boolean): Unit { } + @GodotApiMember public open fun _getRecognizedExtensions(): PackedStringArray { throw NotImplementedError("_get_recognized_extensions is not implemented for ScriptLanguageExtension") } + @GodotApiMember public open fun _getPublicFunctions(): VariantArray> { throw NotImplementedError("_get_public_functions is not implemented for ScriptLanguageExtension") } + @GodotApiMember public open fun _getPublicConstants(): Dictionary { throw NotImplementedError("_get_public_constants is not implemented for ScriptLanguageExtension") } + @GodotApiMember public open fun _getPublicAnnotations(): VariantArray> { throw NotImplementedError("_get_public_annotations is not implemented for ScriptLanguageExtension") } + @GodotApiMember public open fun _profilingStart(): Unit { } + @GodotApiMember public open fun _profilingStop(): Unit { } + @GodotApiMember public open fun _profilingSetSaveNativeCalls(enable: Boolean): Unit { } + @GodotApiMember public open fun _frame(): Unit { } + @GodotApiMember public open fun _handlesGlobalClassType(type: String): Boolean { throw NotImplementedError("_handles_global_class_type is not implemented for ScriptLanguageExtension") } + @GodotApiMember public open fun _getGlobalClassName(path: String): Dictionary { throw NotImplementedError("_get_global_class_name is not implemented for ScriptLanguageExtension") } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ScrollBar.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ScrollBar.kt index c28d31ac7f..62380f79ed 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ScrollBar.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ScrollBar.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Signal0 @@ -29,6 +30,7 @@ public open class ScrollBar internal constructor() : Range() { /** * Emitted when the scrollbar is being scrolled. */ + @GodotApiMember public val scrolling: Signal0 by Signal0 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ScrollContainer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ScrollContainer.kt index 7b6fdae542..af9498a138 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ScrollContainer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ScrollContainer.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Signal0 @@ -41,6 +42,7 @@ public open class ScrollContainer : Container() { * **Note:** This signal is only emitted on Android or iOS, or on desktop/web platforms when * [ProjectSettings.inputDevices/pointing/emulateTouchFromMouse] is enabled. */ + @GodotApiMember public val scrollStarted: Signal0 by Signal0 /** @@ -50,6 +52,7 @@ public open class ScrollContainer : Container() { * **Note:** This signal is only emitted on Android or iOS, or on desktop/web platforms when * [ProjectSettings.inputDevices/pointing/emulateTouchFromMouse] is enabled. */ + @GodotApiMember public val scrollEnded: Signal0 by Signal0 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Skeleton2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Skeleton2D.kt index 3eb9e57ed1..c7e2513068 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Skeleton2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Skeleton2D.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.RID @@ -40,6 +41,7 @@ public open class Skeleton2D : Node2D() { * Emitted when the [Bone2D] setup attached to this skeletons changes. This is primarily used * internally within the skeleton. */ + @GodotApiMember public val boneSetupChanged: Signal0 by Signal0 public override fun new(scriptIndex: Int): Unit { diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Skeleton3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Skeleton3D.kt index f27158b657..459c16e131 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Skeleton3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Skeleton3D.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.PackedInt32Array @@ -58,6 +59,7 @@ public open class Skeleton3D : Node3D() { * **Note:** During the update process, this signal is not fired, so modification by * [SkeletonModifier3D] is not detected. */ + @GodotApiMember public val poseUpdated: Signal0 by Signal0 /** @@ -67,19 +69,23 @@ public open class Skeleton3D : Node3D() { * completion of the processing of each [SkeletonModifier3D], use [signal * SkeletonModifier3D.modification_processed]. */ + @GodotApiMember public val skeletonUpdated: Signal0 by Signal0 /** * Emitted when the bone at [boneIdx] is toggled with [setBoneEnabled]. Use [isBoneEnabled] to * check the new value. */ + @GodotApiMember public val boneEnabledChanged: Signal1 by Signal1 + @GodotApiMember public val boneListChanged: Signal0 by Signal0 /** * Emitted when the value of [showRestOnly] changes. */ + @GodotApiMember public val showRestOnlyChanged: Signal0 by Signal0 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/SkeletonModification2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/SkeletonModification2D.kt index 7dfcfef1c8..fcf5907b04 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/SkeletonModification2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/SkeletonModification2D.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.TypeManager @@ -64,12 +65,14 @@ public open class SkeletonModification2D : Resource() { * Executes the given modification. This is where the modification performs whatever function it * is designed to do. */ + @GodotApiMember public open fun _execute(delta: Double): Unit { } /** * Called when the modification is setup. This is where the modification performs initialization. */ + @GodotApiMember public open fun _setupModification(modificationStack: SkeletonModificationStack2D?): Unit { } @@ -79,6 +82,7 @@ public open class SkeletonModification2D : Resource() { * **Note:** You will need to use the Skeleton2D from [SkeletonModificationStack2D.getSkeleton] * and it's draw functions, as the [SkeletonModification2D] resource cannot draw on its own. */ + @GodotApiMember public open fun _drawEditorGizmo(): Unit { } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/SkeletonModifier3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/SkeletonModifier3D.kt index f3ff938757..249fca0034 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/SkeletonModifier3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/SkeletonModifier3D.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Signal0 @@ -36,6 +37,7 @@ public open class SkeletonModifier3D : Node3D() { * **Note:** If you want to get the modified bone pose by the modifier, you must use * [Skeleton3D.getBonePose] or [Skeleton3D.getBoneGlobalPose] at the moment this signal is fired. */ + @GodotApiMember public val modificationProcessed: Signal0 by Signal0 /** @@ -72,6 +74,7 @@ public open class SkeletonModifier3D : Node3D() { * [_processModification] must not apply [influence] to bone poses because the [Skeleton3D] * automatically applies influence to all bone poses set by the modifier. */ + @GodotApiMember public open fun _processModification(): Unit { } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/SkeletonProfile.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/SkeletonProfile.kt index 2b83019981..4baef0f9f6 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/SkeletonProfile.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/SkeletonProfile.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Signal0 @@ -43,6 +44,7 @@ public open class SkeletonProfile : Resource() { * **Note:** This signal is not connected directly to editor to simplify the reference, instead it * is passed on to editor through the [BoneMap]. */ + @GodotApiMember public val profileUpdated: Signal0 by Signal0 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Slider.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Slider.kt index ce9305ce5f..12375d72b7 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Slider.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Slider.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Signal0 @@ -32,12 +33,14 @@ public open class Slider internal constructor() : Range() { * Emitted when dragging is started. This is emitted before the corresponding [signal * Range.value_changed] signal. */ + @GodotApiMember public val dragStarted: Signal0 by Signal0 /** * Emitted when dragging stops. If [valueChanged] is true, [Range.value] is different from the * value when you started the dragging. */ + @GodotApiMember public val dragEnded: Signal1 by Signal1 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/SplitContainer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/SplitContainer.kt index 23ee4d7c59..10b46c5f76 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/SplitContainer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/SplitContainer.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Signal1 @@ -31,6 +32,7 @@ public open class SplitContainer : Container() { /** * Emitted when the dragger is dragged by user. */ + @GodotApiMember public val dragged: Signal1 by Signal1 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Sprite2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Sprite2D.kt index 27a19b4a5f..47f8be0732 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Sprite2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Sprite2D.kt @@ -8,6 +8,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Rect2 @@ -39,11 +40,13 @@ public open class Sprite2D : Node2D() { /** * Emitted when the [frame] changes. */ + @GodotApiMember public val frameChanged: Signal0 by Signal0 /** * Emitted when the [texture] changes. */ + @GodotApiMember public val textureChanged: Signal0 by Signal0 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Sprite3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Sprite3D.kt index 32b4f6e331..5c2a52cdf3 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Sprite3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Sprite3D.kt @@ -8,6 +8,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Rect2 @@ -38,11 +39,13 @@ public open class Sprite3D : SpriteBase3D() { /** * Emitted when the [frame] changes. */ + @GodotApiMember public val frameChanged: Signal0 by Signal0 /** * Emitted when the [texture] changes. */ + @GodotApiMember public val textureChanged: Signal0 by Signal0 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/StatusIndicator.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/StatusIndicator.kt index b656e62abd..5391d50acf 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/StatusIndicator.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/StatusIndicator.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.NodePath @@ -33,6 +34,7 @@ public open class StatusIndicator : Node() { /** * Emitted when the status indicator is pressed. */ + @GodotApiMember public val pressed: Signal2 by Signal2 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/StreamPeerExtension.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/StreamPeerExtension.kt index 2993418402..c44a761f9f 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/StreamPeerExtension.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/StreamPeerExtension.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import kotlin.Int import kotlin.NotImplementedError @@ -18,6 +19,7 @@ public open class StreamPeerExtension : StreamPeer() { callConstructor(ENGINECLASS_STREAMPEEREXTENSION, scriptIndex) } + @GodotApiMember public open fun _getAvailableBytes(): Int { throw NotImplementedError("_get_available_bytes is not implemented for StreamPeerExtension") } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/StyleBox.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/StyleBox.kt index a4c2d5c628..c6ef23a31c 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/StyleBox.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/StyleBox.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.RID @@ -102,9 +103,11 @@ public open class StyleBox : Resource() { callConstructor(ENGINECLASS_STYLEBOX, scriptIndex) } + @GodotApiMember public open fun _draw(toCanvasItem: RID, rect: Rect2): Unit { } + @GodotApiMember public open fun _getDrawRect(rect: Rect2): Rect2 { throw NotImplementedError("_get_draw_rect is not implemented for StyleBox") } @@ -115,10 +118,12 @@ public open class StyleBox : Resource() { * This method can be overridden to add another size restriction. A combination of the default * behavior and the output of this method will be used, to account for both sizes. */ + @GodotApiMember public open fun _getMinimumSize(): Vector2 { throw NotImplementedError("_get_minimum_size is not implemented for StyleBox") } + @GodotApiMember public open fun _testMask(point: Vector2, rect: Rect2): Boolean { throw NotImplementedError("_test_mask is not implemented for StyleBox") } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/SubViewportContainer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/SubViewportContainer.kt index 5f79fd135b..22b052ca13 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/SubViewportContainer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/SubViewportContainer.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.TypeManager @@ -68,6 +69,7 @@ public open class SubViewportContainer : Container() { * to [SubViewport] children. Propagation doesn't happen if it returns `false`. If the function is * not implemented, all events are propagated to SubViewports. */ + @GodotApiMember public open fun _propagateInputEvent(event: InputEvent?): Boolean { throw NotImplementedError("_propagate_input_event is not implemented for SubViewportContainer") } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/SyntaxHighlighter.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/SyntaxHighlighter.kt index a13fa32480..3bc542cee3 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/SyntaxHighlighter.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/SyntaxHighlighter.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Dictionary @@ -36,6 +37,7 @@ public open class SyntaxHighlighter : Resource() { * Virtual method which can be overridden to return syntax highlighting data. * See [getLineSyntaxHighlighting] for more details. */ + @GodotApiMember public open fun _getLineSyntaxHighlighting(line: Int): Dictionary { throw NotImplementedError("_get_line_syntax_highlighting is not implemented for SyntaxHighlighter") } @@ -43,12 +45,14 @@ public open class SyntaxHighlighter : Resource() { /** * Virtual method which can be overridden to clear any local caches. */ + @GodotApiMember public open fun _clearHighlightingCache(): Unit { } /** * Virtual method which can be overridden to update any local caches. */ + @GodotApiMember public open fun _updateCache(): Unit { } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/TabBar.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/TabBar.kt index 3cde210fdb..77cd0de3a6 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/TabBar.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/TabBar.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Rect2 @@ -41,21 +42,25 @@ public open class TabBar : Control() { * Emitted when a tab is selected via click, directional input, or script, even if it is the * current tab. */ + @GodotApiMember public val tabSelected: Signal1 by Signal1 /** * Emitted when switching to another tab. */ + @GodotApiMember public val tabChanged: Signal1 by Signal1 /** * Emitted when a tab is clicked, even if it is the current tab. */ + @GodotApiMember public val tabClicked: Signal1 by Signal1 /** * Emitted when a tab is right-clicked. [selectWithRmb] must be enabled. */ + @GodotApiMember public val tabRmbClicked: Signal1 by Signal1 /** @@ -72,21 +77,25 @@ public open class TabBar : Control() { * GetNode("TabBar").TabClosePressed += GetNode("TabBar").RemoveTab; * ``` */ + @GodotApiMember public val tabClosePressed: Signal1 by Signal1 /** * Emitted when a tab's right button is pressed. See [setTabButtonIcon]. */ + @GodotApiMember public val tabButtonPressed: Signal1 by Signal1 /** * Emitted when a tab is hovered by the mouse. */ + @GodotApiMember public val tabHovered: Signal1 by Signal1 /** * Emitted when the active tab is rearranged via mouse drag. See [dragToRearrangeEnabled]. */ + @GodotApiMember public val activeTabRearranged: Signal1 by Signal1 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/TabContainer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/TabContainer.kt index 0222cccc06..3cb206d90d 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/TabContainer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/TabContainer.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Signal0 @@ -40,37 +41,44 @@ public open class TabContainer : Container() { /** * Emitted when the active tab is rearranged via mouse drag. See [dragToRearrangeEnabled]. */ + @GodotApiMember public val activeTabRearranged: Signal1 by Signal1 /** * Emitted when switching to another tab. */ + @GodotApiMember public val tabChanged: Signal1 by Signal1 /** * Emitted when a tab is clicked, even if it is the current tab. */ + @GodotApiMember public val tabClicked: Signal1 by Signal1 /** * Emitted when a tab is hovered by the mouse. */ + @GodotApiMember public val tabHovered: Signal1 by Signal1 /** * Emitted when a tab is selected via click, directional input, or script, even if it is the * current tab. */ + @GodotApiMember public val tabSelected: Signal1 by Signal1 /** * Emitted when the user clicks on the button icon on this tab. */ + @GodotApiMember public val tabButtonPressed: Signal1 by Signal1 /** * Emitted when the [TabContainer]'s [Popup] button is clicked. See [setPopup] for details. */ + @GodotApiMember public val prePopupPressed: Signal0 by Signal0 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/TextEdit.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/TextEdit.kt index fa24525d5a..3a39ebcca5 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/TextEdit.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/TextEdit.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Callable @@ -61,11 +62,13 @@ public open class TextEdit : Control() { /** * Emitted when [clear] is called or [text] is set. */ + @GodotApiMember public val textSet: Signal0 by Signal0 /** * Emitted when the text changes. */ + @GodotApiMember public val textChanged: Signal0 by Signal0 /** @@ -73,26 +76,31 @@ public open class TextEdit : Control() { * When text is added [fromLine] will be less than [toLine]. On a remove [toLine] will be less * than [fromLine]. */ + @GodotApiMember public val linesEditedFrom: Signal2 by Signal2 /** * Emitted when any caret changes position. */ + @GodotApiMember public val caretChanged: Signal0 by Signal0 /** * Emitted when a gutter is clicked. */ + @GodotApiMember public val gutterClicked: Signal2 by Signal2 /** * Emitted when a gutter is added. */ + @GodotApiMember public val gutterAdded: Signal0 by Signal0 /** * Emitted when a gutter is removed. */ + @GodotApiMember public val gutterRemoved: Signal0 by Signal0 /** @@ -576,30 +584,35 @@ public open class TextEdit : Control() { * Override this method to define what happens when the user types in the provided key * [unicodeChar]. */ + @GodotApiMember public open fun _handleUnicodeInput(unicodeChar: Int, caretIndex: Int): Unit { } /** * Override this method to define what happens when the user presses the backspace key. */ + @GodotApiMember public open fun _backspace(caretIndex: Int): Unit { } /** * Override this method to define what happens when the user performs a cut operation. */ + @GodotApiMember public open fun _cut(caretIndex: Int): Unit { } /** * Override this method to define what happens when the user performs a copy operation. */ + @GodotApiMember public open fun _copy(caretIndex: Int): Unit { } /** * Override this method to define what happens when the user performs a paste operation. */ + @GodotApiMember public open fun _paste(caretIndex: Int): Unit { } @@ -608,6 +621,7 @@ public open class TextEdit : Control() { * middle mouse button. * **Note:** This method is only implemented on Linux. */ + @GodotApiMember public open fun _pastePrimaryClipboard(caretIndex: Int): Unit { } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/TextServerExtension.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/TextServerExtension.kt index afb768af66..0e40594f13 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/TextServerExtension.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/TextServerExtension.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.core.Color import godot.core.Dictionary @@ -44,6 +45,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Returns `true` if the server supports a feature. */ + @GodotApiMember public open fun _hasFeature(feature: TextServer.Feature): Boolean { throw NotImplementedError("_has_feature is not implemented for TextServerExtension") } @@ -52,6 +54,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Returns the name of the server interface. */ + @GodotApiMember public open fun _getName(): String { throw NotImplementedError("_get_name is not implemented for TextServerExtension") } @@ -60,6 +63,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Returns text server features, see [TextServer.Feature]. */ + @GodotApiMember public open fun _getFeatures(): Long { throw NotImplementedError("_get_features is not implemented for TextServerExtension") } @@ -68,6 +72,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Frees an object created by this [TextServer]. */ + @GodotApiMember public open fun _freeRid(rid: RID): Unit { } @@ -75,6 +80,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Returns `true` if [rid] is valid resource owned by this text server. */ + @GodotApiMember public open fun _has(rid: RID): Boolean { throw NotImplementedError("_has is not implemented for TextServerExtension") } @@ -83,6 +89,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Loads optional TextServer database (e.g. ICU break iterators and dictionaries). */ + @GodotApiMember public open fun _loadSupportData(filename: String): Boolean { throw NotImplementedError("_load_support_data is not implemented for TextServerExtension") } @@ -91,6 +98,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Returns default TextServer database (e.g. ICU break iterators and dictionaries) filename. */ + @GodotApiMember public open fun _getSupportDataFilename(): String { throw NotImplementedError("_get_support_data_filename is not implemented for TextServerExtension") } @@ -99,6 +107,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Returns TextServer database (e.g. ICU break iterators and dictionaries) description. */ + @GodotApiMember public open fun _getSupportDataInfo(): String { throw NotImplementedError("_get_support_data_info is not implemented for TextServerExtension") } @@ -107,6 +116,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Saves optional TextServer database (e.g. ICU break iterators and dictionaries) to the file. */ + @GodotApiMember public open fun _saveSupportData(filename: String): Boolean { throw NotImplementedError("_save_support_data is not implemented for TextServerExtension") } @@ -115,6 +125,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Returns `true` if locale is right-to-left. */ + @GodotApiMember public open fun _isLocaleRightToLeft(locale: String): Boolean { throw NotImplementedError("_is_locale_right_to_left is not implemented for TextServerExtension") } @@ -123,6 +134,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Converts readable feature, variation, script, or language name to OpenType tag. */ + @GodotApiMember public open fun _nameToTag(name: String): Long { throw NotImplementedError("_name_to_tag is not implemented for TextServerExtension") } @@ -131,6 +143,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Converts OpenType tag to readable feature, variation, script, or language name. */ + @GodotApiMember public open fun _tagToName(tag: Long): String { throw NotImplementedError("_tag_to_name is not implemented for TextServerExtension") } @@ -139,6 +152,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Creates a new, empty font cache entry resource. */ + @GodotApiMember public open fun _createFont(): RID { throw NotImplementedError("_create_font is not implemented for TextServerExtension") } @@ -147,6 +161,7 @@ public open class TextServerExtension : TextServer() { * Optional, implement if font supports extra spacing or baseline offset. * Creates a new variation existing font which is reusing the same glyph cache and font data. */ + @GodotApiMember public open fun _createFontLinkedVariation(fontRid: RID): RID { throw NotImplementedError("_create_font_linked_variation is not implemented for TextServerExtension") } @@ -155,6 +170,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Sets font source data, e.g contents of the dynamic font source file. */ + @GodotApiMember public open fun _fontSetData(fontRid: RID, `data`: PackedByteArray): Unit { } @@ -162,6 +178,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Sets an active face index in the TrueType / OpenType collection. */ + @GodotApiMember public open fun _fontSetFaceIndex(fontRid: RID, faceIndex: Long): Unit { } @@ -169,6 +186,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Returns an active face index in the TrueType / OpenType collection. */ + @GodotApiMember public open fun _fontGetFaceIndex(fontRid: RID): Long { throw NotImplementedError("_font_get_face_index is not implemented for TextServerExtension") } @@ -177,6 +195,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Returns number of faces in the TrueType / OpenType collection. */ + @GodotApiMember public open fun _fontGetFaceCount(fontRid: RID): Long { throw NotImplementedError("_font_get_face_count is not implemented for TextServerExtension") } @@ -185,6 +204,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Sets the font style flags, see [TextServer.FontStyle]. */ + @GodotApiMember public open fun _fontSetStyle(fontRid: RID, style: TextServer.FontStyle): Unit { } @@ -192,6 +212,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Returns font style flags, see [TextServer.FontStyle]. */ + @GodotApiMember public open fun _fontGetStyle(fontRid: RID): TextServer.FontStyle { throw NotImplementedError("_font_get_style is not implemented for TextServerExtension") } @@ -200,6 +221,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Sets the font family name. */ + @GodotApiMember public open fun _fontSetName(fontRid: RID, name: String): Unit { } @@ -207,6 +229,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Returns font family name. */ + @GodotApiMember public open fun _fontGetName(fontRid: RID): String { throw NotImplementedError("_font_get_name is not implemented for TextServerExtension") } @@ -216,6 +239,7 @@ public open class TextServerExtension : TextServer() { * Returns [Dictionary] with OpenType font name strings (localized font names, version, * description, license information, sample text, etc.). */ + @GodotApiMember public open fun _fontGetOtNameStrings(fontRid: RID): Dictionary { throw NotImplementedError("_font_get_ot_name_strings is not implemented for TextServerExtension") } @@ -224,6 +248,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Sets the font style name. */ + @GodotApiMember public open fun _fontSetStyleName(fontRid: RID, nameStyle: String): Unit { } @@ -231,6 +256,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Returns font style name. */ + @GodotApiMember public open fun _fontGetStyleName(fontRid: RID): String { throw NotImplementedError("_font_get_style_name is not implemented for TextServerExtension") } @@ -240,6 +266,7 @@ public open class TextServerExtension : TextServer() { * Sets weight (boldness) of the font. A value in the `100...999` range, normal font weight is * `400`, bold font weight is `700`. */ + @GodotApiMember public open fun _fontSetWeight(fontRid: RID, weight: Long): Unit { } @@ -248,6 +275,7 @@ public open class TextServerExtension : TextServer() { * Returns weight (boldness) of the font. A value in the `100...999` range, normal font weight is * `400`, bold font weight is `700`. */ + @GodotApiMember public open fun _fontGetWeight(fontRid: RID): Long { throw NotImplementedError("_font_get_weight is not implemented for TextServerExtension") } @@ -257,6 +285,7 @@ public open class TextServerExtension : TextServer() { * Sets font stretch amount, compared to a normal width. A percentage value between `50%` and * `200%`. */ + @GodotApiMember public open fun _fontSetStretch(fontRid: RID, stretch: Long): Unit { } @@ -265,6 +294,7 @@ public open class TextServerExtension : TextServer() { * Returns font stretch amount, compared to a normal width. A percentage value between `50%` * and `200%`. */ + @GodotApiMember public open fun _fontGetStretch(fontRid: RID): Long { throw NotImplementedError("_font_get_stretch is not implemented for TextServerExtension") } @@ -273,6 +303,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Sets font anti-aliasing mode. */ + @GodotApiMember public open fun _fontSetAntialiasing(fontRid: RID, antialiasing: TextServer.FontAntialiasing): Unit { } @@ -281,6 +312,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Returns font anti-aliasing mode. */ + @GodotApiMember public open fun _fontGetAntialiasing(fontRid: RID): TextServer.FontAntialiasing { throw NotImplementedError("_font_get_antialiasing is not implemented for TextServerExtension") } @@ -289,6 +321,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * If set to `true`, embedded font bitmap loading is disabled. */ + @GodotApiMember public open fun _fontSetDisableEmbeddedBitmaps(fontRid: RID, disableEmbeddedBitmaps: Boolean): Unit { } @@ -297,6 +330,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Returns whether the font's embedded bitmap loading is disabled. */ + @GodotApiMember public open fun _fontGetDisableEmbeddedBitmaps(fontRid: RID): Boolean { throw NotImplementedError("_font_get_disable_embedded_bitmaps is not implemented for TextServerExtension") } @@ -305,6 +339,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * If set to `true` font texture mipmap generation is enabled. */ + @GodotApiMember public open fun _fontSetGenerateMipmaps(fontRid: RID, generateMipmaps: Boolean): Unit { } @@ -312,6 +347,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Returns `true` if font texture mipmap generation is enabled. */ + @GodotApiMember public open fun _fontGetGenerateMipmaps(fontRid: RID): Boolean { throw NotImplementedError("_font_get_generate_mipmaps is not implemented for TextServerExtension") } @@ -325,6 +361,7 @@ public open class TextServerExtension : TextServer() { * available with MSDF. The lack of font hinting may result in less crisp and less readable fonts at * small sizes. */ + @GodotApiMember public open fun _fontSetMultichannelSignedDistanceField(fontRid: RID, msdf: Boolean): Unit { } @@ -333,6 +370,7 @@ public open class TextServerExtension : TextServer() { * Returns `true` if glyphs of all sizes are rendered using single multichannel signed distance * field generated from the dynamic font vector data. */ + @GodotApiMember public open fun _fontIsMultichannelSignedDistanceField(fontRid: RID): Boolean { throw NotImplementedError("_font_is_multichannel_signed_distance_field is not implemented for TextServerExtension") } @@ -342,6 +380,7 @@ public open class TextServerExtension : TextServer() { * Sets the width of the range around the shape between the minimum and maximum representable * signed distance. */ + @GodotApiMember public open fun _fontSetMsdfPixelRange(fontRid: RID, msdfPixelRange: Long): Unit { } @@ -350,6 +389,7 @@ public open class TextServerExtension : TextServer() { * Returns the width of the range around the shape between the minimum and maximum representable * signed distance. */ + @GodotApiMember public open fun _fontGetMsdfPixelRange(fontRid: RID): Long { throw NotImplementedError("_font_get_msdf_pixel_range is not implemented for TextServerExtension") } @@ -358,6 +398,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Sets source font size used to generate MSDF textures. */ + @GodotApiMember public open fun _fontSetMsdfSize(fontRid: RID, msdfSize: Long): Unit { } @@ -365,6 +406,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Returns source font size used to generate MSDF textures. */ + @GodotApiMember public open fun _fontGetMsdfSize(fontRid: RID): Long { throw NotImplementedError("_font_get_msdf_size is not implemented for TextServerExtension") } @@ -374,6 +416,7 @@ public open class TextServerExtension : TextServer() { * Sets bitmap font fixed size. If set to value greater than zero, same cache entry will be used * for all font sizes. */ + @GodotApiMember public open fun _fontSetFixedSize(fontRid: RID, fixedSize: Long): Unit { } @@ -381,6 +424,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Returns bitmap font fixed size. */ + @GodotApiMember public open fun _fontGetFixedSize(fontRid: RID): Long { throw NotImplementedError("_font_get_fixed_size is not implemented for TextServerExtension") } @@ -389,6 +433,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Sets bitmap font scaling mode. This property is used only if `fixed_size` is greater than zero. */ + @GodotApiMember public open fun _fontSetFixedSizeScaleMode(fontRid: RID, fixedSizeScaleMode: TextServer.FixedSizeScaleMode): Unit { } @@ -397,6 +442,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Returns bitmap font scaling mode. */ + @GodotApiMember public open fun _fontGetFixedSizeScaleMode(fontRid: RID): TextServer.FixedSizeScaleMode { throw NotImplementedError("_font_get_fixed_size_scale_mode is not implemented for TextServerExtension") } @@ -405,6 +451,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * If set to `true`, system fonts can be automatically used as fallbacks. */ + @GodotApiMember public open fun _fontSetAllowSystemFallback(fontRid: RID, allowSystemFallback: Boolean): Unit { } @@ -412,6 +459,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Returns `true` if system fonts can be automatically used as fallbacks. */ + @GodotApiMember public open fun _fontIsAllowSystemFallback(fontRid: RID): Boolean { throw NotImplementedError("_font_is_allow_system_fallback is not implemented for TextServerExtension") } @@ -420,6 +468,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * If set to `true` auto-hinting is preferred over font built-in hinting. */ + @GodotApiMember public open fun _fontSetForceAutohinter(fontRid: RID, forceAutohinter: Boolean): Unit { } @@ -427,6 +476,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Returns `true` if auto-hinting is supported and preferred over font built-in hinting. */ + @GodotApiMember public open fun _fontIsForceAutohinter(fontRid: RID): Boolean { throw NotImplementedError("_font_is_force_autohinter is not implemented for TextServerExtension") } @@ -435,6 +485,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Sets font hinting mode. Used by dynamic fonts only. */ + @GodotApiMember public open fun _fontSetHinting(fontRid: RID, hinting: TextServer.Hinting): Unit { } @@ -442,6 +493,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Returns the font hinting mode. Used by dynamic fonts only. */ + @GodotApiMember public open fun _fontGetHinting(fontRid: RID): TextServer.Hinting { throw NotImplementedError("_font_get_hinting is not implemented for TextServerExtension") } @@ -450,6 +502,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Sets font subpixel glyph positioning mode. */ + @GodotApiMember public open fun _fontSetSubpixelPositioning(fontRid: RID, subpixelPositioning: TextServer.SubpixelPositioning): Unit { } @@ -458,6 +511,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Returns font subpixel glyph positioning mode. */ + @GodotApiMember public open fun _fontGetSubpixelPositioning(fontRid: RID): TextServer.SubpixelPositioning { throw NotImplementedError("_font_get_subpixel_positioning is not implemented for TextServerExtension") } @@ -466,6 +520,7 @@ public open class TextServerExtension : TextServer() { * Sets font embolden strength. If [strength] is not equal to zero, emboldens the font outlines. * Negative values reduce the outline thickness. */ + @GodotApiMember public open fun _fontSetEmbolden(fontRid: RID, strength: Double): Unit { } @@ -473,6 +528,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Returns font embolden strength. */ + @GodotApiMember public open fun _fontGetEmbolden(fontRid: RID): Double { throw NotImplementedError("_font_get_embolden is not implemented for TextServerExtension") } @@ -482,6 +538,7 @@ public open class TextServerExtension : TextServer() { * Sets the spacing for [spacing] (see [TextServer.SpacingType]) to [value] in pixels (not * relative to the font size). */ + @GodotApiMember public open fun _fontSetSpacing( fontRid: RID, spacing: TextServer.SpacingType, @@ -494,6 +551,7 @@ public open class TextServerExtension : TextServer() { * Returns the spacing for [spacing] (see [TextServer.SpacingType]) in pixels (not relative to the * font size). */ + @GodotApiMember public open fun _fontGetSpacing(fontRid: RID, spacing: TextServer.SpacingType): Long { throw NotImplementedError("_font_get_spacing is not implemented for TextServerExtension") } @@ -502,6 +560,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Sets extra baseline offset (as a fraction of font height). */ + @GodotApiMember public open fun _fontSetBaselineOffset(fontRid: RID, baselineOffset: Double): Unit { } @@ -509,6 +568,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Returns extra baseline offset (as a fraction of font height). */ + @GodotApiMember public open fun _fontGetBaselineOffset(fontRid: RID): Double { throw NotImplementedError("_font_get_baseline_offset is not implemented for TextServerExtension") } @@ -518,6 +578,7 @@ public open class TextServerExtension : TextServer() { * Sets 2D transform, applied to the font outlines, can be used for slanting, flipping, and * rotating glyphs. */ + @GodotApiMember public open fun _fontSetTransform(fontRid: RID, transform: Transform2D): Unit { } @@ -525,6 +586,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Returns 2D transform applied to the font outlines. */ + @GodotApiMember public open fun _fontGetTransform(fontRid: RID): Transform2D { throw NotImplementedError("_font_get_transform is not implemented for TextServerExtension") } @@ -533,6 +595,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Sets variation coordinates for the specified font cache entry. */ + @GodotApiMember public open fun _fontSetVariationCoordinates(fontRid: RID, variationCoordinates: Dictionary): Unit { } @@ -541,6 +604,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Returns variation coordinates for the specified font cache entry. */ + @GodotApiMember public open fun _fontGetVariationCoordinates(fontRid: RID): Dictionary { throw NotImplementedError("_font_get_variation_coordinates is not implemented for TextServerExtension") } @@ -550,6 +614,7 @@ public open class TextServerExtension : TextServer() { * Sets font oversampling factor, if set to `0.0` global oversampling factor is used instead. Used * by dynamic fonts only. */ + @GodotApiMember public open fun _fontSetOversampling(fontRid: RID, oversampling: Double): Unit { } @@ -558,6 +623,7 @@ public open class TextServerExtension : TextServer() { * Returns font oversampling factor, if set to `0.0` global oversampling factor is used instead. * Used by dynamic fonts only. */ + @GodotApiMember public open fun _fontGetOversampling(fontRid: RID): Double { throw NotImplementedError("_font_get_oversampling is not implemented for TextServerExtension") } @@ -567,6 +633,7 @@ public open class TextServerExtension : TextServer() { * Returns list of the font sizes in the cache. Each size is [Vector2i] with font size and outline * size. */ + @GodotApiMember public open fun _fontGetSizeCacheList(fontRid: RID): VariantArray { throw NotImplementedError("_font_get_size_cache_list is not implemented for TextServerExtension") } @@ -575,6 +642,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Removes all font sizes from the cache entry. */ + @GodotApiMember public open fun _fontClearSizeCache(fontRid: RID): Unit { } @@ -582,6 +650,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Removes specified font size from the cache entry. */ + @GodotApiMember public open fun _fontRemoveSizeCache(fontRid: RID, size: Vector2i): Unit { } @@ -589,6 +658,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Sets the font ascent (number of pixels above the baseline). */ + @GodotApiMember public open fun _fontSetAscent( fontRid: RID, size: Long, @@ -600,6 +670,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Returns the font ascent (number of pixels above the baseline). */ + @GodotApiMember public open fun _fontGetAscent(fontRid: RID, size: Long): Double { throw NotImplementedError("_font_get_ascent is not implemented for TextServerExtension") } @@ -608,6 +679,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Sets the font descent (number of pixels below the baseline). */ + @GodotApiMember public open fun _fontSetDescent( fontRid: RID, size: Long, @@ -619,6 +691,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Returns the font descent (number of pixels below the baseline). */ + @GodotApiMember public open fun _fontGetDescent(fontRid: RID, size: Long): Double { throw NotImplementedError("_font_get_descent is not implemented for TextServerExtension") } @@ -627,6 +700,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Sets pixel offset of the underline below the baseline. */ + @GodotApiMember public open fun _fontSetUnderlinePosition( fontRid: RID, size: Long, @@ -638,6 +712,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Returns pixel offset of the underline below the baseline. */ + @GodotApiMember public open fun _fontGetUnderlinePosition(fontRid: RID, size: Long): Double { throw NotImplementedError("_font_get_underline_position is not implemented for TextServerExtension") } @@ -646,6 +721,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Sets thickness of the underline in pixels. */ + @GodotApiMember public open fun _fontSetUnderlineThickness( fontRid: RID, size: Long, @@ -657,6 +733,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Returns thickness of the underline in pixels. */ + @GodotApiMember public open fun _fontGetUnderlineThickness(fontRid: RID, size: Long): Double { throw NotImplementedError("_font_get_underline_thickness is not implemented for TextServerExtension") } @@ -665,6 +742,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Sets scaling factor of the color bitmap font. */ + @GodotApiMember public open fun _fontSetScale( fontRid: RID, size: Long, @@ -676,6 +754,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Returns scaling factor of the color bitmap font. */ + @GodotApiMember public open fun _fontGetScale(fontRid: RID, size: Long): Double { throw NotImplementedError("_font_get_scale is not implemented for TextServerExtension") } @@ -684,6 +763,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Returns number of textures used by font cache entry. */ + @GodotApiMember public open fun _fontGetTextureCount(fontRid: RID, size: Vector2i): Long { throw NotImplementedError("_font_get_texture_count is not implemented for TextServerExtension") } @@ -692,6 +772,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Removes all textures from font cache entry. */ + @GodotApiMember public open fun _fontClearTextures(fontRid: RID, size: Vector2i): Unit { } @@ -699,6 +780,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Removes specified texture from the cache entry. */ + @GodotApiMember public open fun _fontRemoveTexture( fontRid: RID, size: Vector2i, @@ -710,6 +792,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Sets font cache texture image data. */ + @GodotApiMember public open fun _fontSetTextureImage( fontRid: RID, size: Vector2i, @@ -722,6 +805,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Returns font cache texture image data. */ + @GodotApiMember public open fun _fontGetTextureImage( fontRid: RID, size: Vector2i, @@ -734,6 +818,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Sets array containing glyph packing data. */ + @GodotApiMember public open fun _fontSetTextureOffsets( fontRid: RID, size: Vector2i, @@ -746,6 +831,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Returns array containing glyph packing data. */ + @GodotApiMember public open fun _fontGetTextureOffsets( fontRid: RID, size: Vector2i, @@ -758,6 +844,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Returns list of rendered glyphs in the cache entry. */ + @GodotApiMember public open fun _fontGetGlyphList(fontRid: RID, size: Vector2i): PackedInt32Array { throw NotImplementedError("_font_get_glyph_list is not implemented for TextServerExtension") } @@ -766,6 +853,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Removes all rendered glyph information from the cache entry. */ + @GodotApiMember public open fun _fontClearGlyphs(fontRid: RID, size: Vector2i): Unit { } @@ -773,6 +861,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Removes specified rendered glyph information from the cache entry. */ + @GodotApiMember public open fun _fontRemoveGlyph( fontRid: RID, size: Vector2i, @@ -784,6 +873,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Returns glyph advance (offset of the next glyph). */ + @GodotApiMember public open fun _fontGetGlyphAdvance( fontRid: RID, size: Long, @@ -796,6 +886,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Sets glyph advance (offset of the next glyph). */ + @GodotApiMember public open fun _fontSetGlyphAdvance( fontRid: RID, size: Long, @@ -808,6 +899,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Returns glyph offset from the baseline. */ + @GodotApiMember public open fun _fontGetGlyphOffset( fontRid: RID, size: Vector2i, @@ -820,6 +912,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Sets glyph offset from the baseline. */ + @GodotApiMember public open fun _fontSetGlyphOffset( fontRid: RID, size: Vector2i, @@ -832,6 +925,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Returns size of the glyph. */ + @GodotApiMember public open fun _fontGetGlyphSize( fontRid: RID, size: Vector2i, @@ -844,6 +938,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Sets size of the glyph. */ + @GodotApiMember public open fun _fontSetGlyphSize( fontRid: RID, size: Vector2i, @@ -856,6 +951,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Returns rectangle in the cache texture containing the glyph. */ + @GodotApiMember public open fun _fontGetGlyphUvRect( fontRid: RID, size: Vector2i, @@ -868,6 +964,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Sets rectangle in the cache texture containing the glyph. */ + @GodotApiMember public open fun _fontSetGlyphUvRect( fontRid: RID, size: Vector2i, @@ -880,6 +977,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Returns index of the cache texture containing the glyph. */ + @GodotApiMember public open fun _fontGetGlyphTextureIdx( fontRid: RID, size: Vector2i, @@ -892,6 +990,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Sets index of the cache texture containing the glyph. */ + @GodotApiMember public open fun _fontSetGlyphTextureIdx( fontRid: RID, size: Vector2i, @@ -904,6 +1003,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Returns resource ID of the cache texture containing the glyph. */ + @GodotApiMember public open fun _fontGetGlyphTextureRid( fontRid: RID, size: Vector2i, @@ -916,6 +1016,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Returns size of the cache texture containing the glyph. */ + @GodotApiMember public open fun _fontGetGlyphTextureSize( fontRid: RID, size: Vector2i, @@ -928,6 +1029,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Returns outline contours of the glyph. */ + @GodotApiMember public open fun _fontGetGlyphContours( fontRid: RID, size: Long, @@ -940,6 +1042,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Returns list of the kerning overrides. */ + @GodotApiMember public open fun _fontGetKerningList(fontRid: RID, size: Long): VariantArray { throw NotImplementedError("_font_get_kerning_list is not implemented for TextServerExtension") } @@ -948,6 +1051,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Removes all kerning overrides. */ + @GodotApiMember public open fun _fontClearKerningMap(fontRid: RID, size: Long): Unit { } @@ -955,6 +1059,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Removes kerning override for the pair of glyphs. */ + @GodotApiMember public open fun _fontRemoveKerning( fontRid: RID, size: Long, @@ -966,6 +1071,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Sets kerning for the pair of glyphs. */ + @GodotApiMember public open fun _fontSetKerning( fontRid: RID, size: Long, @@ -978,6 +1084,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Returns kerning for the pair of glyphs. */ + @GodotApiMember public open fun _fontGetKerning( fontRid: RID, size: Long, @@ -990,6 +1097,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Returns the glyph index of a [char], optionally modified by the [variationSelector]. */ + @GodotApiMember public open fun _fontGetGlyphIndex( fontRid: RID, size: Long, @@ -1003,6 +1111,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Returns character code associated with [glyphIndex], or `0` if [glyphIndex] is invalid. */ + @GodotApiMember public open fun _fontGetCharFromGlyphIndex( fontRid: RID, size: Long, @@ -1015,6 +1124,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Returns `true` if a Unicode [char] is available in the font. */ + @GodotApiMember public open fun _fontHasChar(fontRid: RID, char: Long): Boolean { throw NotImplementedError("_font_has_char is not implemented for TextServerExtension") } @@ -1023,6 +1133,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Returns a string containing all the characters available in the font. */ + @GodotApiMember public open fun _fontGetSupportedChars(fontRid: RID): String { throw NotImplementedError("_font_get_supported_chars is not implemented for TextServerExtension") } @@ -1031,6 +1142,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Renders the range of characters to the font cache texture. */ + @GodotApiMember public open fun _fontRenderRange( fontRid: RID, size: Vector2i, @@ -1043,6 +1155,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Renders specified glyph to the font cache texture. */ + @GodotApiMember public open fun _fontRenderGlyph( fontRid: RID, size: Vector2i, @@ -1054,6 +1167,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Draws single glyph into a canvas item at the position, using [fontRid] at the size [size]. */ + @GodotApiMember public open fun _fontDrawGlyph( fontRid: RID, canvas: RID, @@ -1069,6 +1183,7 @@ public open class TextServerExtension : TextServer() { * Draws single glyph outline of size [outlineSize] into a canvas item at the position, using * [fontRid] at the size [size]. */ + @GodotApiMember public open fun _fontDrawGlyphOutline( fontRid: RID, canvas: RID, @@ -1085,6 +1200,7 @@ public open class TextServerExtension : TextServer() { * Returns `true`, if font supports given language * ([url=https://en.wikipedia.org/wiki/ISO_639-1]ISO 639[/url] code). */ + @GodotApiMember public open fun _fontIsLanguageSupported(fontRid: RID, language: String): Boolean { throw NotImplementedError("_font_is_language_supported is not implemented for TextServerExtension") } @@ -1093,6 +1209,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Adds override for [_fontIsLanguageSupported]. */ + @GodotApiMember public open fun _fontSetLanguageSupportOverride( fontRid: RID, language: String, @@ -1104,6 +1221,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Returns `true` if support override is enabled for the [language]. */ + @GodotApiMember public open fun _fontGetLanguageSupportOverride(fontRid: RID, language: String): Boolean { throw NotImplementedError("_font_get_language_support_override is not implemented for TextServerExtension") } @@ -1112,6 +1230,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Remove language support override. */ + @GodotApiMember public open fun _fontRemoveLanguageSupportOverride(fontRid: RID, language: String): Unit { } @@ -1119,6 +1238,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Returns list of language support overrides. */ + @GodotApiMember public open fun _fontGetLanguageSupportOverrides(fontRid: RID): PackedStringArray { throw NotImplementedError("_font_get_language_support_overrides is not implemented for TextServerExtension") } @@ -1127,6 +1247,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Returns `true`, if font supports given script (ISO 15924 code). */ + @GodotApiMember public open fun _fontIsScriptSupported(fontRid: RID, script: String): Boolean { throw NotImplementedError("_font_is_script_supported is not implemented for TextServerExtension") } @@ -1135,6 +1256,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Adds override for [_fontIsScriptSupported]. */ + @GodotApiMember public open fun _fontSetScriptSupportOverride( fontRid: RID, script: String, @@ -1146,6 +1268,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Returns `true` if support override is enabled for the [script]. */ + @GodotApiMember public open fun _fontGetScriptSupportOverride(fontRid: RID, script: String): Boolean { throw NotImplementedError("_font_get_script_support_override is not implemented for TextServerExtension") } @@ -1154,6 +1277,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Removes script support override. */ + @GodotApiMember public open fun _fontRemoveScriptSupportOverride(fontRid: RID, script: String): Unit { } @@ -1161,6 +1285,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Returns list of script support overrides. */ + @GodotApiMember public open fun _fontGetScriptSupportOverrides(fontRid: RID): PackedStringArray { throw NotImplementedError("_font_get_script_support_overrides is not implemented for TextServerExtension") } @@ -1169,6 +1294,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Sets font OpenType feature set override. */ + @GodotApiMember public open fun _fontSetOpentypeFeatureOverrides(fontRid: RID, overrides: Dictionary): Unit { } @@ -1177,6 +1303,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Returns font OpenType feature set override. */ + @GodotApiMember public open fun _fontGetOpentypeFeatureOverrides(fontRid: RID): Dictionary { throw NotImplementedError("_font_get_opentype_feature_overrides is not implemented for TextServerExtension") } @@ -1185,6 +1312,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Returns the dictionary of the supported OpenType features. */ + @GodotApiMember public open fun _fontSupportedFeatureList(fontRid: RID): Dictionary { throw NotImplementedError("_font_supported_feature_list is not implemented for TextServerExtension") } @@ -1193,6 +1321,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Returns the dictionary of the supported OpenType variation coordinates. */ + @GodotApiMember public open fun _fontSupportedVariationList(fontRid: RID): Dictionary { throw NotImplementedError("_font_supported_variation_list is not implemented for TextServerExtension") } @@ -1201,6 +1330,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Returns the font oversampling factor, shared by all fonts in the TextServer. */ + @GodotApiMember public open fun _fontGetGlobalOversampling(): Double { throw NotImplementedError("_font_get_global_oversampling is not implemented for TextServerExtension") } @@ -1209,6 +1339,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Sets oversampling factor, shared by all font in the TextServer. */ + @GodotApiMember public open fun _fontSetGlobalOversampling(oversampling: Double): Unit { } @@ -1217,6 +1348,7 @@ public open class TextServerExtension : TextServer() { * Returns size of the replacement character (box with character hexadecimal code that is drawn in * place of invalid characters). */ + @GodotApiMember public open fun _getHexCodeBoxSize(size: Long, index: Long): Vector2 { throw NotImplementedError("_get_hex_code_box_size is not implemented for TextServerExtension") } @@ -1225,6 +1357,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Draws box displaying character hexadecimal code. */ + @GodotApiMember public open fun _drawHexCodeBox( canvas: RID, size: Long, @@ -1238,6 +1371,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Creates a new buffer for complex text layout, with the given [direction] and [orientation]. */ + @GodotApiMember public open fun _createShapedText(direction: TextServer.Direction, orientation: TextServer.Orientation): RID { throw NotImplementedError("_create_shaped_text is not implemented for TextServerExtension") @@ -1247,6 +1381,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Clears text buffer (removes text and inline objects). */ + @GodotApiMember public open fun _shapedTextClear(shaped: RID): Unit { } @@ -1255,6 +1390,7 @@ public open class TextServerExtension : TextServer() { * Sets desired text direction. If set to [TextServer.DIRECTION_AUTO], direction will be detected * based on the buffer contents and current locale. */ + @GodotApiMember public open fun _shapedTextSetDirection(shaped: RID, direction: TextServer.Direction): Unit { } @@ -1262,6 +1398,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Returns direction of the text. */ + @GodotApiMember public open fun _shapedTextGetDirection(shaped: RID): TextServer.Direction { throw NotImplementedError("_shaped_text_get_direction is not implemented for TextServerExtension") } @@ -1270,6 +1407,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Returns direction of the text, inferred by the BiDi algorithm. */ + @GodotApiMember public open fun _shapedTextGetInferredDirection(shaped: RID): TextServer.Direction { throw NotImplementedError("_shaped_text_get_inferred_direction is not implemented for TextServerExtension") } @@ -1278,6 +1416,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Overrides BiDi for the structured text. */ + @GodotApiMember public open fun _shapedTextSetBidiOverride(shaped: RID, `override`: VariantArray): Unit { } @@ -1286,6 +1425,7 @@ public open class TextServerExtension : TextServer() { * Sets custom punctuation character list, used for word breaking. If set to empty string, server * defaults are used. */ + @GodotApiMember public open fun _shapedTextSetCustomPunctuation(shaped: RID, punct: String): Unit { } @@ -1294,6 +1434,7 @@ public open class TextServerExtension : TextServer() { * Returns custom punctuation character list, used for word breaking. If set to empty string, * server defaults are used. */ + @GodotApiMember public open fun _shapedTextGetCustomPunctuation(shaped: RID): String { throw NotImplementedError("_shaped_text_get_custom_punctuation is not implemented for TextServerExtension") } @@ -1302,6 +1443,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Sets ellipsis character used for text clipping. */ + @GodotApiMember public open fun _shapedTextSetCustomEllipsis(shaped: RID, char: Long): Unit { } @@ -1309,6 +1451,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Returns ellipsis character used for text clipping. */ + @GodotApiMember public open fun _shapedTextGetCustomEllipsis(shaped: RID): Long { throw NotImplementedError("_shaped_text_get_custom_ellipsis is not implemented for TextServerExtension") } @@ -1317,6 +1460,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Sets desired text orientation. */ + @GodotApiMember public open fun _shapedTextSetOrientation(shaped: RID, orientation: TextServer.Orientation): Unit { } @@ -1325,6 +1469,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Returns text orientation. */ + @GodotApiMember public open fun _shapedTextGetOrientation(shaped: RID): TextServer.Orientation { throw NotImplementedError("_shaped_text_get_orientation is not implemented for TextServerExtension") } @@ -1334,6 +1479,7 @@ public open class TextServerExtension : TextServer() { * If set to `true` text buffer will display invalid characters as hexadecimal codes, otherwise * nothing is displayed. */ + @GodotApiMember public open fun _shapedTextSetPreserveInvalid(shaped: RID, enabled: Boolean): Unit { } @@ -1342,6 +1488,7 @@ public open class TextServerExtension : TextServer() { * Returns `true` if text buffer is configured to display hexadecimal codes in place of invalid * characters. */ + @GodotApiMember public open fun _shapedTextGetPreserveInvalid(shaped: RID): Boolean { throw NotImplementedError("_shaped_text_get_preserve_invalid is not implemented for TextServerExtension") } @@ -1350,6 +1497,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * If set to `true` text buffer will display control characters. */ + @GodotApiMember public open fun _shapedTextSetPreserveControl(shaped: RID, enabled: Boolean): Unit { } @@ -1357,6 +1505,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Returns `true` if text buffer is configured to display control characters. */ + @GodotApiMember public open fun _shapedTextGetPreserveControl(shaped: RID): Boolean { throw NotImplementedError("_shaped_text_get_preserve_control is not implemented for TextServerExtension") } @@ -1365,6 +1514,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Sets extra spacing added between glyphs or lines in pixels. */ + @GodotApiMember public open fun _shapedTextSetSpacing( shaped: RID, spacing: TextServer.SpacingType, @@ -1376,6 +1526,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Returns extra spacing added between glyphs or lines in pixels. */ + @GodotApiMember public open fun _shapedTextGetSpacing(shaped: RID, spacing: TextServer.SpacingType): Long { throw NotImplementedError("_shaped_text_get_spacing is not implemented for TextServerExtension") } @@ -1384,6 +1535,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Adds text span and font to draw it to the text buffer. */ + @GodotApiMember public open fun _shapedTextAddString( shaped: RID, text: String, @@ -1401,6 +1553,7 @@ public open class TextServerExtension : TextServer() { * Adds inline object to the text buffer, [key] must be unique. In the text, object is represented * as [length] object replacement characters. */ + @GodotApiMember public open fun _shapedTextAddObject( shaped: RID, key: Any?, @@ -1416,6 +1569,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Sets new size and alignment of embedded object. */ + @GodotApiMember public open fun _shapedTextResizeObject( shaped: RID, key: Any?, @@ -1430,6 +1584,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Returns number of text spans added using [_shapedTextAddString] or [_shapedTextAddObject]. */ + @GodotApiMember public open fun _shapedGetSpanCount(shaped: RID): Long { throw NotImplementedError("_shaped_get_span_count is not implemented for TextServerExtension") } @@ -1438,6 +1593,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Returns text span metadata. */ + @GodotApiMember public open fun _shapedGetSpanMeta(shaped: RID, index: Long): Any? { throw NotImplementedError("_shaped_get_span_meta is not implemented for TextServerExtension") } @@ -1446,6 +1602,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Changes text span font, font size, and OpenType features, without changing the text. */ + @GodotApiMember public open fun _shapedSetSpanUpdateFont( shaped: RID, index: Long, @@ -1460,6 +1617,7 @@ public open class TextServerExtension : TextServer() { * Returns text buffer for the substring of the text in the [shaped] text buffer (including inline * objects). */ + @GodotApiMember public open fun _shapedTextSubstr( shaped: RID, start: Long, @@ -1472,6 +1630,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Returns the parent buffer from which the substring originates. */ + @GodotApiMember public open fun _shapedTextGetParent(shaped: RID): RID { throw NotImplementedError("_shaped_text_get_parent is not implemented for TextServerExtension") } @@ -1480,6 +1639,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Adjusts text width to fit to specified width, returns new text width. */ + @GodotApiMember public open fun _shapedTextFitToWidth( shaped: RID, width: Double, @@ -1492,6 +1652,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Aligns shaped text to the given tab-stops. */ + @GodotApiMember public open fun _shapedTextTabAlign(shaped: RID, tabStops: PackedFloat32Array): Double { throw NotImplementedError("_shaped_text_tab_align is not implemented for TextServerExtension") } @@ -1500,6 +1661,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Shapes buffer if it's not shaped. Returns `true` if the string is shaped successfully. */ + @GodotApiMember public open fun _shapedTextShape(shaped: RID): Boolean { throw NotImplementedError("_shaped_text_shape is not implemented for TextServerExtension") } @@ -1509,6 +1671,7 @@ public open class TextServerExtension : TextServer() { * Updates break points in the shaped text. This method is called by default implementation of * text breaking functions. */ + @GodotApiMember public open fun _shapedTextUpdateBreaks(shaped: RID): Boolean { throw NotImplementedError("_shaped_text_update_breaks is not implemented for TextServerExtension") } @@ -1518,6 +1681,7 @@ public open class TextServerExtension : TextServer() { * Updates justification points in the shaped text. This method is called by default * implementation of text justification functions. */ + @GodotApiMember public open fun _shapedTextUpdateJustificationOps(shaped: RID): Boolean { throw NotImplementedError("_shaped_text_update_justification_ops is not implemented for TextServerExtension") } @@ -1526,6 +1690,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Returns `true` if buffer is successfully shaped. */ + @GodotApiMember public open fun _shapedTextIsReady(shaped: RID): Boolean { throw NotImplementedError("_shaped_text_is_ready is not implemented for TextServerExtension") } @@ -1534,6 +1699,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Returns number of glyphs in the buffer. */ + @GodotApiMember public open fun _shapedTextGetGlyphCount(shaped: RID): Long { throw NotImplementedError("_shaped_text_get_glyph_count is not implemented for TextServerExtension") } @@ -1542,6 +1708,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Returns substring buffer character range in the parent buffer. */ + @GodotApiMember public open fun _shapedTextGetRange(shaped: RID): Vector2i { throw NotImplementedError("_shaped_text_get_range is not implemented for TextServerExtension") } @@ -1550,6 +1717,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Breaks text to the lines and columns. Returns character ranges for each segment. */ + @GodotApiMember public open fun _shapedTextGetLineBreaksAdv( shaped: RID, width: PackedFloat32Array, @@ -1564,6 +1732,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Breaks text to the lines and returns character ranges for each line. */ + @GodotApiMember public open fun _shapedTextGetLineBreaks( shaped: RID, width: Double, @@ -1578,6 +1747,7 @@ public open class TextServerExtension : TextServer() { * Breaks text into words and returns array of character ranges. Use [graphemeFlags] to set what * characters are used for breaking (see [TextServer.GraphemeFlag]). */ + @GodotApiMember public open fun _shapedTextGetWordBreaks( shaped: RID, graphemeFlags: TextServer.GraphemeFlag, @@ -1590,6 +1760,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Returns the position of the overrun trim. */ + @GodotApiMember public open fun _shapedTextGetTrimPos(shaped: RID): Long { throw NotImplementedError("_shaped_text_get_trim_pos is not implemented for TextServerExtension") } @@ -1598,6 +1769,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Returns position of the ellipsis. */ + @GodotApiMember public open fun _shapedTextGetEllipsisPos(shaped: RID): Long { throw NotImplementedError("_shaped_text_get_ellipsis_pos is not implemented for TextServerExtension") } @@ -1606,6 +1778,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Returns number of glyphs in the ellipsis. */ + @GodotApiMember public open fun _shapedTextGetEllipsisGlyphCount(shaped: RID): Long { throw NotImplementedError("_shaped_text_get_ellipsis_glyph_count is not implemented for TextServerExtension") } @@ -1614,6 +1787,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Trims text if it exceeds the given width. */ + @GodotApiMember public open fun _shapedTextOverrunTrimToWidth( shaped: RID, width: Double, @@ -1625,6 +1799,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Returns array of inline objects. */ + @GodotApiMember public open fun _shapedTextGetObjects(shaped: RID): VariantArray { throw NotImplementedError("_shaped_text_get_objects is not implemented for TextServerExtension") } @@ -1633,6 +1808,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Returns bounding rectangle of the inline object. */ + @GodotApiMember public open fun _shapedTextGetObjectRect(shaped: RID, key: Any?): Rect2 { throw NotImplementedError("_shaped_text_get_object_rect is not implemented for TextServerExtension") } @@ -1641,6 +1817,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Returns the character range of the inline object. */ + @GodotApiMember public open fun _shapedTextGetObjectRange(shaped: RID, key: Any?): Vector2i { throw NotImplementedError("_shaped_text_get_object_range is not implemented for TextServerExtension") } @@ -1649,6 +1826,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Returns the glyph index of the inline object. */ + @GodotApiMember public open fun _shapedTextGetObjectGlyph(shaped: RID, key: Any?): Long { throw NotImplementedError("_shaped_text_get_object_glyph is not implemented for TextServerExtension") } @@ -1657,6 +1835,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Returns size of the text. */ + @GodotApiMember public open fun _shapedTextGetSize(shaped: RID): Vector2 { throw NotImplementedError("_shaped_text_get_size is not implemented for TextServerExtension") } @@ -1666,6 +1845,7 @@ public open class TextServerExtension : TextServer() { * Returns the text ascent (number of pixels above the baseline for horizontal layout or to the * left of baseline for vertical). */ + @GodotApiMember public open fun _shapedTextGetAscent(shaped: RID): Double { throw NotImplementedError("_shaped_text_get_ascent is not implemented for TextServerExtension") } @@ -1675,6 +1855,7 @@ public open class TextServerExtension : TextServer() { * Returns the text descent (number of pixels below the baseline for horizontal layout or to the * right of baseline for vertical). */ + @GodotApiMember public open fun _shapedTextGetDescent(shaped: RID): Double { throw NotImplementedError("_shaped_text_get_descent is not implemented for TextServerExtension") } @@ -1683,6 +1864,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Returns width (for horizontal layout) or height (for vertical) of the text. */ + @GodotApiMember public open fun _shapedTextGetWidth(shaped: RID): Double { throw NotImplementedError("_shaped_text_get_width is not implemented for TextServerExtension") } @@ -1691,6 +1873,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Returns pixel offset of the underline below the baseline. */ + @GodotApiMember public open fun _shapedTextGetUnderlinePosition(shaped: RID): Double { throw NotImplementedError("_shaped_text_get_underline_position is not implemented for TextServerExtension") } @@ -1699,6 +1882,7 @@ public open class TextServerExtension : TextServer() { * **Required.** * Returns thickness of the underline. */ + @GodotApiMember public open fun _shapedTextGetUnderlineThickness(shaped: RID): Double { throw NotImplementedError("_shaped_text_get_underline_thickness is not implemented for TextServerExtension") } @@ -1707,6 +1891,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Returns dominant direction of in the range of text. */ + @GodotApiMember public open fun _shapedTextGetDominantDirectionInRange( shaped: RID, start: Long, @@ -1719,6 +1904,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Returns selection rectangles for the specified character range. */ + @GodotApiMember public open fun _shapedTextGetSelection( shaped: RID, start: Long, @@ -1731,6 +1917,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Returns grapheme index at the specified pixel offset at the baseline, or `-1` if none is found. */ + @GodotApiMember public open fun _shapedTextHitTestGrapheme(shaped: RID, coord: Double): Long { throw NotImplementedError("_shaped_text_hit_test_grapheme is not implemented for TextServerExtension") } @@ -1740,6 +1927,7 @@ public open class TextServerExtension : TextServer() { * Returns caret character offset at the specified pixel offset at the baseline. This function * always returns a valid position. */ + @GodotApiMember public open fun _shapedTextHitTestPosition(shaped: RID, coord: Double): Long { throw NotImplementedError("_shaped_text_hit_test_position is not implemented for TextServerExtension") } @@ -1750,6 +1938,7 @@ public open class TextServerExtension : TextServer() { * leftmost point of the baseline (for horizontal layout) or topmost point of the baseline (for * vertical layout). */ + @GodotApiMember public open fun _shapedTextDraw( shaped: RID, canvas: RID, @@ -1766,6 +1955,7 @@ public open class TextServerExtension : TextServer() { * specifies the leftmost point of the baseline (for horizontal layout) or topmost point of the * baseline (for vertical layout). */ + @GodotApiMember public open fun _shapedTextDrawOutline( shaped: RID, canvas: RID, @@ -1781,6 +1971,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Returns composite character's bounds as offsets from the start of the line. */ + @GodotApiMember public open fun _shapedTextGetGraphemeBounds(shaped: RID, pos: Long): Vector2 { throw NotImplementedError("_shaped_text_get_grapheme_bounds is not implemented for TextServerExtension") } @@ -1789,6 +1980,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Returns grapheme end position closest to the [pos]. */ + @GodotApiMember public open fun _shapedTextNextGraphemePos(shaped: RID, pos: Long): Long { throw NotImplementedError("_shaped_text_next_grapheme_pos is not implemented for TextServerExtension") } @@ -1797,6 +1989,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Returns grapheme start position closest to the [pos]. */ + @GodotApiMember public open fun _shapedTextPrevGraphemePos(shaped: RID, pos: Long): Long { throw NotImplementedError("_shaped_text_prev_grapheme_pos is not implemented for TextServerExtension") } @@ -1805,6 +1998,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Returns array of the composite character boundaries. */ + @GodotApiMember public open fun _shapedTextGetCharacterBreaks(shaped: RID): PackedInt32Array { throw NotImplementedError("_shaped_text_get_character_breaks is not implemented for TextServerExtension") } @@ -1813,6 +2007,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Returns composite character end position closest to the [pos]. */ + @GodotApiMember public open fun _shapedTextNextCharacterPos(shaped: RID, pos: Long): Long { throw NotImplementedError("_shaped_text_next_character_pos is not implemented for TextServerExtension") } @@ -1821,6 +2016,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Returns composite character start position closest to the [pos]. */ + @GodotApiMember public open fun _shapedTextPrevCharacterPos(shaped: RID, pos: Long): Long { throw NotImplementedError("_shaped_text_prev_character_pos is not implemented for TextServerExtension") } @@ -1829,6 +2025,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Returns composite character position closest to the [pos]. */ + @GodotApiMember public open fun _shapedTextClosestCharacterPos(shaped: RID, pos: Long): Long { throw NotImplementedError("_shaped_text_closest_character_pos is not implemented for TextServerExtension") } @@ -1837,6 +2034,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Converts a number from the Western Arabic (0..9) to the numeral systems used in [language]. */ + @GodotApiMember public open fun _formatNumber(number: String, language: String): String { throw NotImplementedError("_format_number is not implemented for TextServerExtension") } @@ -1845,6 +2043,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Converts [number] from the numeral systems used in [language] to Western Arabic (0..9). */ + @GodotApiMember public open fun _parseNumber(number: String, language: String): String { throw NotImplementedError("_parse_number is not implemented for TextServerExtension") } @@ -1853,6 +2052,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Returns percent sign used in the [language]. */ + @GodotApiMember public open fun _percentSign(language: String): String { throw NotImplementedError("_percent_sign is not implemented for TextServerExtension") } @@ -1861,6 +2061,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Strips diacritics from the string. */ + @GodotApiMember public open fun _stripDiacritics(string: String): String { throw NotImplementedError("_strip_diacritics is not implemented for TextServerExtension") } @@ -1869,10 +2070,12 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Returns `true` if [string] is a valid identifier. */ + @GodotApiMember public open fun _isValidIdentifier(string: String): Boolean { throw NotImplementedError("_is_valid_identifier is not implemented for TextServerExtension") } + @GodotApiMember public open fun _isValidLetter(unicode: Long): Boolean { throw NotImplementedError("_is_valid_letter is not implemented for TextServerExtension") } @@ -1882,6 +2085,7 @@ public open class TextServerExtension : TextServer() { * Returns an array of the word break boundaries. Elements in the returned array are the offsets * of the start and end of words. Therefore the length of the array is always even. */ + @GodotApiMember public open fun _stringGetWordBreaks( string: String, language: String, @@ -1894,6 +2098,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Returns array of the composite character boundaries. */ + @GodotApiMember public open fun _stringGetCharacterBreaks(string: String, language: String): PackedInt32Array { throw NotImplementedError("_string_get_character_breaks is not implemented for TextServerExtension") } @@ -1903,6 +2108,7 @@ public open class TextServerExtension : TextServer() { * Returns index of the first string in [dict] which is visually confusable with the [string], or * `-1` if none is found. */ + @GodotApiMember public open fun _isConfusable(string: String, dict: PackedStringArray): Long { throw NotImplementedError("_is_confusable is not implemented for TextServerExtension") } @@ -1911,6 +2117,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Returns `true` if [string] is likely to be an attempt at confusing the reader. */ + @GodotApiMember public open fun _spoofCheck(string: String): Boolean { throw NotImplementedError("_spoof_check is not implemented for TextServerExtension") } @@ -1919,6 +2126,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Returns the string converted to uppercase. */ + @GodotApiMember public open fun _stringToUpper(string: String, language: String): String { throw NotImplementedError("_string_to_upper is not implemented for TextServerExtension") } @@ -1927,6 +2135,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Returns the string converted to lowercase. */ + @GodotApiMember public open fun _stringToLower(string: String, language: String): String { throw NotImplementedError("_string_to_lower is not implemented for TextServerExtension") } @@ -1935,6 +2144,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * Returns the string converted to title case. */ + @GodotApiMember public open fun _stringToTitle(string: String, language: String): String { throw NotImplementedError("_string_to_title is not implemented for TextServerExtension") } @@ -1944,6 +2154,7 @@ public open class TextServerExtension : TextServer() { * Default implementation of the BiDi algorithm override function. See * [TextServer.StructuredTextParser] for more info. */ + @GodotApiMember public open fun _parseStructuredText( parserType: TextServer.StructuredTextParser, args: VariantArray, @@ -1956,6 +2167,7 @@ public open class TextServerExtension : TextServer() { * **Optional.** * This method is called before text server is unregistered. */ + @GodotApiMember public open fun _cleanup(): Unit { } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/TextServerManager.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/TextServerManager.kt index 06ab155c04..d668909b5d 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/TextServerManager.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/TextServerManager.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Dictionary @@ -37,12 +38,14 @@ public object TextServerManager : Object() { /** * Emitted when a new interface has been added. */ + @GodotApiMember @JvmStatic public val interfaceAdded: Signal1 by Signal1 /** * Emitted when an interface is removed. */ + @GodotApiMember @JvmStatic public val interfaceRemoved: Signal1 by Signal1 diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Texture2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Texture2D.kt index 30062e3727..8d58eefa0d 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Texture2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Texture2D.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Color @@ -47,6 +48,7 @@ public open class Texture2D : Texture() { /** * Called when the [Texture2D]'s width is queried. */ + @GodotApiMember public open fun _getWidth(): Int { throw NotImplementedError("_get_width is not implemented for Texture2D") } @@ -54,6 +56,7 @@ public open class Texture2D : Texture() { /** * Called when the [Texture2D]'s height is queried. */ + @GodotApiMember public open fun _getHeight(): Int { throw NotImplementedError("_get_height is not implemented for Texture2D") } @@ -62,6 +65,7 @@ public open class Texture2D : Texture() { * Called when a pixel's opaque state in the [Texture2D] is queried at the specified `(x, y)` * position. */ + @GodotApiMember public open fun _isPixelOpaque(x: Int, y: Int): Boolean { throw NotImplementedError("_is_pixel_opaque is not implemented for Texture2D") } @@ -69,6 +73,7 @@ public open class Texture2D : Texture() { /** * Called when the presence of an alpha channel in the [Texture2D] is queried. */ + @GodotApiMember public open fun _hasAlpha(): Boolean { throw NotImplementedError("_has_alpha is not implemented for Texture2D") } @@ -80,6 +85,7 @@ public open class Texture2D : Texture() { * row-major order (resulting in 90-degree clockwise rotation). * **Note:** This is only used in 2D rendering, not 3D. */ + @GodotApiMember public open fun _draw( toCanvasItem: RID, pos: Vector2, @@ -95,6 +101,7 @@ public open class Texture2D : Texture() { * 90-degree clockwise rotation). * **Note:** This is only used in 2D rendering, not 3D. */ + @GodotApiMember public open fun _drawRect( toCanvasItem: RID, rect: Rect2, @@ -111,6 +118,7 @@ public open class Texture2D : Texture() { * instead of row-major order (resulting in 90-degree clockwise rotation). * **Note:** This is only used in 2D rendering, not 3D. */ + @GodotApiMember public open fun _drawRectRegion( toCanvasItem: RID, rect: Rect2, diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Texture3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Texture3D.kt index 5f51da82da..d8f5aca2ad 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Texture3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Texture3D.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.TypeManager @@ -39,6 +40,7 @@ public open class Texture3D : Texture() { /** * Called when the [Texture3D]'s format is queried. */ + @GodotApiMember public open fun _getFormat(): Image.Format { throw NotImplementedError("_get_format is not implemented for Texture3D") } @@ -46,6 +48,7 @@ public open class Texture3D : Texture() { /** * Called when the [Texture3D]'s width is queried. */ + @GodotApiMember public open fun _getWidth(): Int { throw NotImplementedError("_get_width is not implemented for Texture3D") } @@ -53,6 +56,7 @@ public open class Texture3D : Texture() { /** * Called when the [Texture3D]'s height is queried. */ + @GodotApiMember public open fun _getHeight(): Int { throw NotImplementedError("_get_height is not implemented for Texture3D") } @@ -60,6 +64,7 @@ public open class Texture3D : Texture() { /** * Called when the [Texture3D]'s depth is queried. */ + @GodotApiMember public open fun _getDepth(): Int { throw NotImplementedError("_get_depth is not implemented for Texture3D") } @@ -67,6 +72,7 @@ public open class Texture3D : Texture() { /** * Called when the presence of mipmaps in the [Texture3D] is queried. */ + @GodotApiMember public open fun _hasMipmaps(): Boolean { throw NotImplementedError("_has_mipmaps is not implemented for Texture3D") } @@ -74,6 +80,7 @@ public open class Texture3D : Texture() { /** * Called when the [Texture3D]'s data is queried. */ + @GodotApiMember public open fun _getData(): VariantArray { throw NotImplementedError("_get_data is not implemented for Texture3D") } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/TextureLayered.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/TextureLayered.kt index ab78908aff..77c73e2ac2 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/TextureLayered.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/TextureLayered.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.TypeManager @@ -38,6 +39,7 @@ public open class TextureLayered : Texture() { /** * Called when the [TextureLayered]'s format is queried. */ + @GodotApiMember public open fun _getFormat(): Image.Format { throw NotImplementedError("_get_format is not implemented for TextureLayered") } @@ -45,6 +47,7 @@ public open class TextureLayered : Texture() { /** * Called when the layers' type in the [TextureLayered] is queried. */ + @GodotApiMember public open fun _getLayeredType(): Long { throw NotImplementedError("_get_layered_type is not implemented for TextureLayered") } @@ -52,6 +55,7 @@ public open class TextureLayered : Texture() { /** * Called when the [TextureLayered]'s width queried. */ + @GodotApiMember public open fun _getWidth(): Int { throw NotImplementedError("_get_width is not implemented for TextureLayered") } @@ -59,6 +63,7 @@ public open class TextureLayered : Texture() { /** * Called when the [TextureLayered]'s height is queried. */ + @GodotApiMember public open fun _getHeight(): Int { throw NotImplementedError("_get_height is not implemented for TextureLayered") } @@ -66,6 +71,7 @@ public open class TextureLayered : Texture() { /** * Called when the number of layers in the [TextureLayered] is queried. */ + @GodotApiMember public open fun _getLayers(): Int { throw NotImplementedError("_get_layers is not implemented for TextureLayered") } @@ -73,6 +79,7 @@ public open class TextureLayered : Texture() { /** * Called when the presence of mipmaps in the [TextureLayered] is queried. */ + @GodotApiMember public open fun _hasMipmaps(): Boolean { throw NotImplementedError("_has_mipmaps is not implemented for TextureLayered") } @@ -80,6 +87,7 @@ public open class TextureLayered : Texture() { /** * Called when the data for a layer in the [TextureLayered] is queried. */ + @GodotApiMember public open fun _getLayerData(layerIndex: Int): Image? { throw NotImplementedError("_get_layer_data is not implemented for TextureLayered") } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ThemeDB.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ThemeDB.kt index bbbd42f0c4..f80d8fabf6 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ThemeDB.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ThemeDB.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Signal0 @@ -35,6 +36,7 @@ public object ThemeDB : Object() { * Emitted when one of the fallback values had been changed. Use it to refresh the look of * controls that may rely on the fallback theme items. */ + @GodotApiMember @JvmStatic public val fallbackChanged: Signal0 by Signal0 diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/TileData.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/TileData.kt index bd76c1dd4c..a1c3a46947 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/TileData.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/TileData.kt @@ -8,6 +8,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Color @@ -49,6 +50,7 @@ public open class TileData : Object() { /** * Emitted when any of the properties are changed. */ + @GodotApiMember public val changed: Signal0 by Signal0 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/TileMap.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/TileMap.kt index 3fa028a38b..624ac5dfd1 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/TileMap.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/TileMap.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Color @@ -52,6 +53,7 @@ public open class TileMap : Node2D() { /** * Emitted when the [TileSet] of this TileMap changes. */ + @GodotApiMember public val changed: Signal0 by Signal0 /** @@ -134,6 +136,7 @@ public open class TileMap : Node2D() { * **Note:** If the result of this function should changed, use [notifyRuntimeTileDataUpdate] to * notify the TileMap it needs an update. */ + @GodotApiMember public open fun _useTileDataRuntimeUpdate(layer: Int, coords: Vector2i): Boolean { throw NotImplementedError("_use_tile_data_runtime_update is not implemented for TileMap") } @@ -148,6 +151,7 @@ public open class TileMap : Node2D() { * **Note:** If the properties of [tileData] object should change over time, use * [notifyRuntimeTileDataUpdate] to notify the TileMap it needs an update. */ + @GodotApiMember public open fun _tileDataRuntimeUpdate( layer: Int, coords: Vector2i, diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/TileMapLayer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/TileMapLayer.kt index 9cab5dfd01..558afd6617 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/TileMapLayer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/TileMapLayer.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.PackedByteArray @@ -55,6 +56,7 @@ public open class TileMapLayer : Node2D() { * executing complex processing in a connected function, and consider delaying it to the end of the * frame instead (i.e. calling [Object.callDeferred]). */ + @GodotApiMember public val changed: Signal0 by Signal0 /** @@ -203,6 +205,7 @@ public open class TileMapLayer : Node2D() { * **Note:** If the result of this function should change, use [notifyRuntimeTileDataUpdate] to * notify the [TileMapLayer] it needs an update. */ + @GodotApiMember public open fun _useTileDataRuntimeUpdate(coords: Vector2i): Boolean { throw NotImplementedError("_use_tile_data_runtime_update is not implemented for TileMapLayer") } @@ -217,6 +220,7 @@ public open class TileMapLayer : Node2D() { * **Note:** If the properties of [tileData] object should change over time, use * [notifyRuntimeTileDataUpdate] to notify the [TileMapLayer] it needs an update. */ + @GodotApiMember public open fun _tileDataRuntimeUpdate(coords: Vector2i, tileData: TileData?): Unit { } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Timer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Timer.kt index d87a53dffd..175aeb7788 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Timer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Timer.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Signal0 @@ -44,6 +45,7 @@ public open class Timer : Node() { /** * Emitted when the timer reaches the end. */ + @GodotApiMember public val timeout: Signal0 by Signal0 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/TouchScreenButton.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/TouchScreenButton.kt index 5bf883f7d8..a2cc95f203 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/TouchScreenButton.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/TouchScreenButton.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Signal0 @@ -40,11 +41,13 @@ public open class TouchScreenButton : Node2D() { /** * Emitted when the button is pressed (down). */ + @GodotApiMember public val pressed: Signal0 by Signal0 /** * Emitted when the button is released (up). */ + @GodotApiMember public val released: Signal0 by Signal0 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Translation.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Translation.kt index cc00a66251..bd3355c4f7 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Translation.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Translation.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.PackedStringArray @@ -51,6 +52,7 @@ public open class Translation : Resource() { /** * Virtual method to override [getPluralMessage]. */ + @GodotApiMember public open fun _getPluralMessage( srcMessage: StringName, srcPluralMessage: StringName, @@ -63,6 +65,7 @@ public open class Translation : Resource() { /** * Virtual method to override [getMessage]. */ + @GodotApiMember public open fun _getMessage(srcMessage: StringName, context: StringName): StringName { throw NotImplementedError("_get_message is not implemented for Translation") } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Tree.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Tree.kt index f47baca6b1..17ccbaf33f 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Tree.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Tree.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Rect2 @@ -83,47 +84,56 @@ public open class Tree : Control() { /** * Emitted when an item is selected. */ + @GodotApiMember public val itemSelected: Signal0 by Signal0 /** * Emitted when a cell is selected. */ + @GodotApiMember public val cellSelected: Signal0 by Signal0 /** * Emitted instead of [signal item_selected] if [selectMode] is set to [SELECT_MULTI]. */ + @GodotApiMember public val multiSelected: Signal3 by Signal3 /** * Emitted when an item is selected with a mouse button. */ + @GodotApiMember public val itemMouseSelected: Signal2 by Signal2 /** * Emitted when a mouse button is clicked in the empty space of the tree. */ + @GodotApiMember public val emptyClicked: Signal2 by Signal2 /** * Emitted when an item is edited. */ + @GodotApiMember public val itemEdited: Signal0 by Signal0 /** * Emitted when an item with [TreeItem.CELL_MODE_CUSTOM] is clicked with a mouse button. */ + @GodotApiMember public val customItemClicked: Signal1 by Signal1 /** * Emitted when an item's icon is double-clicked. For a signal that emits when any part of the * item is double-clicked, see [signal item_activated]. */ + @GodotApiMember public val itemIconDoubleClicked: Signal0 by Signal0 /** * Emitted when an item is collapsed by a click on the folding arrow. */ + @GodotApiMember public val itemCollapsed: Signal1 by Signal1 /** @@ -132,33 +142,39 @@ public open class Tree : Control() { * will be processed is as follows: the item that invoked the method, children of that item, and * finally parents of that item. */ + @GodotApiMember public val checkPropagatedToItem: Signal2 by Signal2 /** * Emitted when a button on the tree was pressed (see [TreeItem.addButton]). */ + @GodotApiMember public val buttonClicked: Signal4 by Signal4 /** * Emitted when a cell with the [TreeItem.CELL_MODE_CUSTOM] is clicked to be edited. */ + @GodotApiMember public val customPopupEdited: Signal1 by Signal1 /** * Emitted when an item is double-clicked, or selected with a `ui_accept` input event (e.g. using * [kbd]Enter[/kbd] or [kbd]Space[/kbd] on the keyboard). */ + @GodotApiMember public val itemActivated: Signal0 by Signal0 /** * Emitted when a column's title is clicked with either [MOUSE_BUTTON_LEFT] or * [MOUSE_BUTTON_RIGHT]. */ + @GodotApiMember public val columnTitleClicked: Signal2 by Signal2 /** * Emitted when a left mouse button click does not select any item. */ + @GodotApiMember public val nothingSelected: Signal0 by Signal0 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Tween.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Tween.kt index 4cc63de6da..9ea157ffda 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Tween.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Tween.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Callable @@ -167,18 +168,21 @@ public open class Tween : RefCounted() { * Emitted when one step of the [Tween] is complete, providing the step index. One step is either * a single [Tweener] or a group of [Tweener]s running in parallel. */ + @GodotApiMember public val stepFinished: Signal1 by Signal1 /** * Emitted when a full loop is complete (see [setLoops]), providing the loop index. This signal is * not emitted after the final loop, use [signal finished] instead for this case. */ + @GodotApiMember public val loopFinished: Signal1 by Signal1 /** * Emitted when the [Tween] has finished all tweening. Never emitted when the [Tween] is set to * infinite looping (see [setLoops]). */ + @GodotApiMember public val finished: Signal0 by Signal0 public override fun new(scriptIndex: Int): Unit { diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Tweener.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Tweener.kt index 8367a47cf4..4b875df748 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Tweener.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Tweener.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.core.Signal0 import kotlin.Int @@ -22,6 +23,7 @@ public open class Tweener internal constructor() : RefCounted() { /** * Emitted when the [Tweener] has just finished its job. */ + @GodotApiMember public val finished: Signal0 by Signal0 public override fun new(scriptIndex: Int): Unit { diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/UndoRedo.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/UndoRedo.kt index 95fd593d75..f9c146abae 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/UndoRedo.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/UndoRedo.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Callable @@ -135,6 +136,7 @@ public open class UndoRedo : Object() { /** * Called when [undo] or [redo] was called. */ + @GodotApiMember public val versionChanged: Signal0 by Signal0 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VideoStream.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VideoStream.kt index d92973b3c8..10098bf0b8 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VideoStream.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VideoStream.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.TypeManager @@ -46,6 +47,7 @@ public open class VideoStream : Resource() { * Called when the video starts playing, to initialize and return a subclass of * [VideoStreamPlayback]. */ + @GodotApiMember public open fun _instantiatePlayback(): VideoStreamPlayback? { throw NotImplementedError("_instantiate_playback is not implemented for VideoStream") } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VideoStreamPlayback.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VideoStreamPlayback.kt index 614a1a7eaa..987c260560 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VideoStreamPlayback.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VideoStreamPlayback.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.PackedFloat32Array @@ -36,6 +37,7 @@ public open class VideoStreamPlayback : Resource() { * Stops playback. May be called multiple times before [_play], or in response to * [VideoStreamPlayer.stop]. [_isPlaying] should return false once stopped. */ + @GodotApiMember public open fun _stop(): Unit { } @@ -44,12 +46,14 @@ public open class VideoStreamPlayback : Resource() { * manual playback may also invoke [_stop] multiple times before this method is called. [_isPlaying] * should return true once playing. */ + @GodotApiMember public open fun _play(): Unit { } /** * Returns the playback state, as determined by calls to [_play] and [_stop]. */ + @GodotApiMember public open fun _isPlaying(): Boolean { throw NotImplementedError("_is_playing is not implemented for VideoStreamPlayback") } @@ -58,12 +62,14 @@ public open class VideoStreamPlayback : Resource() { * Set the paused status of video playback. [_isPaused] must return [paused]. Called in response * to the [VideoStreamPlayer.paused] setter. */ + @GodotApiMember public open fun _setPaused(paused: Boolean): Unit { } /** * Returns the paused status, as set by [_setPaused]. */ + @GodotApiMember public open fun _isPaused(): Boolean { throw NotImplementedError("_is_paused is not implemented for VideoStreamPlayback") } @@ -71,6 +77,7 @@ public open class VideoStreamPlayback : Resource() { /** * Returns the video duration in seconds, if known, or 0 if unknown. */ + @GodotApiMember public open fun _getLength(): Double { throw NotImplementedError("_get_length is not implemented for VideoStreamPlayback") } @@ -79,6 +86,7 @@ public open class VideoStreamPlayback : Resource() { * Return the current playback timestamp. Called in response to the * [VideoStreamPlayer.streamPosition] getter. */ + @GodotApiMember public open fun _getPlaybackPosition(): Double { throw NotImplementedError("_get_playback_position is not implemented for VideoStreamPlayback") } @@ -86,6 +94,7 @@ public open class VideoStreamPlayback : Resource() { /** * Seeks to [time] seconds. Called in response to the [VideoStreamPlayer.streamPosition] setter. */ + @GodotApiMember public open fun _seek(time: Double): Unit { } @@ -93,12 +102,14 @@ public open class VideoStreamPlayback : Resource() { * Select the audio track [idx]. Called when playback starts, and in response to the * [VideoStreamPlayer.audioTrack] setter. */ + @GodotApiMember public open fun _setAudioTrack(idx: Int): Unit { } /** * Allocates a [Texture2D] in which decoded video frames will be drawn. */ + @GodotApiMember public open fun _getTexture(): Texture2D? { throw NotImplementedError("_get_texture is not implemented for VideoStreamPlayback") } @@ -107,12 +118,14 @@ public open class VideoStreamPlayback : Resource() { * Ticks video playback for [delta] seconds. Called every frame as long as [_isPaused] and * [_isPlaying] return true. */ + @GodotApiMember public open fun _update(delta: Double): Unit { } /** * Returns the number of audio channels. */ + @GodotApiMember public open fun _getChannels(): Int { throw NotImplementedError("_get_channels is not implemented for VideoStreamPlayback") } @@ -120,6 +133,7 @@ public open class VideoStreamPlayback : Resource() { /** * Returns the audio sample rate used for mixing. */ + @GodotApiMember public open fun _getMixRate(): Int { throw NotImplementedError("_get_mix_rate is not implemented for VideoStreamPlayback") } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VideoStreamPlayer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VideoStreamPlayer.kt index 5c57bf84b7..cf66c19e66 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VideoStreamPlayer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VideoStreamPlayer.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Signal0 @@ -41,6 +42,7 @@ public open class VideoStreamPlayer : Control() { /** * Emitted when playback is finished. */ + @GodotApiMember public val finished: Signal0 by Signal0 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Viewport.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Viewport.kt index 232234526b..b8fbd6187a 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Viewport.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Viewport.kt @@ -8,6 +8,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.RID @@ -60,12 +61,14 @@ public open class Viewport internal constructor() : Node() { * Emitted when the size of the viewport is changed, whether by resizing of window, or some other * means. */ + @GodotApiMember public val sizeChanged: Signal0 by Signal0 /** * Emitted when a Control node grabs keyboard focus. * **Note:** A Control node losing focus doesn't cause this signal to be emitted. */ + @GodotApiMember public val guiFocusChanged: Signal1 by Signal1 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisibleOnScreenNotifier2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisibleOnScreenNotifier2D.kt index ba3a8ead7e..8fff799500 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisibleOnScreenNotifier2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisibleOnScreenNotifier2D.kt @@ -8,6 +8,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Rect2 @@ -37,11 +38,13 @@ public open class VisibleOnScreenNotifier2D : Node2D() { /** * Emitted when the VisibleOnScreenNotifier2D enters the screen. */ + @GodotApiMember public val screenEntered: Signal0 by Signal0 /** * Emitted when the VisibleOnScreenNotifier2D exits the screen. */ + @GodotApiMember public val screenExited: Signal0 by Signal0 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisibleOnScreenNotifier3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisibleOnScreenNotifier3D.kt index fd63a9c630..3507c9ac19 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisibleOnScreenNotifier3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisibleOnScreenNotifier3D.kt @@ -8,6 +8,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.AABB @@ -38,11 +39,13 @@ public open class VisibleOnScreenNotifier3D : VisualInstance3D() { /** * Emitted when the [VisibleOnScreenNotifier3D] enters the screen. */ + @GodotApiMember public val screenEntered: Signal0 by Signal0 /** * Emitted when the [VisibleOnScreenNotifier3D] exits the screen. */ + @GodotApiMember public val screenExited: Signal0 by Signal0 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualInstance3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualInstance3D.kt index 95d875be65..4f450c0595 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualInstance3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualInstance3D.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.AABB @@ -93,6 +94,7 @@ public open class VisualInstance3D : Node3D() { callConstructor(ENGINECLASS_VISUALINSTANCE3D, scriptIndex) } + @GodotApiMember public open fun _getAabb(): AABB { throw NotImplementedError("_get_aabb is not implemented for VisualInstance3D") } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeCustom.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeCustom.kt index 39de8b8cda..ce1529e81f 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeCustom.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeCustom.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.PackedStringArray @@ -46,6 +47,7 @@ public open class VisualShaderNodeCustom : VisualShaderNode() { * Defining this method is **optional**, but recommended. If not overridden, the node will be * named as "Unnamed". */ + @GodotApiMember public open fun _getName(): String { throw NotImplementedError("_get_name is not implemented for VisualShaderNodeCustom") } @@ -55,6 +57,7 @@ public open class VisualShaderNodeCustom : VisualShaderNode() { * Shader Editor's members dialog. * Defining this method is **optional**. */ + @GodotApiMember public open fun _getDescription(): String { throw NotImplementedError("_get_description is not implemented for VisualShaderNodeCustom") } @@ -65,6 +68,7 @@ public open class VisualShaderNodeCustom : VisualShaderNode() { * Defining this method is **optional**. If not overridden, the node will be filed under the * "Addons" category. */ + @GodotApiMember public open fun _getCategory(): String { throw NotImplementedError("_get_category is not implemented for VisualShaderNodeCustom") } @@ -74,6 +78,7 @@ public open class VisualShaderNodeCustom : VisualShaderNode() { * Shader Editor's members dialog. * Defining this method is **optional**. If not overridden, no return icon is shown. */ + @GodotApiMember public open fun _getReturnIconType(): VisualShaderNode.PortType { throw NotImplementedError("_get_return_icon_type is not implemented for VisualShaderNodeCustom") } @@ -82,6 +87,7 @@ public open class VisualShaderNodeCustom : VisualShaderNode() { * Override this method to define the number of input ports of the associated custom node. * Defining this method is **required**. If not overridden, the node has no input ports. */ + @GodotApiMember public open fun _getInputPortCount(): Int { throw NotImplementedError("_get_input_port_count is not implemented for VisualShaderNodeCustom") } @@ -92,6 +98,7 @@ public open class VisualShaderNodeCustom : VisualShaderNode() { * Defining this method is **optional**, but recommended. If not overridden, input ports will * return the [VisualShaderNode.PORT_TYPE_SCALAR] type. */ + @GodotApiMember public open fun _getInputPortType(port: Int): VisualShaderNode.PortType { throw NotImplementedError("_get_input_port_type is not implemented for VisualShaderNodeCustom") } @@ -103,6 +110,7 @@ public open class VisualShaderNodeCustom : VisualShaderNode() { * Defining this method is **optional**, but recommended. If not overridden, input ports are named * as `"in" + str(port)`. */ + @GodotApiMember public open fun _getInputPortName(port: Int): String { throw NotImplementedError("_get_input_port_name is not implemented for VisualShaderNodeCustom") } @@ -113,6 +121,7 @@ public open class VisualShaderNodeCustom : VisualShaderNode() { * Defining this method is **required**. If not overridden, the node has no default values for * their input ports. */ + @GodotApiMember public open fun _getInputPortDefaultValue(port: Int): Any? { throw NotImplementedError("_get_input_port_default_value is not implemented for VisualShaderNodeCustom") } @@ -124,6 +133,7 @@ public open class VisualShaderNodeCustom : VisualShaderNode() { * Defining this method is **optional**. If not overridden, the connection will be created to the * first valid port. */ + @GodotApiMember public open fun _getDefaultInputPort(type: VisualShaderNode.PortType): Int { throw NotImplementedError("_get_default_input_port is not implemented for VisualShaderNodeCustom") } @@ -132,6 +142,7 @@ public open class VisualShaderNodeCustom : VisualShaderNode() { * Override this method to define the number of output ports of the associated custom node. * Defining this method is **required**. If not overridden, the node has no output ports. */ + @GodotApiMember public open fun _getOutputPortCount(): Int { throw NotImplementedError("_get_output_port_count is not implemented for VisualShaderNodeCustom") } @@ -142,6 +153,7 @@ public open class VisualShaderNodeCustom : VisualShaderNode() { * Defining this method is **optional**, but recommended. If not overridden, output ports will * return the [VisualShaderNode.PORT_TYPE_SCALAR] type. */ + @GodotApiMember public open fun _getOutputPortType(port: Int): VisualShaderNode.PortType { throw NotImplementedError("_get_output_port_type is not implemented for VisualShaderNodeCustom") } @@ -153,6 +165,7 @@ public open class VisualShaderNodeCustom : VisualShaderNode() { * Defining this method is **optional**, but recommended. If not overridden, output ports are * named as `"out" + str(port)`. */ + @GodotApiMember public open fun _getOutputPortName(port: Int): String { throw NotImplementedError("_get_output_port_name is not implemented for VisualShaderNodeCustom") } @@ -161,6 +174,7 @@ public open class VisualShaderNodeCustom : VisualShaderNode() { * Override this method to define the number of the properties. * Defining this method is **optional**. */ + @GodotApiMember public open fun _getPropertyCount(): Int { throw NotImplementedError("_get_property_count is not implemented for VisualShaderNodeCustom") } @@ -169,6 +183,7 @@ public open class VisualShaderNodeCustom : VisualShaderNode() { * Override this method to define the names of the property of the associated custom node. * Defining this method is **optional**. */ + @GodotApiMember public open fun _getPropertyName(index: Int): String { throw NotImplementedError("_get_property_name is not implemented for VisualShaderNodeCustom") } @@ -177,6 +192,7 @@ public open class VisualShaderNodeCustom : VisualShaderNode() { * Override this method to define the default index of the property of the associated custom node. * Defining this method is **optional**. */ + @GodotApiMember public open fun _getPropertyDefaultIndex(index: Int): Int { throw NotImplementedError("_get_property_default_index is not implemented for VisualShaderNodeCustom") } @@ -186,6 +202,7 @@ public open class VisualShaderNodeCustom : VisualShaderNode() { * custom node. * Defining this method is **optional**. */ + @GodotApiMember public open fun _getPropertyOptions(index: Int): PackedStringArray { throw NotImplementedError("_get_property_options is not implemented for VisualShaderNodeCustom") } @@ -202,6 +219,7 @@ public open class VisualShaderNodeCustom : VisualShaderNode() { * [type] (see [VisualShader.Type]). * Defining this method is **required**. */ + @GodotApiMember public open fun _getCode( inputVars: VariantArray, outputVars: VariantArray, @@ -221,6 +239,7 @@ public open class VisualShaderNodeCustom : VisualShaderNode() { * [type] (see [VisualShader.Type]). * Defining this method is **optional**. */ + @GodotApiMember public open fun _getFuncCode(mode: Shader.Mode, type: VisualShader.Type): String { throw NotImplementedError("_get_func_code is not implemented for VisualShaderNodeCustom") } @@ -235,6 +254,7 @@ public open class VisualShaderNodeCustom : VisualShaderNode() { * You can customize the generated code based on the shader [mode] (see [Shader.Mode]). * Defining this method is **optional**. */ + @GodotApiMember public open fun _getGlobalCode(mode: Shader.Mode): String { throw NotImplementedError("_get_global_code is not implemented for VisualShaderNodeCustom") } @@ -243,6 +263,7 @@ public open class VisualShaderNodeCustom : VisualShaderNode() { * Override this method to enable high-end mark in the Visual Shader Editor's members dialog. * Defining this method is **optional**. If not overridden, it's `false`. */ + @GodotApiMember public open fun _isHighend(): Boolean { throw NotImplementedError("_is_highend is not implemented for VisualShaderNodeCustom") } @@ -252,6 +273,7 @@ public open class VisualShaderNodeCustom : VisualShaderNode() { * [mode] (see [Shader.Mode]) and/or [type] (see [VisualShader.Type]). * Defining this method is **optional**. If not overridden, it's `true`. */ + @GodotApiMember public open fun _isAvailable(mode: Shader.Mode, type: VisualShader.Type): Boolean { throw NotImplementedError("_is_available is not implemented for VisualShaderNodeCustom") } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeInput.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeInput.kt index b49b66af8d..884ff646fa 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeInput.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeInput.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Signal0 @@ -28,6 +29,7 @@ public open class VisualShaderNodeInput : VisualShaderNode() { /** * Emitted when input is changed via [inputName]. */ + @GodotApiMember public val inputTypeChanged: Signal0 by Signal0 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/WebRTCDataChannelExtension.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/WebRTCDataChannelExtension.kt index 07b1d937f1..4bf0c56afb 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/WebRTCDataChannelExtension.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/WebRTCDataChannelExtension.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import kotlin.Boolean import kotlin.Int @@ -20,64 +21,80 @@ public open class WebRTCDataChannelExtension : WebRTCDataChannel() { callConstructor(ENGINECLASS_WEBRTCDATACHANNELEXTENSION, scriptIndex) } + @GodotApiMember public open fun _getAvailablePacketCount(): Int { throw NotImplementedError("_get_available_packet_count is not implemented for WebRTCDataChannelExtension") } + @GodotApiMember public open fun _getMaxPacketSize(): Int { throw NotImplementedError("_get_max_packet_size is not implemented for WebRTCDataChannelExtension") } + @GodotApiMember public open fun _poll(): Error { throw NotImplementedError("_poll is not implemented for WebRTCDataChannelExtension") } + @GodotApiMember public open fun _close(): Unit { } + @GodotApiMember public open fun _setWriteMode(pWriteMode: WebRTCDataChannel.WriteMode): Unit { } + @GodotApiMember public open fun _getWriteMode(): WebRTCDataChannel.WriteMode { throw NotImplementedError("_get_write_mode is not implemented for WebRTCDataChannelExtension") } + @GodotApiMember public open fun _wasStringPacket(): Boolean { throw NotImplementedError("_was_string_packet is not implemented for WebRTCDataChannelExtension") } + @GodotApiMember public open fun _getReadyState(): WebRTCDataChannel.ChannelState { throw NotImplementedError("_get_ready_state is not implemented for WebRTCDataChannelExtension") } + @GodotApiMember public open fun _getLabel(): String { throw NotImplementedError("_get_label is not implemented for WebRTCDataChannelExtension") } + @GodotApiMember public open fun _isOrdered(): Boolean { throw NotImplementedError("_is_ordered is not implemented for WebRTCDataChannelExtension") } + @GodotApiMember public open fun _getId(): Int { throw NotImplementedError("_get_id is not implemented for WebRTCDataChannelExtension") } + @GodotApiMember public open fun _getMaxPacketLifeTime(): Int { throw NotImplementedError("_get_max_packet_life_time is not implemented for WebRTCDataChannelExtension") } + @GodotApiMember public open fun _getMaxRetransmits(): Int { throw NotImplementedError("_get_max_retransmits is not implemented for WebRTCDataChannelExtension") } + @GodotApiMember public open fun _getProtocol(): String { throw NotImplementedError("_get_protocol is not implemented for WebRTCDataChannelExtension") } + @GodotApiMember public open fun _isNegotiated(): Boolean { throw NotImplementedError("_is_negotiated is not implemented for WebRTCDataChannelExtension") } + @GodotApiMember public open fun _getBufferedAmount(): Int { throw NotImplementedError("_get_buffered_amount is not implemented for WebRTCDataChannelExtension") } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/WebRTCPeerConnection.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/WebRTCPeerConnection.kt index 0c4f70c440..cea79589bb 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/WebRTCPeerConnection.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/WebRTCPeerConnection.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Dictionary @@ -48,12 +49,14 @@ public open class WebRTCPeerConnection : RefCounted() { * an answer). The parameters are meant to be passed to [setLocalDescription] on this object, and * sent to the remote peer over the signaling server. */ + @GodotApiMember public val sessionDescriptionCreated: Signal2 by Signal2 /** * Emitted when a new ICE candidate has been created. The three parameters are meant to be passed * to the remote peer over the signaling server. */ + @GodotApiMember public val iceCandidateCreated: Signal3 by Signal3 /** @@ -62,6 +65,7 @@ public open class WebRTCPeerConnection : RefCounted() { * The object will be an instance of [WebRTCDataChannel]. You must keep a reference of it or it * will be closed automatically. See [createDataChannel]. */ + @GodotApiMember public val dataChannelReceived: Signal1 by Signal1 public override fun new(scriptIndex: Int): Unit { diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/WebRTCPeerConnectionExtension.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/WebRTCPeerConnectionExtension.kt index e8990bc5e2..1d98f0a050 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/WebRTCPeerConnectionExtension.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/WebRTCPeerConnectionExtension.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.core.Dictionary import kotlin.Any @@ -21,39 +22,48 @@ public open class WebRTCPeerConnectionExtension : WebRTCPeerConnection() { callConstructor(ENGINECLASS_WEBRTCPEERCONNECTIONEXTENSION, scriptIndex) } + @GodotApiMember public open fun _getConnectionState(): WebRTCPeerConnection.ConnectionState { throw NotImplementedError("_get_connection_state is not implemented for WebRTCPeerConnectionExtension") } + @GodotApiMember public open fun _getGatheringState(): WebRTCPeerConnection.GatheringState { throw NotImplementedError("_get_gathering_state is not implemented for WebRTCPeerConnectionExtension") } + @GodotApiMember public open fun _getSignalingState(): WebRTCPeerConnection.SignalingState { throw NotImplementedError("_get_signaling_state is not implemented for WebRTCPeerConnectionExtension") } + @GodotApiMember public open fun _initialize(pConfig: Dictionary): Error { throw NotImplementedError("_initialize is not implemented for WebRTCPeerConnectionExtension") } + @GodotApiMember public open fun _createDataChannel(pLabel: String, pConfig: Dictionary): WebRTCDataChannel? { throw NotImplementedError("_create_data_channel is not implemented for WebRTCPeerConnectionExtension") } + @GodotApiMember public open fun _createOffer(): Error { throw NotImplementedError("_create_offer is not implemented for WebRTCPeerConnectionExtension") } + @GodotApiMember public open fun _setRemoteDescription(pType: String, pSdp: String): Error { throw NotImplementedError("_set_remote_description is not implemented for WebRTCPeerConnectionExtension") } + @GodotApiMember public open fun _setLocalDescription(pType: String, pSdp: String): Error { throw NotImplementedError("_set_local_description is not implemented for WebRTCPeerConnectionExtension") } + @GodotApiMember public open fun _addIceCandidate( pSdpMidName: String, pSdpMlineIndex: Int, @@ -62,10 +72,12 @@ public open class WebRTCPeerConnectionExtension : WebRTCPeerConnection() { throw NotImplementedError("_add_ice_candidate is not implemented for WebRTCPeerConnectionExtension") } + @GodotApiMember public open fun _poll(): Error { throw NotImplementedError("_poll is not implemented for WebRTCPeerConnectionExtension") } + @GodotApiMember public open fun _close(): Unit { } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/WebXRInterface.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/WebXRInterface.kt index de6398628a..2bf9d9536b 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/WebXRInterface.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/WebXRInterface.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Signal0 @@ -139,6 +140,7 @@ public open class WebXRInterface internal constructor() : XRInterface() { /** * Emitted by [isSessionSupported] to indicate if the given [sessionMode] is supported or not. */ + @GodotApiMember public val sessionSupported: Signal2 by Signal2 /** @@ -146,6 +148,7 @@ public open class WebXRInterface internal constructor() : XRInterface() { * At this point, it's safe to do `get_viewport().use_xr = true` to instruct Godot to start * rendering to the XR device. */ + @GodotApiMember public val sessionStarted: Signal0 by Signal0 /** @@ -154,6 +157,7 @@ public open class WebXRInterface internal constructor() : XRInterface() { * At this point, you should do `get_viewport().use_xr = false` to instruct Godot to resume * rendering to the screen. */ + @GodotApiMember public val sessionEnded: Signal0 by Signal0 /** @@ -161,6 +165,7 @@ public open class WebXRInterface internal constructor() : XRInterface() { * [message] may optionally contain an error message from WebXR, or an empty string if no message * is available. */ + @GodotApiMember public val sessionFailed: Signal1 by Signal1 /** @@ -168,6 +173,7 @@ public open class WebXRInterface internal constructor() : XRInterface() { * Use [getInputSourceTracker] and [getInputSourceTargetRayMode] to get more information about the * input source. */ + @GodotApiMember public val selectstart: Signal1 by Signal1 /** @@ -175,6 +181,7 @@ public open class WebXRInterface internal constructor() : XRInterface() { * Use [getInputSourceTracker] and [getInputSourceTargetRayMode] to get more information about the * input source. */ + @GodotApiMember public val select: Signal1 by Signal1 /** @@ -182,6 +189,7 @@ public open class WebXRInterface internal constructor() : XRInterface() { * Use [getInputSourceTracker] and [getInputSourceTargetRayMode] to get more information about the * input source. */ + @GodotApiMember public val selectend: Signal1 by Signal1 /** @@ -189,6 +197,7 @@ public open class WebXRInterface internal constructor() : XRInterface() { * Use [getInputSourceTracker] and [getInputSourceTargetRayMode] to get more information about the * input source. */ + @GodotApiMember public val squeezestart: Signal1 by Signal1 /** @@ -196,6 +205,7 @@ public open class WebXRInterface internal constructor() : XRInterface() { * Use [getInputSourceTracker] and [getInputSourceTargetRayMode] to get more information about the * input source. */ + @GodotApiMember public val squeeze: Signal1 by Signal1 /** @@ -203,11 +213,13 @@ public open class WebXRInterface internal constructor() : XRInterface() { * Use [getInputSourceTracker] and [getInputSourceTargetRayMode] to get more information about the * input source. */ + @GodotApiMember public val squeezeend: Signal1 by Signal1 /** * Emitted when [visibilityState] has changed. */ + @GodotApiMember public val visibilityStateChanged: Signal0 by Signal0 /** @@ -218,11 +230,13 @@ public open class WebXRInterface internal constructor() : XRInterface() { * See [url=https://developer.mozilla.org/en-US/docs/Web/API/XRReferenceSpace/reset_event]WebXR's * XRReferenceSpace reset event[/url] for more information. */ + @GodotApiMember public val referenceSpaceReset: Signal0 by Signal0 /** * Emitted after the display's refresh rate has changed. */ + @GodotApiMember public val displayRefreshRateChanged: Signal0 by Signal0 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Window.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Window.kt index 4ed3d810f1..889e4667f5 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Window.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Window.kt @@ -8,6 +8,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Color @@ -58,6 +59,7 @@ public open class Window : Viewport() { * Emitted when the [Window] is currently focused and receives any input, passing the received * event as an argument. The event's position, if present, is in the embedder's coordinate system. */ + @GodotApiMember public val windowInput: Signal1 by Signal1 /** @@ -74,6 +76,7 @@ public open class Window : Viewport() { * print(files) * [/codeblock] */ + @GodotApiMember public val filesDropped: Signal1 by Signal1 /** @@ -81,6 +84,7 @@ public open class Window : Viewport() { * other [Control]s or windows, provided its [Viewport.guiDisableInput] is `false` and regardless if * it's currently focused or not. */ + @GodotApiMember public val mouseEntered: Signal0 by Signal0 /** @@ -88,16 +92,19 @@ public open class Window : Viewport() { * other [Control]s or windows, provided its [Viewport.guiDisableInput] is `false` and regardless if * it's currently focused or not. */ + @GodotApiMember public val mouseExited: Signal0 by Signal0 /** * Emitted when the [Window] gains focus. */ + @GodotApiMember public val focusEntered: Signal0 by Signal0 /** * Emitted when the [Window] loses its focus. */ + @GodotApiMember public val focusExited: Signal0 by Signal0 /** @@ -105,27 +112,32 @@ public open class Window : Viewport() { * clicks outside the window. * This signal can be used to handle window closing, e.g. by connecting it to [hide]. */ + @GodotApiMember public val closeRequested: Signal0 by Signal0 /** * Emitted when a go back request is sent (e.g. pressing the "Back" button on Android), right * after [Node.NOTIFICATION_WM_GO_BACK_REQUEST]. */ + @GodotApiMember public val goBackRequested: Signal0 by Signal0 /** * Emitted when [Window] is made visible or disappears. */ + @GodotApiMember public val visibilityChanged: Signal0 by Signal0 /** * Emitted right after [popup] call, before the [Window] appears or does anything. */ + @GodotApiMember public val aboutToPopup: Signal0 by Signal0 /** * Emitted when the [NOTIFICATION_THEME_CHANGED] notification is sent. */ + @GodotApiMember public val themeChanged: Signal0 by Signal0 /** @@ -133,12 +145,14 @@ public open class Window : Viewport() { * from a Retina display to a lower resolution one). * **Note:** Only implemented on macOS. */ + @GodotApiMember public val dpiChanged: Signal0 by Signal0 /** * Emitted when window title bar decorations are changed, e.g. macOS window enter/exit full screen * mode, or extend-to-title flag is changed. */ + @GodotApiMember public val titlebarChanged: Signal0 by Signal0 /** @@ -712,6 +726,7 @@ public open class Window : Viewport() { * Virtual method to be implemented by the user. Overrides the value returned by * [getContentsMinimumSize]. */ + @GodotApiMember public open fun _getContentsMinimumSize(): Vector2 { throw NotImplementedError("_get_contents_minimum_size is not implemented for Window") } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/XRController3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/XRController3D.kt index 3fff21a789..5ca29e8dd1 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/XRController3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/XRController3D.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Signal1 @@ -47,26 +48,31 @@ public open class XRController3D : XRNode3D() { /** * Emitted when a button on this controller is pressed. */ + @GodotApiMember public val buttonPressed: Signal1 by Signal1 /** * Emitted when a button on this controller is released. */ + @GodotApiMember public val buttonReleased: Signal1 by Signal1 /** * Emitted when a trigger or similar input on this controller changes value. */ + @GodotApiMember public val inputFloatChanged: Signal2 by Signal2 /** * Emitted when a thumbstick or thumbpad on this controller is moved. */ + @GodotApiMember public val inputVector2Changed: Signal2 by Signal2 /** * Emitted when the interaction profile on this controller is changed. */ + @GodotApiMember public val profileChanged: Signal1 by Signal1 public override fun new(scriptIndex: Int): Unit { diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/XRInterface.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/XRInterface.kt index 144991ac90..8ac4c6fd90 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/XRInterface.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/XRInterface.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Dictionary @@ -54,6 +55,7 @@ public open class XRInterface internal constructor() : RefCounted() { * boundary or entering a new play area, the player changing the play area mode, the world scale * changing or the player resetting their headset orientation. */ + @GodotApiMember public val playAreaChanged: Signal1 by Signal1 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/XRInterfaceExtension.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/XRInterfaceExtension.kt index 56d9101cea..50d406f454 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/XRInterfaceExtension.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/XRInterfaceExtension.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Dictionary @@ -50,6 +51,7 @@ public open class XRInterfaceExtension : XRInterface() { /** * Returns the name of this interface. */ + @GodotApiMember public open fun _getName(): StringName { throw NotImplementedError("_get_name is not implemented for XRInterfaceExtension") } @@ -57,6 +59,7 @@ public open class XRInterfaceExtension : XRInterface() { /** * Returns the capabilities of this interface. */ + @GodotApiMember public open fun _getCapabilities(): Long { throw NotImplementedError("_get_capabilities is not implemented for XRInterfaceExtension") } @@ -64,6 +67,7 @@ public open class XRInterfaceExtension : XRInterface() { /** * Returns `true` if this interface has been initialized. */ + @GodotApiMember public open fun _isInitialized(): Boolean { throw NotImplementedError("_is_initialized is not implemented for XRInterfaceExtension") } @@ -71,6 +75,7 @@ public open class XRInterfaceExtension : XRInterface() { /** * Initializes the interface, returns `true` on success. */ + @GodotApiMember public open fun _initialize(): Boolean { throw NotImplementedError("_initialize is not implemented for XRInterfaceExtension") } @@ -78,12 +83,14 @@ public open class XRInterfaceExtension : XRInterface() { /** * Uninitialize the interface. */ + @GodotApiMember public open fun _uninitialize(): Unit { } /** * Returns a [Dictionary] with system information related to this interface. */ + @GodotApiMember public open fun _getSystemInfo(): Dictionary { throw NotImplementedError("_get_system_info is not implemented for XRInterfaceExtension") } @@ -91,6 +98,7 @@ public open class XRInterfaceExtension : XRInterface() { /** * Returns `true` if this interface supports this play area mode. */ + @GodotApiMember public open fun _supportsPlayAreaMode(mode: XRInterface.PlayAreaMode): Boolean { throw NotImplementedError("_supports_play_area_mode is not implemented for XRInterfaceExtension") } @@ -98,6 +106,7 @@ public open class XRInterfaceExtension : XRInterface() { /** * Returns the play area mode that sets up our play area. */ + @GodotApiMember public open fun _getPlayAreaMode(): XRInterface.PlayAreaMode { throw NotImplementedError("_get_play_area_mode is not implemented for XRInterfaceExtension") } @@ -105,6 +114,7 @@ public open class XRInterfaceExtension : XRInterface() { /** * Set the play area mode for this interface. */ + @GodotApiMember public open fun _setPlayAreaMode(mode: XRInterface.PlayAreaMode): Boolean { throw NotImplementedError("_set_play_area_mode is not implemented for XRInterfaceExtension") } @@ -112,6 +122,7 @@ public open class XRInterfaceExtension : XRInterface() { /** * Returns a [PackedVector3Array] that represents the play areas boundaries (if applicable). */ + @GodotApiMember public open fun _getPlayArea(): PackedVector3Array { throw NotImplementedError("_get_play_area is not implemented for XRInterfaceExtension") } @@ -120,6 +131,7 @@ public open class XRInterfaceExtension : XRInterface() { * Returns the size of our render target for this interface, this overrides the size of the * [Viewport] marked as the xr viewport. */ + @GodotApiMember public open fun _getRenderTargetSize(): Vector2 { throw NotImplementedError("_get_render_target_size is not implemented for XRInterfaceExtension") } @@ -127,6 +139,7 @@ public open class XRInterfaceExtension : XRInterface() { /** * Returns the number of views this interface requires, 1 for mono, 2 for stereoscopic. */ + @GodotApiMember public open fun _getViewCount(): Long { throw NotImplementedError("_get_view_count is not implemented for XRInterfaceExtension") } @@ -134,6 +147,7 @@ public open class XRInterfaceExtension : XRInterface() { /** * Returns the [Transform3D] that positions the [XRCamera3D] in the world. */ + @GodotApiMember public open fun _getCameraTransform(): Transform3D { throw NotImplementedError("_get_camera_transform is not implemented for XRInterfaceExtension") } @@ -141,6 +155,7 @@ public open class XRInterfaceExtension : XRInterface() { /** * Returns a [Transform3D] for a given view. */ + @GodotApiMember public open fun _getTransformForView(view: Long, camTransform: Transform3D): Transform3D { throw NotImplementedError("_get_transform_for_view is not implemented for XRInterfaceExtension") } @@ -148,6 +163,7 @@ public open class XRInterfaceExtension : XRInterface() { /** * Returns the projection matrix for the given view as a [PackedFloat64Array]. */ + @GodotApiMember public open fun _getProjectionForView( view: Long, aspect: Double, @@ -157,6 +173,7 @@ public open class XRInterfaceExtension : XRInterface() { throw NotImplementedError("_get_projection_for_view is not implemented for XRInterfaceExtension") } + @GodotApiMember public open fun _getVrsTexture(): RID { throw NotImplementedError("_get_vrs_texture is not implemented for XRInterfaceExtension") } @@ -165,6 +182,7 @@ public open class XRInterfaceExtension : XRInterface() { * Called if this [XRInterfaceExtension] is active before our physics and game process is called. * Most XR interfaces will update its [XRPositionalTracker]s at this point in time. */ + @GodotApiMember public open fun _process(): Unit { } @@ -172,6 +190,7 @@ public open class XRInterfaceExtension : XRInterface() { * Called if this [XRInterfaceExtension] is active before rendering starts. Most XR interfaces * will sync tracking at this point in time. */ + @GodotApiMember public open fun _preRender(): Unit { } @@ -180,6 +199,7 @@ public open class XRInterfaceExtension : XRInterface() { * for every active XR [Viewport], returns `true` if that viewport should be rendered. An XR * interface may return `false` if the user has taken off their headset and we can pause rendering. */ + @GodotApiMember public open fun _preDrawViewport(renderTarget: RID): Boolean { throw NotImplementedError("_pre_draw_viewport is not implemented for XRInterfaceExtension") } @@ -187,12 +207,14 @@ public open class XRInterfaceExtension : XRInterface() { /** * Called after the XR [Viewport] draw logic has completed. */ + @GodotApiMember public open fun _postDrawViewport(renderTarget: RID, screenRect: Rect2): Unit { } /** * Called if interface is active and queues have been submitted. */ + @GodotApiMember public open fun _endFrame(): Unit { } @@ -200,6 +222,7 @@ public open class XRInterfaceExtension : XRInterface() { * Returns a [PackedStringArray] with tracker names configured by this interface. Note that user * configuration can override this list. */ + @GodotApiMember public open fun _getSuggestedTrackerNames(): PackedStringArray { throw NotImplementedError("_get_suggested_tracker_names is not implemented for XRInterfaceExtension") } @@ -208,6 +231,7 @@ public open class XRInterfaceExtension : XRInterface() { * Returns a [PackedStringArray] with pose names configured by this interface. Note that user * configuration can override this list. */ + @GodotApiMember public open fun _getSuggestedPoseNames(trackerName: StringName): PackedStringArray { throw NotImplementedError("_get_suggested_pose_names is not implemented for XRInterfaceExtension") } @@ -215,6 +239,7 @@ public open class XRInterfaceExtension : XRInterface() { /** * Returns a [XRInterface.TrackingStatus] specifying the current status of our tracking. */ + @GodotApiMember public open fun _getTrackingStatus(): XRInterface.TrackingStatus { throw NotImplementedError("_get_tracking_status is not implemented for XRInterfaceExtension") } @@ -222,6 +247,7 @@ public open class XRInterfaceExtension : XRInterface() { /** * Triggers a haptic pulse to be emitted on the specified tracker. */ + @GodotApiMember public open fun _triggerHapticPulse( actionName: String, trackerName: StringName, @@ -235,6 +261,7 @@ public open class XRInterfaceExtension : XRInterface() { /** * Return `true` if anchor detection is enabled for this interface. */ + @GodotApiMember public open fun _getAnchorDetectionIsEnabled(): Boolean { throw NotImplementedError("_get_anchor_detection_is_enabled is not implemented for XRInterfaceExtension") } @@ -242,6 +269,7 @@ public open class XRInterfaceExtension : XRInterface() { /** * Enables anchor detection on this interface if supported. */ + @GodotApiMember public open fun _setAnchorDetectionIsEnabled(enabled: Boolean): Unit { } @@ -249,6 +277,7 @@ public open class XRInterfaceExtension : XRInterface() { * Returns the camera feed ID for the [CameraFeed] registered with the [CameraServer] that should * be presented as the background on an AR capable device (if applicable). */ + @GodotApiMember public open fun _getCameraFeedId(): Int { throw NotImplementedError("_get_camera_feed_id is not implemented for XRInterfaceExtension") } @@ -256,6 +285,7 @@ public open class XRInterfaceExtension : XRInterface() { /** * Return color texture into which to render (if applicable). */ + @GodotApiMember public open fun _getColorTexture(): RID { throw NotImplementedError("_get_color_texture is not implemented for XRInterfaceExtension") } @@ -263,6 +293,7 @@ public open class XRInterfaceExtension : XRInterface() { /** * Return depth texture into which to render (if applicable). */ + @GodotApiMember public open fun _getDepthTexture(): RID { throw NotImplementedError("_get_depth_texture is not implemented for XRInterfaceExtension") } @@ -270,6 +301,7 @@ public open class XRInterfaceExtension : XRInterface() { /** * Return velocity texture into which to render (if applicable). */ + @GodotApiMember public open fun _getVelocityTexture(): RID { throw NotImplementedError("_get_velocity_texture is not implemented for XRInterfaceExtension") } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/XRNode3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/XRNode3D.kt index e60ac9f244..87fa5171fa 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/XRNode3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/XRNode3D.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Signal1 @@ -37,6 +38,7 @@ public open class XRNode3D : Node3D() { * Emitted when the [tracker] starts or stops receiving updated tracking data for the [pose] being * tracked. The [tracking] argument indicates whether the tracker is getting updated tracking data. */ + @GodotApiMember public val trackingChanged: Signal1 by Signal1 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/XRPositionalTracker.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/XRPositionalTracker.kt index 7b21d1459f..c765f2b56f 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/XRPositionalTracker.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/XRPositionalTracker.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Signal1 @@ -49,37 +50,44 @@ public open class XRPositionalTracker : XRTracker() { /** * Emitted when the state of a pose tracked by this tracker changes. */ + @GodotApiMember public val poseChanged: Signal1 by Signal1 /** * Emitted when a pose tracked by this tracker stops getting updated tracking data. */ + @GodotApiMember public val poseLostTracking: Signal1 by Signal1 /** * Emitted when a button on this tracker is pressed. Note that many XR runtimes allow other inputs * to be mapped to buttons. */ + @GodotApiMember public val buttonPressed: Signal1 by Signal1 /** * Emitted when a button on this tracker is released. */ + @GodotApiMember public val buttonReleased: Signal1 by Signal1 /** * Emitted when a trigger or similar input on this tracker changes value. */ + @GodotApiMember public val inputFloatChanged: Signal2 by Signal2 /** * Emitted when a thumbstick or thumbpad on this tracker moves. */ + @GodotApiMember public val inputVector2Changed: Signal2 by Signal2 /** * Emitted when the profile of our tracker changes. */ + @GodotApiMember public val profileChanged: Signal1 by Signal1 /** diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/XRServer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/XRServer.kt index 441e795884..24fca359e0 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/XRServer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/XRServer.kt @@ -6,6 +6,7 @@ package godot +import godot.`annotation`.GodotApiMember import godot.`annotation`.GodotBaseType import godot.common.interop.VoidPtr import godot.core.Dictionary @@ -46,18 +47,21 @@ public object XRServer : Object() { /** * Emitted when the reference frame transform changes. */ + @GodotApiMember @JvmStatic public val referenceFrameChanged: Signal0 by Signal0 /** * Emitted when a new interface has been added. */ + @GodotApiMember @JvmStatic public val interfaceAdded: Signal1 by Signal1 /** * Emitted when an interface is removed. */ + @GodotApiMember @JvmStatic public val interfaceRemoved: Signal1 by Signal1 @@ -66,6 +70,7 @@ public object XRServer : Object() { * you're using [XRAnchor3D]s for an AR solution, it is important to react to this signal to add the * appropriate [XRController3D] or [XRAnchor3D] nodes related to this new tracker. */ + @GodotApiMember @JvmStatic public val trackerAdded: Signal2 by Signal2 @@ -73,6 +78,7 @@ public object XRServer : Object() { * Emitted when an existing tracker has been updated. This can happen if the user switches * controllers. */ + @GodotApiMember @JvmStatic public val trackerUpdated: Signal2 by Signal2 @@ -82,6 +88,7 @@ public object XRServer : Object() { * active again when a new tracker becomes available (i.e. a new controller is switched on that takes * the place of the previous one). */ + @GodotApiMember @JvmStatic public val trackerRemoved: Signal2 by Signal2 diff --git a/kt/tools-common/src/main/kotlin/godot/tools/common/constants/Classes.kt b/kt/tools-common/src/main/kotlin/godot/tools/common/constants/Classes.kt index 2a49195ade..4a267666d1 100644 --- a/kt/tools-common/src/main/kotlin/godot/tools/common/constants/Classes.kt +++ b/kt/tools-common/src/main/kotlin/godot/tools/common/constants/Classes.kt @@ -43,6 +43,7 @@ object GodotKotlinJvmTypes { object Annotations { const val godotBaseType = "GodotBaseType" + const val godotApiMemeber = "GodotApiMember" const val coreTypeHelper = "CoreTypeHelper" const val coreTypeLocalCopy = "CoreTypeLocalCopy" @@ -242,6 +243,7 @@ val VARIANT_CASTER_FLOAT = ClassName(variantCasterPackage, "FLOAT") val VARIANT_CASTER_ANY = ClassName(variantCasterPackage, "ANY") val GODOT_BASE_TYPE = ClassName(godotAnnotationPackage, GodotKotlinJvmTypes.Annotations.godotBaseType) +val GODOT_API_MEMBER = ClassName(godotAnnotationPackage, GodotKotlinJvmTypes.Annotations.godotApiMemeber) val CORE_TYPE_HELPER = ClassName(godotAnnotationPackage, GodotKotlinJvmTypes.Annotations.coreTypeHelper) val CORE_TYPE_LOCAL_COPY = ClassName(godotAnnotationPackage, GodotKotlinJvmTypes.Annotations.coreTypeLocalCopy) From 0accfcceaf89a6605d6745f987f027a764d731cf Mon Sep 17 00:00:00 2001 From: chippmann Date: Sat, 12 Oct 2024 21:38:51 +0200 Subject: [PATCH 03/18] Implement new annotation set and update registration code --- .../godot/tests/library/flattened/Simple.kt | 11 +- .../godot/tests/library/fqname/Simple.kt | 11 +- .../godot/tests/library/fqname/SimpleChild.kt | 4 +- .../tests/library/hierarchical/Simple.kt | 11 +- .../tests/.run/Debug EntryGenerator.run.xml | 28 +- .../CopyModificationCheckTestClass.kt | 10 +- .../otherSourceDir/CoreTypePropertyChecks.kt | 9 +- .../otherSourceDir/ScriptInOtherSourceDir.kt | 8 +- .../main/java/godot/tests/JavaTestClass.java | 32 +-- .../godot/tests/CoreTypesIdentityTest.kt | 60 +++-- .../main/kotlin/godot/tests/FuncRefTest.kt | 35 ++- .../src/main/kotlin/godot/tests/Invocation.kt | 246 +++++++----------- .../kotlin/godot/tests/LambdaCallableTest.kt | 28 +- .../godot/tests/MultiArgsConstructorTest.kt | 29 +-- .../tests/args/ConstructorArgSizeTest.kt | 27 +- .../godot/tests/args/FunctionArgSizeTest.kt | 42 ++- .../kotlin/godot/tests/binding/BindingA.kt | 4 +- .../kotlin/godot/tests/binding/BindingB.kt | 4 +- .../kotlin/godot/tests/binding/BindingTest.kt | 8 +- .../tests/callable/CallableMethodBindTest.kt | 19 +- .../ConstructorRegistrationTest.kt | 8 +- .../kotlin/godot/tests/coretypes/BasisTest.kt | 16 +- .../godot/tests/coretypes/StringTest.kt | 27 +- .../godot/tests/coretypes/Vector3Test.kt | 10 +- .../godot/tests/coroutine/CoroutineTest.kt | 31 +-- .../godot/tests/exception/ExceptionTest.kt | 8 +- .../FreeformRegistrationFileTestClass.kt | 8 +- .../AbstractClassInheritanceChild.kt | 13 +- .../AbstractClassInheritanceEmptyChild.kt | 4 +- .../AbstractClassInheritanceParent.kt | 17 +- .../inheritance/ClassInheritanceChild.kt | 15 +- .../inheritance/ClassInheritanceParent.kt | 25 +- .../godot/tests/instance/NodeInstance.kt | 4 +- .../godot/tests/instance/ObjectInstance.kt | 4 +- .../tests/instance/RefCountedInstance.kt | 4 +- .../tests/packedarray/PackedArrayTest.kt | 26 +- .../tests/reflection/BaseReflectionTest.kt | 10 +- .../tests/reflection/GH571_ReflectionTest.kt | 8 +- .../TypedVariantArrayRegistration.kt | 8 +- .../kotlin/godot/tests/rpctests/RpcTests.kt | 12 +- .../kotlin/godot/tests/signal/SignalTest.kt | 26 +- .../godot/tests/static/CallStaticTest.kt | 9 +- .../godot/tests/subpackage/OtherScript.kt | 13 +- .../checks/LateinitPropertyCheck.kt | 3 - .../checks/NullablePropertyCheck.kt | 2 - .../checks/PropertyMutablilityCheck.kt | 2 - .../checks/PropertyTypeCheck.kt | 4 - .../ConstructorRegistrationGenerator.kt | 5 +- .../model/GodotMemberAnnotation.kt | 3 + ...Annotation.kt => GodotScriptAnnotation.kt} | 2 +- .../model/RegisterConstructorAnnotation.kt | 3 - .../model/RegisterFunctionAnnotation.kt | 3 - .../model/RegisterPropertyAnnotation.kt | 3 - .../model/RegisterSignalAnnotation.kt | 3 - .../processor/GodotKotlinSymbolProcessor.kt | 2 +- .../processor/ext/ksAnnotatedExt.kt | 33 +++ .../processor/ext/ksAnnotationExt.kt | 21 +- .../processor/ext/ksClassDeclarationExt.kt | 50 +++- .../processor/ext/ksDeclarationExt.kt | 20 +- .../processor/ext/ksFunctionDeclarationExt.kt | 29 +-- .../processor/ext/ksTypeReferenceExt.kt | 8 +- .../visitor/RegistrationAnnotationVisitor.kt | 21 +- .../main/kotlin/godot/annotation/Export.kt | 1 + .../kotlin/godot/annotation/GodotApiMember.kt | 2 +- .../kotlin/godot/annotation/GodotMember.kt | 17 ++ .../kotlin/godot/annotation/GodotScript.kt | 10 + .../kotlin/godot/annotation/RegisterClass.kt | 10 - .../godot/annotation/RegisterConstructor.kt | 8 - .../godot/annotation/RegisterFunction.kt | 12 - .../godot/annotation/RegisterProperty.kt | 10 - .../kotlin/godot/annotation/RegisterSignal.kt | 17 -- .../src/main/kotlin/godot/annotation/Rpc.kt | 1 + .../src/main/kotlin/godot/annotation/Tool.kt | 2 +- .../annotation/propertyHintAnnotations.kt | 36 +++ .../src/main/kotlin/godot/core/KtObject.kt | 2 +- 75 files changed, 601 insertions(+), 676 deletions(-) create mode 100644 kt/entry-generation/godot-entry-generator/src/main/kotlin/godot/entrygenerator/model/GodotMemberAnnotation.kt rename kt/entry-generation/godot-entry-generator/src/main/kotlin/godot/entrygenerator/model/{RegisterClassAnnotation.kt => GodotScriptAnnotation.kt} (79%) delete mode 100644 kt/entry-generation/godot-entry-generator/src/main/kotlin/godot/entrygenerator/model/RegisterConstructorAnnotation.kt delete mode 100644 kt/entry-generation/godot-entry-generator/src/main/kotlin/godot/entrygenerator/model/RegisterFunctionAnnotation.kt delete mode 100644 kt/entry-generation/godot-entry-generator/src/main/kotlin/godot/entrygenerator/model/RegisterPropertyAnnotation.kt delete mode 100644 kt/entry-generation/godot-entry-generator/src/main/kotlin/godot/entrygenerator/model/RegisterSignalAnnotation.kt create mode 100644 kt/entry-generation/godot-kotlin-symbol-processor/src/main/kotlin/godot/annotation/processor/ext/ksAnnotatedExt.kt create mode 100644 kt/godot-library/src/main/kotlin/godot/annotation/GodotMember.kt create mode 100644 kt/godot-library/src/main/kotlin/godot/annotation/GodotScript.kt delete mode 100644 kt/godot-library/src/main/kotlin/godot/annotation/RegisterClass.kt delete mode 100644 kt/godot-library/src/main/kotlin/godot/annotation/RegisterConstructor.kt delete mode 100644 kt/godot-library/src/main/kotlin/godot/annotation/RegisterFunction.kt delete mode 100644 kt/godot-library/src/main/kotlin/godot/annotation/RegisterProperty.kt delete mode 100644 kt/godot-library/src/main/kotlin/godot/annotation/RegisterSignal.kt diff --git a/harness/flattened-library-tests/src/main/kotlin/godot/tests/library/flattened/Simple.kt b/harness/flattened-library-tests/src/main/kotlin/godot/tests/library/flattened/Simple.kt index 653d1f3939..f4868950b4 100644 --- a/harness/flattened-library-tests/src/main/kotlin/godot/tests/library/flattened/Simple.kt +++ b/harness/flattened-library-tests/src/main/kotlin/godot/tests/library/flattened/Simple.kt @@ -2,16 +2,15 @@ package godot.tests.library.flattened import godot.Node3D import godot.annotation.Export -import godot.annotation.RegisterClass -import godot.annotation.RegisterFunction -import godot.annotation.RegisterProperty +import godot.annotation.GodotMember +import godot.annotation.GodotScript -@RegisterClass +@GodotScript class Simple: Node3D() { @Export - @RegisterProperty var testProperty = "Hello from flattened-library-test!" - @RegisterFunction + + @GodotMember fun provideGreeting(): String = testProperty } diff --git a/harness/fqname-library-tests/src/main/kotlin/godot/tests/library/fqname/Simple.kt b/harness/fqname-library-tests/src/main/kotlin/godot/tests/library/fqname/Simple.kt index 60402862b1..10240ffffa 100644 --- a/harness/fqname-library-tests/src/main/kotlin/godot/tests/library/fqname/Simple.kt +++ b/harness/fqname-library-tests/src/main/kotlin/godot/tests/library/fqname/Simple.kt @@ -2,16 +2,15 @@ package godot.tests.library.fqname import godot.Node3D import godot.annotation.Export -import godot.annotation.RegisterClass -import godot.annotation.RegisterFunction -import godot.annotation.RegisterProperty +import godot.annotation.GodotMember +import godot.annotation.GodotScript -@RegisterClass +@GodotScript open class Simple: Node3D() { @Export - @RegisterProperty var testProperty = "Hello from fqname-library-test!" - @RegisterFunction + + @GodotMember fun provideGreeting(): String = testProperty } diff --git a/harness/fqname-library-tests/src/main/kotlin/godot/tests/library/fqname/SimpleChild.kt b/harness/fqname-library-tests/src/main/kotlin/godot/tests/library/fqname/SimpleChild.kt index 34242e4913..2ed4aab047 100644 --- a/harness/fqname-library-tests/src/main/kotlin/godot/tests/library/fqname/SimpleChild.kt +++ b/harness/fqname-library-tests/src/main/kotlin/godot/tests/library/fqname/SimpleChild.kt @@ -1,7 +1,7 @@ package godot.tests.library.fqname -import godot.annotation.RegisterClass +import godot.annotation.GodotScript -@RegisterClass +@GodotScript class SimpleChild: Simple() {} diff --git a/harness/hierarchical-library-tests/src/main/kotlin/godot/tests/library/hierarchical/Simple.kt b/harness/hierarchical-library-tests/src/main/kotlin/godot/tests/library/hierarchical/Simple.kt index 1bf6462241..2f9760e965 100644 --- a/harness/hierarchical-library-tests/src/main/kotlin/godot/tests/library/hierarchical/Simple.kt +++ b/harness/hierarchical-library-tests/src/main/kotlin/godot/tests/library/hierarchical/Simple.kt @@ -2,16 +2,15 @@ package godot.tests.library.hierarchical import godot.Node3D import godot.annotation.Export -import godot.annotation.RegisterClass -import godot.annotation.RegisterFunction -import godot.annotation.RegisterProperty +import godot.annotation.GodotMember +import godot.annotation.GodotScript -@RegisterClass +@GodotScript class Simple: Node3D() { @Export - @RegisterProperty var testProperty = "Hello from hierarchical-library-test!" - @RegisterFunction + + @GodotMember fun provideGreeting(): String = testProperty } diff --git a/harness/tests/.run/Debug EntryGenerator.run.xml b/harness/tests/.run/Debug EntryGenerator.run.xml index 71032a1d75..9aa97ccf15 100644 --- a/harness/tests/.run/Debug EntryGenerator.run.xml +++ b/harness/tests/.run/Debug EntryGenerator.run.xml @@ -1,15 +1,15 @@ - - - + + + \ No newline at end of file diff --git a/harness/tests/otherSourceDir/CopyModificationCheckTestClass.kt b/harness/tests/otherSourceDir/CopyModificationCheckTestClass.kt index f1594721a5..70a885c4d3 100644 --- a/harness/tests/otherSourceDir/CopyModificationCheckTestClass.kt +++ b/harness/tests/otherSourceDir/CopyModificationCheckTestClass.kt @@ -1,14 +1,14 @@ import godot.Node3D import godot.annotation.Export -import godot.annotation.RegisterClass -import godot.annotation.RegisterProperty -import godot.core.* +import godot.annotation.GodotScript +import godot.core.Basis +import godot.core.Transform3D +import godot.core.Vector3 -@RegisterClass +@GodotScript class CopyModificationCheckTestClass: Node3D() { @Export - @RegisterProperty lateinit var node3D: Node3D class Blubb { diff --git a/harness/tests/otherSourceDir/CoreTypePropertyChecks.kt b/harness/tests/otherSourceDir/CoreTypePropertyChecks.kt index 621ba9992f..f7b0ee0609 100644 --- a/harness/tests/otherSourceDir/CoreTypePropertyChecks.kt +++ b/harness/tests/otherSourceDir/CoreTypePropertyChecks.kt @@ -1,10 +1,10 @@ import godot.Node import godot.annotation.Export -import godot.annotation.RegisterClass -import godot.annotation.RegisterProperty +import godot.annotation.GodotMember +import godot.annotation.GodotScript import godot.core.Vector3 -@RegisterClass +@GodotScript class CoreTypePropertyChecks: Node() { // not allowed cases are commented out so that the compilation runs. Otherwise, our compiler checks trigger a build failure // to test out these checks, uncomment the cases @@ -16,7 +16,6 @@ class CoreTypePropertyChecks: Node() { // allowed @Export - @RegisterProperty var exportedNormalCoreType: Vector3 = Vector3.ZERO // not allowed @@ -24,6 +23,6 @@ class CoreTypePropertyChecks: Node() { // lateinit var lateinitCoreType: Vector3 // allowed - @RegisterProperty + @GodotMember var normalCoreType: Vector3 = Vector3.ZERO } diff --git a/harness/tests/otherSourceDir/ScriptInOtherSourceDir.kt b/harness/tests/otherSourceDir/ScriptInOtherSourceDir.kt index 6a49ac654a..ce8bc317e1 100644 --- a/harness/tests/otherSourceDir/ScriptInOtherSourceDir.kt +++ b/harness/tests/otherSourceDir/ScriptInOtherSourceDir.kt @@ -1,10 +1,10 @@ import godot.Node -import godot.annotation.RegisterClass -import godot.annotation.RegisterFunction +import godot.annotation.GodotMember +import godot.annotation.GodotScript -@RegisterClass +@GodotScript class ScriptInOtherSourceDir: Node() { - @RegisterFunction + @GodotMember fun greeting() = "HelloWorld" } diff --git a/harness/tests/src/main/java/godot/tests/JavaTestClass.java b/harness/tests/src/main/java/godot/tests/JavaTestClass.java index 144b9c5f63..74a9070f32 100644 --- a/harness/tests/src/main/java/godot/tests/JavaTestClass.java +++ b/harness/tests/src/main/java/godot/tests/JavaTestClass.java @@ -3,16 +3,17 @@ import godot.Button; import godot.Node; import godot.RenderingServer; -import godot.annotation.*; +import godot.annotation.EnumTypeHint; +import godot.annotation.Export; +import godot.annotation.GodotMember; +import godot.annotation.GodotScript; import godot.core.*; import org.jetbrains.annotations.NotNull; -@RegisterClass +@GodotScript public class JavaTestClass extends Node { - @RegisterSignal public Signal0 testSignal = Signal0.create(this, "test_signal"); - @RegisterSignal public Signal2 testSignal2 = Signal2.create(this, "test_signal_2", "param1", "param2"); // The following should NOT work as we cannot extract parameter names. The compiler checks should catch that and throw a build error @@ -20,54 +21,45 @@ public class JavaTestClass extends Node { // public Signal testSignal3 = new Signal2<>(this, "name"); @Export - @RegisterProperty @EnumTypeHint public JavaEnum javaEnum = JavaEnum.JAVA_ENUM_1; @Export - @RegisterProperty public int exportedInt = 1; @Export - @RegisterProperty public long exportedLong = 1L; @Export - @RegisterProperty public float exportedFloat = 1f; @Export - @RegisterProperty public double exportedDouble = 1.0; @Export - @RegisterProperty public boolean exportedBoolean = true; @Export - @RegisterProperty public String exportedString = "blubb"; @Export - @RegisterProperty public byte exportedByte = 1; @Export - @RegisterProperty public Button exportedButton; - @RegisterFunction + @GodotMember public String greeting() { return "Hello from java"; } - @RegisterProperty + @GodotMember public boolean signalEmitted = false; - @RegisterProperty + @GodotMember public VariantArray variantArray = new VariantArray<>(Integer.class); - @RegisterProperty + @GodotMember public Dictionary dictionary = new Dictionary<>(Float.class, String.class); public LambdaCallable lambdaCallable = LambdaCallable0.create( @@ -80,7 +72,7 @@ public String greeting() { public NativeCallable methodCallable = Callable.create(this, StringNames.asStringName("DummyName")); - @RegisterFunction + @GodotMember @Override public void _ready() { // Check if Singletons have the correct syntax, without Single.INSTANCE @@ -89,7 +81,7 @@ public void _ready() { RenderingServer.getDefaultClearColor(); } - @RegisterFunction + @GodotMember public void connectAndTriggerSignal() { connect( StringNames.asStringName("test_signal"), @@ -110,7 +102,7 @@ public GodotNotification _notification() { ); } - @RegisterFunction + @GodotMember public void signalCallback() { signalEmitted = true; } diff --git a/harness/tests/src/main/kotlin/godot/tests/CoreTypesIdentityTest.kt b/harness/tests/src/main/kotlin/godot/tests/CoreTypesIdentityTest.kt index 669638f17c..ed22301409 100644 --- a/harness/tests/src/main/kotlin/godot/tests/CoreTypesIdentityTest.kt +++ b/harness/tests/src/main/kotlin/godot/tests/CoreTypesIdentityTest.kt @@ -1,72 +1,80 @@ package godot.tests import godot.Node -import godot.annotation.RegisterClass -import godot.annotation.RegisterFunction -import godot.annotation.RegisterProperty -import godot.core.* - -@RegisterClass +import godot.annotation.GodotMember +import godot.annotation.GodotScript +import godot.core.AABB +import godot.core.Basis +import godot.core.Color +import godot.core.Plane +import godot.core.Quaternion +import godot.core.Rect2 +import godot.core.Transform2D +import godot.core.Transform3D +import godot.core.Vector2 +import godot.core.Vector3 + +@GodotScript class CoreTypesIdentityTest : Node() { - @RegisterProperty + @GodotMember var aabb = AABB(Vector3(1, 1, 1), Vector3(2, 2, 2)) - @RegisterProperty + @GodotMember var basis = Basis(Vector3(0, 1, 2), Vector3(3, 4, 5), Vector3(6, 7, 8)) - @RegisterProperty + @GodotMember var color = Color(0.1, 0.2, 0.3, 0.4) - @RegisterProperty + @GodotMember var plane = Plane(1, 2, 3, 4) - @RegisterProperty + @GodotMember var quaternion = Quaternion(1, 2, 3, 4) - @RegisterProperty + @GodotMember var rect2 = Rect2(1.0, 2.0, 3.0, 4.0) - @RegisterProperty + @GodotMember var transform3D = Transform3D(Vector3(0, 1, 2), Vector3(3, 4, 5), Vector3(6, 7, 8), Vector3(9, 10, 11)) - @RegisterProperty + @GodotMember var transform2D = Transform2D(0, 1, 2, 3, 4, 5) - @RegisterProperty + @GodotMember var vector2 = Vector2(1, 2) - @RegisterProperty + @GodotMember var vector3 = Vector3(1, 2, 3) - @RegisterFunction + @GodotMember fun aabb(aabb: AABB) = aabb - @RegisterFunction + @GodotMember fun basis(basis: Basis) = basis - @RegisterFunction + @GodotMember fun color(color: Color) = color - @RegisterFunction + @GodotMember fun plane(plane: Plane) = plane - @RegisterFunction + @GodotMember fun quat(quaternion: Quaternion) = quaternion - @RegisterFunction + @GodotMember fun rect2(rect2: Rect2) = rect2 - @RegisterFunction + @GodotMember fun transform(transform3D: Transform3D) = transform3D - @RegisterFunction + @GodotMember fun transform2D(transform2D: Transform2D) = transform2D - @RegisterFunction + @GodotMember fun vector2(vector2: Vector2) = vector2 - @RegisterFunction + @GodotMember fun vector3(vector3: Vector3) = vector3 } diff --git a/harness/tests/src/main/kotlin/godot/tests/FuncRefTest.kt b/harness/tests/src/main/kotlin/godot/tests/FuncRefTest.kt index 9cd92c7d4d..d26aed53c6 100644 --- a/harness/tests/src/main/kotlin/godot/tests/FuncRefTest.kt +++ b/harness/tests/src/main/kotlin/godot/tests/FuncRefTest.kt @@ -1,75 +1,72 @@ package godot.tests import godot.Node -import godot.annotation.RegisterClass -import godot.annotation.RegisterFunction -import godot.annotation.RegisterProperty -import godot.annotation.RegisterSignal +import godot.annotation.GodotMember +import godot.annotation.GodotScript import godot.annotation.Rpc import godot.core.signal0 import godot.extensions.call import godot.extensions.callDeferred -@RegisterClass +@GodotScript class FuncRefTest : Node() { - @RegisterSignal val test by signal0() - @RegisterProperty + @GodotMember var blubb: Boolean = false - @RegisterProperty + @GodotMember var callFlag = false - @RegisterProperty + @GodotMember var callWithParamFlag = false - @RegisterProperty + @GodotMember var signalCallFlag = false - @RegisterFunction + @GodotMember override fun _ready() { test.connect(this, FuncRefTest::testSignalCallback) } @Rpc - @RegisterFunction + @GodotMember fun testSignalCallback() { signalCallFlag = true } - @RegisterFunction + @GodotMember fun testSignalCall() { test.emit() } - @RegisterFunction + @GodotMember fun withoutParamCallback() { callFlag = true } - @RegisterFunction + @GodotMember fun testCallWithoutParam() { call(this::withoutParamCallback) } - @RegisterFunction + @GodotMember fun testCallDeferredWithoutParam() { callDeferred(this::withoutParamCallback) } - @RegisterFunction + @GodotMember fun withParamCallback(flag: Boolean) { callWithParamFlag = flag } - @RegisterFunction + @GodotMember fun testCallWithParam() { call(this::withParamCallback, true) } - @RegisterFunction + @GodotMember fun testCallDeferredWithParam() { callDeferred(this::withParamCallback, true) } diff --git a/harness/tests/src/main/kotlin/godot/tests/Invocation.kt b/harness/tests/src/main/kotlin/godot/tests/Invocation.kt index 7dd7855132..03931f9360 100644 --- a/harness/tests/src/main/kotlin/godot/tests/Invocation.kt +++ b/harness/tests/src/main/kotlin/godot/tests/Invocation.kt @@ -14,14 +14,13 @@ import godot.annotation.ExpEasing import godot.annotation.Export import godot.annotation.File import godot.annotation.FloatRange +import godot.annotation.GodotMember +import godot.annotation.GodotScript import godot.annotation.IntFlag import godot.annotation.IntRange import godot.annotation.LongRange import godot.annotation.MultilineText import godot.annotation.PlaceHolderText -import godot.annotation.RegisterClass -import godot.annotation.RegisterFunction -import godot.annotation.RegisterProperty import godot.core.Color import godot.core.Dictionary import godot.core.NodePath @@ -49,21 +48,18 @@ enum class TestEnum { ENUM_2 } -@RegisterClass +@GodotScript class Invocation : Node3D() { @Export - @RegisterProperty lateinit var button: Button @Export - @RegisterProperty var enumList = listOf(TestEnum.ENUM_1) - @RegisterProperty + @GodotMember var vectorList = PackedVector3Array() @Export - @RegisterProperty var enumListMutable = mutableListOf(TestEnum.ENUM_1, TestEnum.ENUM_2) // Can't export nullable coretypes @@ -78,62 +74,55 @@ class Invocation : Node3D() { //@RegisterProperty //var lateinitString: String? = null - @RegisterProperty + @GodotMember lateinit var registerObject: OtherScript - @RegisterProperty + @GodotMember var registerObjectNullable: OtherScript? = null - @RegisterProperty + @GodotMember var registerObjectNullablePreInit: OtherScript? = OtherScript() set(value) { field?.free() field = value } - @RegisterProperty + @GodotMember var registerObjectNonNullablePreInit: OtherScript = OtherScript() set(value) { field.free() field = value } - @RegisterProperty + @GodotMember var vector = Vector3() @Export - @RegisterProperty var x = 0 @Export - @RegisterProperty var y = 0.0 @Export - @RegisterProperty var z = 0.0f @Export - @RegisterProperty var customName = "Idonthaveanyidea" //references in default values are allowed if the property is NOT exported private val otherScriptReference = OtherScript() private fun provideOtherScriptReference() = otherScriptReference - @RegisterProperty + @GodotMember var invocation = provideOtherScriptReference() @Export - @RegisterProperty var enumTest = TestEnum.ENUM_1 @Export - @RegisterProperty var resourceTest = NavigationMesh() @Export - @RegisterProperty var jvmId: Int = 0 get() = hashCode() set(value) { @@ -141,145 +130,114 @@ class Invocation : Node3D() { } @Export - @RegisterProperty var testArrayAny = VariantArray() @Export - @RegisterProperty var navMeshes = variantArrayOf(NavigationMesh()) @Export - @RegisterProperty var nullableArray = variantArrayOf(NavigationMesh(), null) @Export - @RegisterProperty var anyToAnyDictionary = Dictionary() @Export - @RegisterProperty var navMeshesDictionary = dictionaryOf("AwesomeNavmesh" to NavigationMesh()) @Export - @RegisterProperty var nullableDictionary = dictionaryOf( "notnull" to NavigationMesh(), "null" to null ) @Export - @RegisterProperty var color = Color() @Export - @RegisterProperty var rid = RID() @Export - @RegisterProperty var packedByteArray = PackedByteArray() @Export - @RegisterProperty var packedInt32Array = PackedInt32Array() @Export - @RegisterProperty var packedFloat64Array = PackedFloat64Array() @Export - @RegisterProperty var packedColorArray = PackedColorArray() @Export - @RegisterProperty var packedStringArray = PackedStringArray() @Export - @RegisterProperty var packedVector2Array = PackedVector2Array() @Export - @RegisterProperty var packedVector3Array = PackedVector3Array() @Export - @RegisterProperty @IntRange(1, 2) var p1 = 1 @Export - @RegisterProperty @LongRange(1L, 2L) var p1_1 = 1L @Export - @RegisterProperty @FloatRange(1f, 2f) var p2 = 1f @Export - @RegisterProperty @DoubleRange(1.0, 2.0) var p3 = 1.0 @Export - @RegisterProperty @DoubleRange(min = 1.0, max = 2.0, step = 0.1, or = Range.OR_GREATER, hideSlider = true, isDegrees = true, suffix = "MyCoolSuffix") var p4 = 1.0 @Export - @RegisterProperty @FloatRange(1f, 2f) var p5 = 1f @Export - @RegisterProperty @EnumTypeHint var p6 = TestEnum.ENUM_1 @Export - @RegisterProperty @ExpEasing var p7 = 1f @Export - @RegisterProperty @ExpEasing var p8 = 1.0 @Export - @RegisterProperty @EnumFlag var p9 = setOf(TestEnum.ENUM_1) @Export - @RegisterProperty @EnumFlag var p10 = mutableSetOf(TestEnum.ENUM_1) @Export - @RegisterProperty @EnumFlag var p11 = mutableSetOf() @Export - @RegisterProperty @IntFlag var p12 = 1 or 2 and 3 @Export - @RegisterProperty @File var p13 = "someFile" @Export - @RegisterProperty @Dir var p14 = "someDir" @Export - @RegisterProperty @MultilineText var p15 = """ some @@ -288,60 +246,54 @@ class Invocation : Node3D() { """.trimIndent() @Export - @RegisterProperty @PlaceHolderText var p16 = "some placeholderText" @Export - @RegisterProperty @ColorNoAlpha var p17 = Color() @Export - @RegisterProperty var stringtemplation = "blubb ${17 + 25}" @Export - @RegisterProperty var testString = "Two eggs in a boiler. One says: it's hot here, isn't ? The other: oh my god, an egg talking!" @Export - @RegisterProperty var asciiString = "" @Export - @RegisterProperty var utf8String = "" - @RegisterFunction + @GodotMember fun intValue(value: Int) = value - @RegisterFunction + @GodotMember fun longValue(value: Long) = value - @RegisterFunction + @GodotMember fun floatValue(value: Float) = value - @RegisterFunction + @GodotMember fun doubleValue(value: Double) = value - @RegisterFunction + @GodotMember fun booleanValue(value: Boolean) = value - @RegisterFunction + @GodotMember fun stringValue(value: String) = value - @RegisterFunction + @GodotMember fun intAddition(a: Int, b: Int) = a + b - @RegisterFunction + @GodotMember fun initNullables() { registerObject = OtherScript() registerObjectNullable = OtherScript() hasInitializedLateInits = true } - @RegisterFunction + @GodotMember override fun _enterTree() { //TODO: uncomment once https://github.com/utopia-rise/godot-kotlin-jvm/issues/86 is fixed // GD.print("Hello", "Hello") @@ -355,7 +307,7 @@ class Invocation : Node3D() { println("CustomName is $customName") } - @RegisterFunction + @GodotMember override fun _ready() { val formerName = name println("Name is: $name") @@ -400,50 +352,50 @@ class Invocation : Node3D() { registerObjectNonNullablePreInit.free() } - @RegisterFunction + @GodotMember fun getRidId() = rid.id - @RegisterFunction + @GodotMember fun getNavMeshRid() = resourceTest.getRid() - @RegisterFunction + @GodotMember fun appendToAnyDict(key: Any, value: Any) { anyToAnyDictionary[key] = value } - @RegisterFunction + @GodotMember fun removeFromAnyDict(key: Any) { anyToAnyDictionary.remove(key) } - @RegisterFunction + @GodotMember fun getFromAnyDict(key: Any) = anyToAnyDictionary[key] - @RegisterFunction + @GodotMember fun anyDictSize() = anyToAnyDictionary.size - @RegisterFunction + @GodotMember fun appendToStringNavMeshDict(key: String, value: NavigationMesh) { navMeshesDictionary[key] = value } - @RegisterFunction + @GodotMember fun removeFromStringNavMeshDict(key: String) { navMeshesDictionary.remove(key) } - @RegisterFunction + @GodotMember fun getFromStringNavMeshDict(key: String) = navMeshesDictionary[key] - @RegisterFunction + @GodotMember fun stringNavMeshDictSize() = navMeshesDictionary.size - @RegisterFunction + @GodotMember fun appendToStringNavMeshNullableDict(key: String, value: NavigationMesh) { nullableDictionary[key] = value } - @RegisterFunction + @GodotMember fun removeFromStringNavMeshNullableDict(key: String) { nullableDictionary.remove(key) } @@ -452,150 +404,150 @@ class Invocation : Node3D() { // @RegisterFunction // fun getFromStringNavMeshNullableDict(key: String) = nullableDictionary[key] - @RegisterFunction + @GodotMember fun stringNavMeshNullableDictSize() = nullableDictionary.size - @RegisterFunction + @GodotMember fun appendNullableStandardNavMesh() = nullableArray.append(NavigationMesh()) - @RegisterFunction + @GodotMember fun appendNullableNavMesh(navigationMesh: NavigationMesh?) = nullableArray.append(navigationMesh) - @RegisterFunction + @GodotMember fun removeNullableNavMesh(navigationMesh: NavigationMesh?) = nullableArray.remove(navigationMesh) - @RegisterFunction + @GodotMember fun removeNullableNavMeshWithIndex(index: Int) = nullableArray.removeAt(index) // TODO: This will fail to register as we cannot register nullable return type // @RegisterFunction // fun getNullableNavMeshFromArray(index: Int) = nullableArray[index] - @RegisterFunction + @GodotMember fun nullableNavMeshesSize() = nullableArray.size - @RegisterFunction + @GodotMember fun appendStandardNavMesh() = navMeshes.append(NavigationMesh()) - @RegisterFunction + @GodotMember fun appendNavMesh(navigationMesh: NavigationMesh) = navMeshes.append(navigationMesh) - @RegisterFunction + @GodotMember fun removeNavMesh(navigationMesh: NavigationMesh) = navMeshes.remove(navigationMesh) - @RegisterFunction + @GodotMember fun removeNavMeshWithIndex(index: Int) = navMeshes.removeAt(index) - @RegisterFunction + @GodotMember fun getNavMeshFromArray(index: Int) = navMeshes[index] - @RegisterFunction + @GodotMember fun navMeshesSize() = navMeshes.size - @RegisterFunction + @GodotMember fun appendAnyToArray(any: Any) = testArrayAny.append(any) - @RegisterFunction + @GodotMember fun removeAnyFromArray(any: Any) = testArrayAny.remove(any) - @RegisterFunction + @GodotMember fun getAnyFromArray(index: Int) = testArrayAny[index] - @RegisterFunction + @GodotMember fun arrayAnySize() = testArrayAny.size - @RegisterFunction + @GodotMember fun countNameshInstance(navigationMesh: NavigationMesh) = navMeshes.count(navigationMesh) - @RegisterFunction + @GodotMember fun getNavMeshCount() = navMeshes.count() //Type cast checks - @RegisterFunction + @GodotMember fun parentIsNode3D() = getParent() is Node3D - @RegisterFunction + @GodotMember fun isObjectNode3D(obj: Object) = obj is Node3D - @RegisterFunction + @GodotMember fun otherJvmId(invocation: Invocation) = invocation.jvmId - @RegisterFunction + @GodotMember fun hasCameraNode() = getNodeOrNull(NodePath("Camera")) != null - @RegisterFunction + @GodotMember fun addByteToPackedArray(byte: Byte) = packedByteArray.append(byte) - @RegisterFunction + @GodotMember fun addByteArrayToPackedArray(array: PackedByteArray) = packedByteArray.appendArray(array) - @RegisterFunction + @GodotMember fun deleteByteFromPackedArray(index: Int) = packedByteArray.removeAt(index) - @RegisterFunction + @GodotMember fun getByteFromPackedArray(index: Int) = packedByteArray[index] - @RegisterFunction + @GodotMember fun setByteInPackedArray(index: Int, value: Byte) { packedByteArray[index] = value } - @RegisterFunction + @GodotMember fun resizeBytePackedArray(newSize: Int) { packedByteArray.resize(newSize) } - @RegisterFunction + @GodotMember fun addColorToPackedArray(color: Color) = packedColorArray.append(color) - @RegisterFunction + @GodotMember fun addColorArrayToPackedArray(colorArray: PackedColorArray) = packedColorArray.appendArray(colorArray) - @RegisterFunction + @GodotMember fun deleteColorFromPackedArray(index: Int) = packedColorArray.removeAt(index) - @RegisterFunction + @GodotMember fun getColorFromPackedArray(index: Int) = packedColorArray[index] - @RegisterFunction + @GodotMember fun setColorInPackedArray(index: Int, color: Color) { packedColorArray[index] = color } - @RegisterFunction + @GodotMember fun resizeColorPackedArray(newSize: Int) { packedColorArray.resize(newSize) } - @RegisterFunction + @GodotMember fun addIntToPackedArray(int: Int) = packedInt32Array.append(int) - @RegisterFunction + @GodotMember fun addIntArrayToPackedArray(intArray: PackedInt32Array) = this.packedInt32Array.appendArray(intArray) - @RegisterFunction + @GodotMember fun deleteIntFromPackedArray(index: Int) = packedInt32Array.removeAt(index) - @RegisterFunction + @GodotMember fun getIntFromPackedArray(index: Int) = packedInt32Array[index] - @RegisterFunction + @GodotMember fun setIntInPackedArray(index: Int, value: Int) { packedInt32Array[index] = value } - @RegisterFunction + @GodotMember fun resizeIntPackedArray(newSize: Int) { packedInt32Array.resize(newSize) } - @RegisterFunction + @GodotMember fun addRealToPackedArray(realT: RealT) = packedFloat64Array.append(realT) - @RegisterFunction + @GodotMember fun addRealArrayToPackedArray(realArray: PackedFloat64Array) = packedFloat64Array.appendArray(realArray) - @RegisterFunction + @GodotMember fun readStringFromByteArray() { val asciiArray = testString.toByteArray(Charsets.US_ASCII) @@ -613,94 +565,94 @@ class Invocation : Node3D() { utf8String = packed2.getStringFromUtf8() } - @RegisterFunction + @GodotMember fun deleteRealFromPackedArray(index: Int) = packedFloat64Array.removeAt(index) - @RegisterFunction + @GodotMember fun getRealFromPackedArray(index: Int) = packedFloat64Array[index] - @RegisterFunction + @GodotMember fun setRealInPackedArray(index: Int, value: Double) { packedFloat64Array[index] = value } - @RegisterFunction + @GodotMember fun resizeRealPackedArray(newSize: Int) { packedFloat64Array.resize(newSize) } - @RegisterFunction + @GodotMember fun addStringToPackedArray(string: String) = packedStringArray.append(string) - @RegisterFunction + @GodotMember fun addStringArrayToPackedArray(stringArray: PackedStringArray) = packedStringArray.appendArray(stringArray) - @RegisterFunction + @GodotMember fun deleteStringFromPackedArray(index: Int) = packedStringArray.removeAt(index) - @RegisterFunction + @GodotMember fun getStringFromPackedArray(index: Int) = packedStringArray[index] - @RegisterFunction + @GodotMember fun setStringInPackedArray(index: Int, value: String) { packedStringArray[index] = value } - @RegisterFunction + @GodotMember fun resizeStringPackedArray(newSize: Int) { packedStringArray.resize(newSize) } - @RegisterFunction + @GodotMember fun addVector2ToPackedArray(vector2: Vector2) = packedVector2Array.append(vector2) - @RegisterFunction + @GodotMember fun addVector2ArrayToPackedArray(vector2Array: PackedVector2Array) = packedVector2Array.appendArray(vector2Array) - @RegisterFunction + @GodotMember fun deleteVector2FromPackedArray(index: Int) = packedVector2Array.removeAt(index) - @RegisterFunction + @GodotMember fun getVector2FromPackedArray(index: Int) = packedVector2Array[index] - @RegisterFunction + @GodotMember fun setVector2InPackedArray(index: Int, vector2: Vector2) { packedVector2Array[index] = vector2 } - @RegisterFunction + @GodotMember fun resizeVector2PackedArray(newSize: Int) { packedVector2Array.resize(newSize) } - @RegisterFunction + @GodotMember fun addVector3ToPackedArray(vector3: Vector3) = packedVector3Array.append(vector3) - @RegisterFunction + @GodotMember fun addVector3ArrayToPackedArray(vector3Array: PackedVector3Array) = packedVector3Array.appendArray(vector3Array) - @RegisterFunction + @GodotMember fun deleteVector3FromPackedArray(index: Int) = packedVector3Array.removeAt(index) - @RegisterFunction + @GodotMember fun getVector3FromPackedArray(index: Int) = packedVector3Array[index] - @RegisterFunction + @GodotMember fun setVector3InPackedArray(index: Int, vector3: Vector3) { packedVector3Array[index] = vector3 } - @RegisterFunction + @GodotMember fun resizeVector3PackedArray(newSize: Int) { packedVector3Array.resize(newSize) } // Singleton tests - @RegisterFunction + @GodotMember fun isSentXrSameInstanceAsJvmSingleton(arvrServer: XRServer) = XRServer.getInstanceId() == arvrServer.getInstanceId() - @RegisterFunction + @GodotMember fun createVariantArrayOfUserType() = variantArrayOf() } diff --git a/harness/tests/src/main/kotlin/godot/tests/LambdaCallableTest.kt b/harness/tests/src/main/kotlin/godot/tests/LambdaCallableTest.kt index b84f50b000..23abc95111 100644 --- a/harness/tests/src/main/kotlin/godot/tests/LambdaCallableTest.kt +++ b/harness/tests/src/main/kotlin/godot/tests/LambdaCallableTest.kt @@ -1,44 +1,40 @@ package godot.tests import godot.Node -import godot.annotation.RegisterClass -import godot.annotation.RegisterFunction -import godot.annotation.RegisterProperty -import godot.annotation.RegisterSignal +import godot.annotation.GodotMember +import godot.annotation.GodotScript import godot.core.Signal3 import godot.core.asCallable import godot.core.connect import godot.core.signal0 import godot.core.signal3 -@RegisterClass +@GodotScript class LambdaCallableTest : Node() { - @RegisterSignal val signalNoParam by signal0() - @RegisterProperty + @GodotMember var hasSignalNoParamBeenTriggered = false - @RegisterSignal val signalWithParams: Signal3 by signal3("str", "long", "node") - @RegisterProperty + @GodotMember var signalString: String = "" - @RegisterProperty + @GodotMember var signalLong: Long = Long.MIN_VALUE - @RegisterProperty + @GodotMember lateinit var signalNode: Node - @RegisterProperty + @GodotMember var ktCallable = { str: String -> ktCallableString = str }.asCallable() - @RegisterProperty + @GodotMember var ktCallableString: String = "" - @RegisterFunction + @GodotMember override fun _ready() { signalNoParam.connect { hasSignalNoParamBeenTriggered = true @@ -51,12 +47,12 @@ class LambdaCallableTest : Node() { } } - @RegisterFunction + @GodotMember fun emitSignalNoParam() { signalNoParam.emit() } - @RegisterFunction + @GodotMember fun emitSignalWithParam(str: String, long: Long, node: Node) { signalWithParams.emit(str, long, node) } diff --git a/harness/tests/src/main/kotlin/godot/tests/MultiArgsConstructorTest.kt b/harness/tests/src/main/kotlin/godot/tests/MultiArgsConstructorTest.kt index 060c5e4f6b..5c756856f6 100644 --- a/harness/tests/src/main/kotlin/godot/tests/MultiArgsConstructorTest.kt +++ b/harness/tests/src/main/kotlin/godot/tests/MultiArgsConstructorTest.kt @@ -3,45 +3,44 @@ package godot.tests import godot.NavigationMesh import godot.Node import godot.Object -import godot.annotation.RegisterClass -import godot.annotation.RegisterConstructor -import godot.annotation.RegisterProperty +import godot.annotation.GodotMember +import godot.annotation.GodotScript import godot.core.VariantArray -@RegisterClass +@GodotScript class MultiArgsConstructorTest : Node { - @RegisterProperty + @GodotMember var defaultConstructorHasBeenCalled = false - @RegisterProperty + @GodotMember var oneArgConstructorHasBeenCalled = false - @RegisterProperty + @GodotMember var threeArgsConstructorHasBeenCalled = false - @RegisterConstructor + @GodotMember constructor() : super() { defaultConstructorHasBeenCalled = true } - @RegisterConstructor + @GodotMember constructor(i: Int) : this() { oneArgConstructorHasBeenCalled = true } - @RegisterConstructor + @GodotMember constructor(i: Int, s: String) : this() { threeArgsConstructorHasBeenCalled = true } - @RegisterConstructor + @GodotMember constructor(i: Int, s: String, obj: Object?) : this() - @RegisterConstructor + @GodotMember constructor(i: Int, s: String, obj: Object?, variantArray: VariantArray) : this() - @RegisterConstructor + @GodotMember constructor(i: Int, s: String, obj: Object?, variantArray: VariantArray?, navMesh: NavigationMesh) : this() constructor( @@ -62,8 +61,8 @@ class MultiArgsConstructorTest : Node { ) : this() // constructors which should fail: -// @RegisterConstructor +// @GodotMember // constructor(iShouldFailAsOverloadingIsNotSupported: String, s: String, obj: Object?, variantArray: VariantArray?, navMesh: NavigationMesh) : this() -// @RegisterConstructor +// @GodotMember // constructor(i: Int, s: Int, obj: Object?, variantArray: VariantArray?, navMesh: NavigationMesh, tooManyArgs: String) : this() } diff --git a/harness/tests/src/main/kotlin/godot/tests/args/ConstructorArgSizeTest.kt b/harness/tests/src/main/kotlin/godot/tests/args/ConstructorArgSizeTest.kt index 6d3d810c4b..95d62b2076 100644 --- a/harness/tests/src/main/kotlin/godot/tests/args/ConstructorArgSizeTest.kt +++ b/harness/tests/src/main/kotlin/godot/tests/args/ConstructorArgSizeTest.kt @@ -1,26 +1,23 @@ package godot.tests.args import godot.Node -import godot.Resource -import godot.annotation.RegisterClass -import godot.annotation.RegisterConstructor -import godot.annotation.RegisterFunction -import godot.core.Dictionary +import godot.annotation.GodotMember +import godot.annotation.GodotScript import godot.core.VariantArray import godot.core.variantArrayOf -@RegisterClass +@GodotScript class ConstructorArgSizeTest(): Node() { private val receivedConstructorArgs: VariantArray = variantArrayOf() - @RegisterConstructor + @GodotMember constructor( p1: String, ): this() { receivedConstructorArgs.add(p1) } - @RegisterConstructor + @GodotMember constructor( p1: String, p2: String, @@ -31,7 +28,7 @@ class ConstructorArgSizeTest(): Node() { } } - @RegisterConstructor + @GodotMember constructor( p1: String, p2: String, @@ -44,7 +41,7 @@ class ConstructorArgSizeTest(): Node() { } } - @RegisterConstructor + @GodotMember constructor( p1: String, p2: String, @@ -59,7 +56,7 @@ class ConstructorArgSizeTest(): Node() { } } - @RegisterConstructor + @GodotMember constructor( p1: String, p2: String, @@ -76,7 +73,7 @@ class ConstructorArgSizeTest(): Node() { } } - @RegisterConstructor + @GodotMember constructor( p1: String, p2: String, @@ -95,7 +92,7 @@ class ConstructorArgSizeTest(): Node() { } } - @RegisterConstructor + @GodotMember constructor( p1: String, p2: String, @@ -116,7 +113,7 @@ class ConstructorArgSizeTest(): Node() { } } - @RegisterConstructor + @GodotMember constructor( p1: String, p2: String, @@ -139,7 +136,7 @@ class ConstructorArgSizeTest(): Node() { } } - @RegisterFunction + @GodotMember fun getReceivedConstructorArgs(): VariantArray { return receivedConstructorArgs } diff --git a/harness/tests/src/main/kotlin/godot/tests/args/FunctionArgSizeTest.kt b/harness/tests/src/main/kotlin/godot/tests/args/FunctionArgSizeTest.kt index e196fd781d..e4d40574a1 100644 --- a/harness/tests/src/main/kotlin/godot/tests/args/FunctionArgSizeTest.kt +++ b/harness/tests/src/main/kotlin/godot/tests/args/FunctionArgSizeTest.kt @@ -1,22 +1,20 @@ package godot.tests.args import godot.Node -import godot.Resource -import godot.annotation.RegisterClass -import godot.annotation.RegisterFunction -import godot.core.Dictionary +import godot.annotation.GodotMember +import godot.annotation.GodotScript import godot.core.VariantArray import godot.core.variantArrayOf -@RegisterClass +@GodotScript class FunctionArgSizeTest : Node() { - @RegisterFunction + @GodotMember fun arg0(): VariantArray { return variantArrayOf() } - @RegisterFunction + @GodotMember fun arg1( p1: String, ): VariantArray { @@ -25,7 +23,7 @@ class FunctionArgSizeTest : Node() { ) } - @RegisterFunction + @GodotMember fun arg2( p1: String, p2: String, @@ -36,7 +34,7 @@ class FunctionArgSizeTest : Node() { ) } - @RegisterFunction + @GodotMember fun arg3( p1: String, p2: String, @@ -49,7 +47,7 @@ class FunctionArgSizeTest : Node() { ) } - @RegisterFunction + @GodotMember fun arg4( p1: String, p2: String, @@ -64,7 +62,7 @@ class FunctionArgSizeTest : Node() { ) } - @RegisterFunction + @GodotMember fun arg5( p1: String, p2: String, @@ -81,7 +79,7 @@ class FunctionArgSizeTest : Node() { ) } - @RegisterFunction + @GodotMember fun arg6( p1: String, p2: String, @@ -100,7 +98,7 @@ class FunctionArgSizeTest : Node() { ) } - @RegisterFunction + @GodotMember fun arg7( p1: String, p2: String, @@ -121,7 +119,7 @@ class FunctionArgSizeTest : Node() { ) } - @RegisterFunction + @GodotMember fun arg8( p1: String, p2: String, @@ -144,7 +142,7 @@ class FunctionArgSizeTest : Node() { ) } - @RegisterFunction + @GodotMember fun arg9( p1: String, p2: String, @@ -169,7 +167,7 @@ class FunctionArgSizeTest : Node() { ) } - @RegisterFunction + @GodotMember fun arg10( p1: String, p2: String, @@ -196,7 +194,7 @@ class FunctionArgSizeTest : Node() { ) } - @RegisterFunction + @GodotMember fun arg11( p1: String, p2: String, @@ -225,7 +223,7 @@ class FunctionArgSizeTest : Node() { ) } - @RegisterFunction + @GodotMember fun arg12( p1: String, p2: String, @@ -256,7 +254,7 @@ class FunctionArgSizeTest : Node() { ) } - @RegisterFunction + @GodotMember fun arg13( p1: String, p2: String, @@ -289,7 +287,7 @@ class FunctionArgSizeTest : Node() { ) } - @RegisterFunction + @GodotMember fun arg14( p1: String, p2: String, @@ -324,7 +322,7 @@ class FunctionArgSizeTest : Node() { ) } - @RegisterFunction + @GodotMember fun arg15( p1: String, p2: String, @@ -361,7 +359,7 @@ class FunctionArgSizeTest : Node() { ) } - @RegisterFunction + @GodotMember fun arg16( p1: String, p2: String, diff --git a/harness/tests/src/main/kotlin/godot/tests/binding/BindingA.kt b/harness/tests/src/main/kotlin/godot/tests/binding/BindingA.kt index 68312354cb..b4fedeb422 100644 --- a/harness/tests/src/main/kotlin/godot/tests/binding/BindingA.kt +++ b/harness/tests/src/main/kotlin/godot/tests/binding/BindingA.kt @@ -2,8 +2,8 @@ package godot.tests.binding import godot.Node -import godot.annotation.RegisterClass +import godot.annotation.GodotScript -@RegisterClass +@GodotScript class BindingA : Node() { } diff --git a/harness/tests/src/main/kotlin/godot/tests/binding/BindingB.kt b/harness/tests/src/main/kotlin/godot/tests/binding/BindingB.kt index 31a6ad5717..fdd842890e 100644 --- a/harness/tests/src/main/kotlin/godot/tests/binding/BindingB.kt +++ b/harness/tests/src/main/kotlin/godot/tests/binding/BindingB.kt @@ -1,8 +1,8 @@ package godot.tests.binding import godot.Node -import godot.annotation.RegisterClass +import godot.annotation.GodotScript -@RegisterClass +@GodotScript class BindingB : Node() { } diff --git a/harness/tests/src/main/kotlin/godot/tests/binding/BindingTest.kt b/harness/tests/src/main/kotlin/godot/tests/binding/BindingTest.kt index d01bb631db..5b9de96b32 100644 --- a/harness/tests/src/main/kotlin/godot/tests/binding/BindingTest.kt +++ b/harness/tests/src/main/kotlin/godot/tests/binding/BindingTest.kt @@ -1,12 +1,12 @@ package godot.tests.binding import godot.Object -import godot.annotation.RegisterClass -import godot.annotation.RegisterFunction +import godot.annotation.GodotMember +import godot.annotation.GodotScript -@RegisterClass +@GodotScript class BindingTest : Object() { - @RegisterFunction + @GodotMember fun getClassName(obj: Object) = obj::class.simpleName } diff --git a/harness/tests/src/main/kotlin/godot/tests/callable/CallableMethodBindTest.kt b/harness/tests/src/main/kotlin/godot/tests/callable/CallableMethodBindTest.kt index 3c760e7234..2475053a36 100644 --- a/harness/tests/src/main/kotlin/godot/tests/callable/CallableMethodBindTest.kt +++ b/harness/tests/src/main/kotlin/godot/tests/callable/CallableMethodBindTest.kt @@ -1,40 +1,39 @@ package godot.tests.callable import godot.Node -import godot.annotation.RegisterClass -import godot.annotation.RegisterFunction -import godot.annotation.RegisterProperty +import godot.annotation.GodotMember +import godot.annotation.GodotScript import godot.core.NativeCallable import godot.core.VariantArray import godot.core.variantArrayOf import godot.global.GD -@RegisterClass +@GodotScript class CallableMethodBindTest: Node() { - @RegisterProperty + @GodotMember var methodBinds: VariantArray = variantArrayOf(-1, -1, -1) - @RegisterFunction + @GodotMember fun callWithMethodWithAllBinds() { NativeCallable(this, CallableMethodBindTest::readySignalMethodBindTest).bind(1, 2, 3).call() } - @RegisterFunction + @GodotMember fun callWithMethodWithTwoBinds() { NativeCallable(this, CallableMethodBindTest::readySignalMethodBindTest).bind(2, 3).call(0) } - @RegisterFunction + @GodotMember fun callWithMethodWithOneBind() { NativeCallable(this, CallableMethodBindTest::readySignalMethodBindTest).bind(3).call(0, 0) } - @RegisterFunction + @GodotMember fun callWithMethodWithNoBind() { NativeCallable(this, CallableMethodBindTest::readySignalMethodBindTest).bind().call(0, 0, 0) } - @RegisterFunction + @GodotMember fun readySignalMethodBindTest(a: Int, b: Int, c: Int) { GD.print("Called with args: $a, $b, $c") methodBinds = variantArrayOf(a, b, c) diff --git a/harness/tests/src/main/kotlin/godot/tests/constructor/ConstructorRegistrationTest.kt b/harness/tests/src/main/kotlin/godot/tests/constructor/ConstructorRegistrationTest.kt index f956afddec..ed74ac295e 100644 --- a/harness/tests/src/main/kotlin/godot/tests/constructor/ConstructorRegistrationTest.kt +++ b/harness/tests/src/main/kotlin/godot/tests/constructor/ConstructorRegistrationTest.kt @@ -1,14 +1,14 @@ package godot.tests.constructor import godot.Node -import godot.annotation.RegisterClass -import godot.annotation.RegisterConstructor +import godot.annotation.GodotMember +import godot.annotation.GodotScript import godot.core.Dictionary import godot.core.VariantArray -@RegisterClass +@GodotScript class ConstructorRegistrationTest(): Node() { - @RegisterConstructor + @GodotMember constructor(param1: Dictionary, param2: VariantArray): this() } diff --git a/harness/tests/src/main/kotlin/godot/tests/coretypes/BasisTest.kt b/harness/tests/src/main/kotlin/godot/tests/coretypes/BasisTest.kt index bf3395df34..14715a9c04 100644 --- a/harness/tests/src/main/kotlin/godot/tests/coretypes/BasisTest.kt +++ b/harness/tests/src/main/kotlin/godot/tests/coretypes/BasisTest.kt @@ -1,35 +1,35 @@ package godot.tests.coretypes import godot.Node -import godot.annotation.RegisterClass -import godot.annotation.RegisterFunction +import godot.annotation.GodotMember +import godot.annotation.GodotScript import godot.core.Basis import godot.core.Quaternion import godot.core.Vector3 -@RegisterClass +@GodotScript class BasisTest : Node() { - @RegisterFunction + @GodotMember fun getFromBasis(basis: Basis, index: Int) = basis[index] - @RegisterFunction + @GodotMember fun setInBasis(basis: Basis, index: Int, vector3: Vector3): Basis { basis[index] = vector3 return basis } - @RegisterFunction + @GodotMember fun getRotationQuat(basis: Basis): Quaternion { return basis.getRotationQuaternion() } - @RegisterFunction + @GodotMember fun newJvmBasis(): Basis { return Basis() } - @RegisterFunction + @GodotMember fun isEqualApproxJvm(a: Basis, b: Basis): Boolean { return a.isEqualApprox(b) } diff --git a/harness/tests/src/main/kotlin/godot/tests/coretypes/StringTest.kt b/harness/tests/src/main/kotlin/godot/tests/coretypes/StringTest.kt index 51543b3925..ce7107ccfc 100644 --- a/harness/tests/src/main/kotlin/godot/tests/coretypes/StringTest.kt +++ b/harness/tests/src/main/kotlin/godot/tests/coretypes/StringTest.kt @@ -1,13 +1,12 @@ package godot.tests.coretypes import godot.Node -import godot.annotation.RegisterClass -import godot.annotation.RegisterFunction -import godot.core.StringName -import godot.core.asStringName +import godot.annotation.GodotMember +import godot.annotation.GodotScript import godot.core.Vector2 +import godot.core.asStringName -@RegisterClass +@GodotScript class StringTest : Node() { private val _shortString = "Short String" @@ -46,35 +45,35 @@ class StringTest : Node() { """.trimIndent() - @RegisterFunction + @GodotMember fun identity(str: String) = str - @RegisterFunction + @GodotMember fun fillTheBuffer(str1: String, str2: String, str3: String, str4: String, str5: String): Boolean { return true } - @RegisterFunction + @GodotMember fun mixStringAndVariant(i1: Int, str1: String, vec: Vector2, str2: String, f1: Float): Boolean { return true } - @RegisterFunction + @GodotMember fun getShortString() = _shortString - @RegisterFunction + @GodotMember fun getLongestShortString() = _longestShortString - @RegisterFunction + @GodotMember fun getShortestLongString() = _shortestLongString - @RegisterFunction + @GodotMember fun getLongString() = _longString - @RegisterFunction + @GodotMember fun getLength(str: String) = str.length - @RegisterFunction + @GodotMember fun getAsStringName(str: String) = str.asStringName() } diff --git a/harness/tests/src/main/kotlin/godot/tests/coretypes/Vector3Test.kt b/harness/tests/src/main/kotlin/godot/tests/coretypes/Vector3Test.kt index 6b13eac73b..c126a31560 100644 --- a/harness/tests/src/main/kotlin/godot/tests/coretypes/Vector3Test.kt +++ b/harness/tests/src/main/kotlin/godot/tests/coretypes/Vector3Test.kt @@ -1,18 +1,18 @@ package godot.tests.coretypes import godot.Node -import godot.annotation.RegisterClass -import godot.annotation.RegisterFunction +import godot.annotation.GodotMember +import godot.annotation.GodotScript import godot.core.Vector3 import godot.common.util.RealT -@RegisterClass +@GodotScript class Vector3Test : Node() { - @RegisterFunction + @GodotMember fun getFromVector3(vector3: Vector3, index: Int) = vector3[index] - @RegisterFunction + @GodotMember fun setInVector3(vector3: Vector3, index: Int, realT: RealT): Vector3 { vector3[index] = realT return vector3 diff --git a/harness/tests/src/main/kotlin/godot/tests/coroutine/CoroutineTest.kt b/harness/tests/src/main/kotlin/godot/tests/coroutine/CoroutineTest.kt index e279554dbc..bcbb84da38 100644 --- a/harness/tests/src/main/kotlin/godot/tests/coroutine/CoroutineTest.kt +++ b/harness/tests/src/main/kotlin/godot/tests/coroutine/CoroutineTest.kt @@ -4,10 +4,8 @@ package godot.tests.coroutine import godot.Object import godot.PackedScene import godot.ResourceLoader -import godot.annotation.RegisterClass -import godot.annotation.RegisterFunction -import godot.annotation.RegisterProperty -import godot.annotation.RegisterSignal +import godot.annotation.GodotMember +import godot.annotation.GodotScript import godot.core.Vector2 import godot.core.signal0 import godot.core.signal1 @@ -15,55 +13,53 @@ import godot.core.signal4 import godot.coroutines.await import godot.coroutines.awaitLoadAs import godot.coroutines.awaitMainThread +import godot.coroutines.godotCoroutine import godot.coroutines.awaitPhysicsFrame import godot.coroutines.awaitProcessFrame import godot.coroutines.godotCoroutine import godot.global.GD import kotlinx.coroutines.CoroutineStart -@RegisterClass +@GodotScript class CoroutineTest : Object() { - @RegisterSignal val signalWithoutParameter by signal0() - @RegisterSignal val signalWithOneParameter by signal1("int") - @RegisterSignal val signalWithManyParameters by signal4("int", "float", "vector2", "string") - @RegisterProperty + @GodotMember var step: Int = 0 - @RegisterFunction + @GodotMember fun startCoroutineWithoutParameter() = godotCoroutine { step = 1 signalWithoutParameter.await() step = 2 } - @RegisterFunction + @GodotMember fun startCoroutineWithOneParameter() = godotCoroutine { step = 3 step = signalWithOneParameter.await() } - @RegisterFunction + @GodotMember fun startCoroutineWithManyParameters() = godotCoroutine { step = 5 val (int, _, _, _) = signalWithManyParameters.await() step = int } - @RegisterFunction + @GodotMember fun startCoroutineUndispatched() = godotCoroutine(start = CoroutineStart.UNDISPATCHED) { step = 7 signalWithoutParameter.await() step = 8 } - @RegisterFunction + @GodotMember fun startCoroutineWithPhysicsFrame() = godotCoroutine(start = CoroutineStart.UNDISPATCHED) { step = 9 awaitPhysicsFrame { @@ -71,7 +67,7 @@ class CoroutineTest : Object() { } } - @RegisterFunction + @GodotMember fun startCoroutineWithProcessFrame() = godotCoroutine(start = CoroutineStart.UNDISPATCHED) { step = 11 awaitProcessFrame { @@ -82,7 +78,7 @@ class CoroutineTest : Object() { @RegisterSignal val runOnMainThreadFromBackgroundThreadFinished by signal1("is_test_successful") - @RegisterFunction + @GodotMember fun runOnMainThreadFromBackgroundThread() { val thread = Thread.currentThread().name @@ -109,10 +105,9 @@ class CoroutineTest : Object() { } } - @RegisterSignal val asyncLoadResourceFinished by signal1("is_test_successful") - @RegisterFunction + @GodotMember fun asyncLoadResource() { godotCoroutine { val resource = ResourceLoader.awaitLoadAs("res://Spatial.tscn") { progress -> diff --git a/harness/tests/src/main/kotlin/godot/tests/exception/ExceptionTest.kt b/harness/tests/src/main/kotlin/godot/tests/exception/ExceptionTest.kt index b79bad523c..e4d35ecec6 100644 --- a/harness/tests/src/main/kotlin/godot/tests/exception/ExceptionTest.kt +++ b/harness/tests/src/main/kotlin/godot/tests/exception/ExceptionTest.kt @@ -1,13 +1,13 @@ package godot.tests.exception import godot.Node -import godot.annotation.RegisterClass -import godot.annotation.RegisterFunction +import godot.annotation.GodotMember +import godot.annotation.GodotScript -@RegisterClass +@GodotScript class ExceptionTest: Node() { - @RegisterFunction + @GodotMember fun throwException() { throw RuntimeException("Test exception") } diff --git a/harness/tests/src/main/kotlin/godot/tests/freeform/FreeformRegistrationFileTestClass.kt b/harness/tests/src/main/kotlin/godot/tests/freeform/FreeformRegistrationFileTestClass.kt index a808079ce8..4c88c62a0e 100644 --- a/harness/tests/src/main/kotlin/godot/tests/freeform/FreeformRegistrationFileTestClass.kt +++ b/harness/tests/src/main/kotlin/godot/tests/freeform/FreeformRegistrationFileTestClass.kt @@ -1,11 +1,11 @@ package godot.tests.freeform import godot.Node -import godot.annotation.RegisterClass -import godot.annotation.RegisterFunction +import godot.annotation.GodotMember +import godot.annotation.GodotScript -@RegisterClass +@GodotScript class FreeformRegistrationFileTestClass: Node() { - @RegisterFunction + @GodotMember fun greeting(): String = "Hello from class with freely moved registration file" } diff --git a/harness/tests/src/main/kotlin/godot/tests/inheritance/AbstractClassInheritanceChild.kt b/harness/tests/src/main/kotlin/godot/tests/inheritance/AbstractClassInheritanceChild.kt index 480e9a89ee..d9322d08a4 100644 --- a/harness/tests/src/main/kotlin/godot/tests/inheritance/AbstractClassInheritanceChild.kt +++ b/harness/tests/src/main/kotlin/godot/tests/inheritance/AbstractClassInheritanceChild.kt @@ -1,27 +1,24 @@ package godot.tests.inheritance -import godot.annotation.RegisterClass -import godot.annotation.RegisterFunction -import godot.annotation.RegisterProperty -import godot.annotation.RegisterSignal +import godot.annotation.GodotMember +import godot.annotation.GodotScript import godot.core.signal2 -@RegisterClass +@GodotScript class AbstractClassInheritanceChild : AbstractClassInheritanceParent() { - @RegisterSignal override val testOverridden by signal2("blubb", "habbalubbb") //---------------- Here to check ------------------ - @RegisterProperty + @GodotMember var childOpenFunctionHasBeenCalled = false //------------------------------------------------- override var openVar: Int = 100 - @RegisterFunction + @GodotMember override fun openFunction() { childOpenFunctionHasBeenCalled = true } diff --git a/harness/tests/src/main/kotlin/godot/tests/inheritance/AbstractClassInheritanceEmptyChild.kt b/harness/tests/src/main/kotlin/godot/tests/inheritance/AbstractClassInheritanceEmptyChild.kt index dc1c6c2313..05f0a808de 100644 --- a/harness/tests/src/main/kotlin/godot/tests/inheritance/AbstractClassInheritanceEmptyChild.kt +++ b/harness/tests/src/main/kotlin/godot/tests/inheritance/AbstractClassInheritanceEmptyChild.kt @@ -1,7 +1,7 @@ package godot.tests.inheritance -import godot.annotation.RegisterClass +import godot.annotation.GodotScript // issue: https://github.com/utopia-rise/godot-kotlin-jvm/issues/365 -@RegisterClass +@GodotScript class AbstractClassInheritanceEmptyChild: AbstractClassInheritanceEmptyParent() diff --git a/harness/tests/src/main/kotlin/godot/tests/inheritance/AbstractClassInheritanceParent.kt b/harness/tests/src/main/kotlin/godot/tests/inheritance/AbstractClassInheritanceParent.kt index 114310e7ce..b7e5622739 100644 --- a/harness/tests/src/main/kotlin/godot/tests/inheritance/AbstractClassInheritanceParent.kt +++ b/harness/tests/src/main/kotlin/godot/tests/inheritance/AbstractClassInheritanceParent.kt @@ -2,9 +2,7 @@ package godot.tests.inheritance import godot.Node import godot.annotation.Export -import godot.annotation.RegisterFunction -import godot.annotation.RegisterProperty -import godot.annotation.RegisterSignal +import godot.annotation.GodotMember import godot.core.signal1 import godot.core.signal2 @@ -12,33 +10,30 @@ import godot.core.signal2 abstract class AbstractClassInheritanceParent : Node() { @Export - @RegisterProperty var registeredExportedPropertyInParent = false - @RegisterSignal val testNotOverridden by signal1("blubb") - @RegisterSignal open val testOverridden by signal2("blubb", "habbalubb") //---------------- Here to check ------------------ - @RegisterProperty + @GodotMember var closedFunctionHasBeenCalled = false //------------------------------------------------- - @RegisterProperty + @GodotMember var closedVar = 0 - @RegisterProperty + @GodotMember open var openVar = 0 - @RegisterFunction + @GodotMember fun closedFunction() { closedFunctionHasBeenCalled = true } - @RegisterFunction + @GodotMember abstract fun openFunction() } diff --git a/harness/tests/src/main/kotlin/godot/tests/inheritance/ClassInheritanceChild.kt b/harness/tests/src/main/kotlin/godot/tests/inheritance/ClassInheritanceChild.kt index c7822adfcc..5d837bdf94 100644 --- a/harness/tests/src/main/kotlin/godot/tests/inheritance/ClassInheritanceChild.kt +++ b/harness/tests/src/main/kotlin/godot/tests/inheritance/ClassInheritanceChild.kt @@ -1,33 +1,30 @@ package godot.tests.inheritance -import godot.annotation.RegisterClass -import godot.annotation.RegisterFunction -import godot.annotation.RegisterProperty -import godot.annotation.RegisterSignal +import godot.annotation.GodotMember +import godot.annotation.GodotScript import godot.core.signal2 import godot.global.GD -@RegisterClass +@GodotScript class ClassInheritanceChild : ClassInheritanceParent() { - @RegisterSignal override val testOverridden by signal2("blubb", "habbalubbb") //---------------- Here to check ------------------ - @RegisterProperty + @GodotMember var childOpenFunctionHasBeenCalled = false //------------------------------------------------- override var openVar: Int = 100 - @RegisterFunction + @GodotMember override fun openFunction() { childOpenFunctionHasBeenCalled = true } - @RegisterFunction + @GodotMember override fun _notification() = godotNotification { GD.print("Called ClassInheritanceChild::_notification on $this with $it") notificationCallBitFlag += notificationCallBitFlag or 2 diff --git a/harness/tests/src/main/kotlin/godot/tests/inheritance/ClassInheritanceParent.kt b/harness/tests/src/main/kotlin/godot/tests/inheritance/ClassInheritanceParent.kt index 0480fd4506..c04de81f6e 100644 --- a/harness/tests/src/main/kotlin/godot/tests/inheritance/ClassInheritanceParent.kt +++ b/harness/tests/src/main/kotlin/godot/tests/inheritance/ClassInheritanceParent.kt @@ -1,54 +1,49 @@ package godot.tests.inheritance import godot.Node -import godot.annotation.RegisterClass -import godot.annotation.RegisterFunction -import godot.annotation.RegisterProperty -import godot.annotation.RegisterSignal +import godot.annotation.GodotMember +import godot.annotation.GodotScript import godot.core.GodotNotification import godot.core.signal1 import godot.core.signal2 import godot.global.GD -@RegisterClass +@GodotScript open class ClassInheritanceParent : Node() { - @RegisterSignal val testNotOverridden by signal1("blubb") - @RegisterSignal open val testOverridden by signal2("blubb", "habbalubb") //---------------- Here to check ------------------ - @RegisterProperty + @GodotMember var closedFunctionHasBeenCalled = false - @RegisterProperty + @GodotMember var parentOpenFunctionHasBeenCalled = false //------------------------------------------------- - @RegisterProperty + @GodotMember var closedVar = 0 - @RegisterProperty + @GodotMember open var openVar = 0 - @RegisterFunction + @GodotMember fun closedFunction() { closedFunctionHasBeenCalled = true } - @RegisterFunction + @GodotMember open fun openFunction() { parentOpenFunctionHasBeenCalled = true } - @RegisterProperty + @GodotMember var notificationCallBitFlag = 0 - @RegisterFunction override fun _notification(): GodotNotification = godotNotification { GD.print("Called ClassInheritanceParent::_notification on $this with $it") notificationCallBitFlag = notificationCallBitFlag or 1 diff --git a/harness/tests/src/main/kotlin/godot/tests/instance/NodeInstance.kt b/harness/tests/src/main/kotlin/godot/tests/instance/NodeInstance.kt index 7e3ffc8b08..67301deff0 100644 --- a/harness/tests/src/main/kotlin/godot/tests/instance/NodeInstance.kt +++ b/harness/tests/src/main/kotlin/godot/tests/instance/NodeInstance.kt @@ -1,8 +1,8 @@ package godot.tests.instance import godot.Node -import godot.annotation.RegisterClass +import godot.annotation.GodotScript -@RegisterClass +@GodotScript class NodeInstance : Node() { } diff --git a/harness/tests/src/main/kotlin/godot/tests/instance/ObjectInstance.kt b/harness/tests/src/main/kotlin/godot/tests/instance/ObjectInstance.kt index 7763a1e3d1..b4cfdf9626 100644 --- a/harness/tests/src/main/kotlin/godot/tests/instance/ObjectInstance.kt +++ b/harness/tests/src/main/kotlin/godot/tests/instance/ObjectInstance.kt @@ -1,9 +1,9 @@ package godot.tests.instance import godot.Object -import godot.annotation.RegisterClass +import godot.annotation.GodotScript -@RegisterClass +@GodotScript class ObjectInstance : Object() { } diff --git a/harness/tests/src/main/kotlin/godot/tests/instance/RefCountedInstance.kt b/harness/tests/src/main/kotlin/godot/tests/instance/RefCountedInstance.kt index cf7c480ed9..bb054328a7 100644 --- a/harness/tests/src/main/kotlin/godot/tests/instance/RefCountedInstance.kt +++ b/harness/tests/src/main/kotlin/godot/tests/instance/RefCountedInstance.kt @@ -1,8 +1,8 @@ package godot.tests.instance import godot.RefCounted -import godot.annotation.RegisterClass +import godot.annotation.GodotScript -@RegisterClass +@GodotScript class RefCountedInstance : RefCounted() { } diff --git a/harness/tests/src/main/kotlin/godot/tests/packedarray/PackedArrayTest.kt b/harness/tests/src/main/kotlin/godot/tests/packedarray/PackedArrayTest.kt index 2989c29763..0f5e276b24 100644 --- a/harness/tests/src/main/kotlin/godot/tests/packedarray/PackedArrayTest.kt +++ b/harness/tests/src/main/kotlin/godot/tests/packedarray/PackedArrayTest.kt @@ -1,72 +1,72 @@ package godot.tests.packedarray import godot.Node -import godot.annotation.RegisterClass -import godot.annotation.RegisterFunction +import godot.annotation.GodotMember +import godot.annotation.GodotScript import godot.core.PackedByteArray import godot.core.PackedFloat32Array import godot.core.PackedFloat64Array import godot.core.PackedInt32Array import godot.core.PackedInt64Array -@RegisterClass +@GodotScript class PackedArrayTest : Node() { - @RegisterFunction + @GodotMember fun convertByteArray() : PackedByteArray { val arr = byteArrayOf(0, 1, 2, 4, 8, 16, 32, 64, 127) return PackedByteArray(arr); } - @RegisterFunction + @GodotMember fun convertIntArray() : PackedInt32Array { val arr = intArrayOf(0, 1, 2, 4, 8, 16, 32, 64, 127) return PackedInt32Array(arr); } - @RegisterFunction + @GodotMember fun convertLongArray() : PackedInt64Array { val arr = longArrayOf(0L, 1L, 2L, 4L, 8L, 16L, 32L, 64L, 127L) return PackedInt64Array(arr); } - @RegisterFunction + @GodotMember fun convertFloatArray() : PackedFloat32Array { val arr = floatArrayOf(0f, 1f, 2f, 4f, 8f, 16f, 32f, 64f, 127f) return PackedFloat32Array(arr); } - @RegisterFunction + @GodotMember fun convertDoubleArray() : PackedFloat64Array { val arr = doubleArrayOf(0.0, 1.0, 2.0, 4.0, 8.0, 16.0, 32.0, 64.0, 127.0) return PackedFloat64Array(arr); } - @RegisterFunction + @GodotMember fun getByteArrayValue(arr: PackedByteArray, index: Int) : Byte { val kotlinArr = arr.toByteArray() return kotlinArr[index]; } - @RegisterFunction + @GodotMember fun getIntArrayValue(arr: PackedInt32Array, index: Int) : Int { val kotlinArr = arr.toIntArray() return kotlinArr[index]; } - @RegisterFunction + @GodotMember fun getLongArrayValue(arr: PackedInt64Array, index: Int) : Long { val kotlinArr = arr.toLongArray() return kotlinArr[index]; } - @RegisterFunction + @GodotMember fun getFloatArrayValue(arr: PackedFloat32Array, index: Int) : Float { val kotlinArr = arr.toFloatArray() return kotlinArr[index]; } - @RegisterFunction + @GodotMember fun getDoubleArrayValue(arr: PackedFloat64Array, index: Int) : Double { val kotlinArr = arr.toDoubleArray() return kotlinArr[index]; diff --git a/harness/tests/src/main/kotlin/godot/tests/reflection/BaseReflectionTest.kt b/harness/tests/src/main/kotlin/godot/tests/reflection/BaseReflectionTest.kt index df5ff0436c..5163bea9f3 100644 --- a/harness/tests/src/main/kotlin/godot/tests/reflection/BaseReflectionTest.kt +++ b/harness/tests/src/main/kotlin/godot/tests/reflection/BaseReflectionTest.kt @@ -1,15 +1,15 @@ package godot.tests.reflection import godot.Node -import godot.annotation.RegisterClass -import godot.annotation.RegisterFunction +import godot.annotation.GodotMember +import godot.annotation.GodotScript import kotlin.reflect.full.hasAnnotation -@RegisterClass +@GodotScript class BaseReflectionTest: Node() { - @RegisterFunction + @GodotMember fun hasRegisterClassAnnotation(): Boolean { - return BaseReflectionTest::class.hasAnnotation() + return BaseReflectionTest::class.hasAnnotation() } } diff --git a/harness/tests/src/main/kotlin/godot/tests/reflection/GH571_ReflectionTest.kt b/harness/tests/src/main/kotlin/godot/tests/reflection/GH571_ReflectionTest.kt index dd090823b1..b333122956 100644 --- a/harness/tests/src/main/kotlin/godot/tests/reflection/GH571_ReflectionTest.kt +++ b/harness/tests/src/main/kotlin/godot/tests/reflection/GH571_ReflectionTest.kt @@ -3,12 +3,12 @@ package godot.tests.reflection import com.fasterxml.jackson.core.type.TypeReference import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper import godot.Node -import godot.annotation.RegisterClass -import godot.annotation.RegisterFunction +import godot.annotation.GodotMember +import godot.annotation.GodotScript @Suppress("ClassName") -@RegisterClass +@GodotScript class GH571_ReflectionTest: Node() { private val testJsonString = """ @@ -23,7 +23,7 @@ class GH571_ReflectionTest: Node() { val data: String, ) - @RegisterFunction + @GodotMember fun deserializeJson(): String { val mapper = jacksonObjectMapper() val testClass = mapper.readValue(testJsonString, object : TypeReference() {}) diff --git a/harness/tests/src/main/kotlin/godot/tests/registration/TypedVariantArrayRegistration.kt b/harness/tests/src/main/kotlin/godot/tests/registration/TypedVariantArrayRegistration.kt index 9451fcceb7..467ea15d59 100644 --- a/harness/tests/src/main/kotlin/godot/tests/registration/TypedVariantArrayRegistration.kt +++ b/harness/tests/src/main/kotlin/godot/tests/registration/TypedVariantArrayRegistration.kt @@ -4,23 +4,19 @@ import godot.Button import godot.Node import godot.Texture import godot.annotation.Export -import godot.annotation.RegisterClass -import godot.annotation.RegisterProperty +import godot.annotation.GodotScript import godot.core.VariantArray import godot.core.variantArrayOf -@RegisterClass +@GodotScript class TypedVariantArrayRegistration: Node() { @Export - @RegisterProperty var intVariantArray: VariantArray = variantArrayOf() @Export - @RegisterProperty var buttonVariantArray: VariantArray