diff --git a/docs/src/doc/index.md b/docs/src/doc/index.md index c70a9034c7..85762bce52 100644 --- a/docs/src/doc/index.md +++ b/docs/src/doc/index.md @@ -43,7 +43,7 @@ The main language supported is Kotlin. We do however support Java experimentally This module relies on a Kotlin *compiler plugin* for registering your classes and members to Godot. As the compiler API from Kotlin is not stable yet, at the moment we can only support specific Kotlin version per release. -The current latest release is compatible with Kotlin version `2.0.0`. +The current latest release is compatible with Kotlin version `2.0.20`. !!! info It is possible to use this module with other Kotlin versions as well but we do not provide any guarantees for it. You find more infos in the [Gradle Plugin configuration](user-guide/advanced/gradle-plugin-configuration.md#disable-build-failure-on-kotlin-version-mismatch) section. 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 90b34768a0..2e62c80fde 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 @@ -46,12 +46,14 @@ import godot.codegen.services.IEnumService import godot.codegen.services.IGenerationService import godot.codegen.traits.CallableTrait import godot.codegen.traits.addKdoc +import godot.codegen.workarounds.sanitizeApiType import godot.tools.common.constants.AS_STRING_NAME_UTIL_FUNCTION import godot.tools.common.constants.CAMEL_TO_SNAKE_CASE_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_BASE_TYPE +import godot.tools.common.constants.GODOT_ERROR import godot.tools.common.constants.GodotKotlinJvmTypes import godot.tools.common.constants.GodotTypes import godot.tools.common.constants.KT_OBJECT @@ -340,8 +342,9 @@ class GenerationService( val companion = TypeSpec.companionObjectBuilder() .addFunction( FunSpec.builder("from") + .returns(ClassName("${godotApiPackage}.${containingClassName ?: ""}", enum.name)) .addParameter("value", Long::class) - .addStatement("return entries.single { it.%N == %N }", "id", "value") + .addStatement("return·entries.single·{·it.%N·==·%N·}", "id", "value") .build() ) .build() @@ -715,9 +718,10 @@ class GenerationService( val kFunctionClassName = ClassName("kotlin.reflect", "KFunction$i") .parameterizedBy(*kFunctionTypeParameters.toTypedArray(), TypeVariableName.invoke("*")) - RpcFunctionMode.values().forEach { rpcFunctionMode -> + RpcFunctionMode.entries.forEach { rpcFunctionMode -> val rpcFunSpec = FunSpec .builder(rpcFunctionMode.functionName) + .returns(GODOT_ERROR) .addModifiers(KModifier.INLINE) if (rpcFunctionMode.hasId) { diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AESContext.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AESContext.kt index 870a406922..2f147b446f 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AESContext.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AESContext.kt @@ -184,7 +184,7 @@ public open class AESContext : RefCounted() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Mode = entries.single { it.id == `value` } } } 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 5b1fbefe1f..2c1584e6d6 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 @@ -544,7 +544,7 @@ public open class AStarGrid2D : RefCounted() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Heuristic = entries.single { it.id == `value` } } } @@ -582,7 +582,7 @@ public open class AStarGrid2D : RefCounted() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): DiagonalMode = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Animation.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Animation.kt index c064f0eba2..1decfb6c30 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Animation.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Animation.kt @@ -938,7 +938,7 @@ public open class Animation : Resource() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): TrackType = entries.single { it.id == `value` } } } @@ -977,7 +977,7 @@ public open class Animation : Resource() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): InterpolationType = entries.single { it.id == `value` } } } @@ -1006,7 +1006,7 @@ public open class Animation : Resource() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): UpdateMode = entries.single { it.id == `value` } } } @@ -1034,7 +1034,7 @@ public open class Animation : Resource() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): LoopMode = entries.single { it.id == `value` } } } @@ -1063,7 +1063,7 @@ public open class Animation : Resource() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): LoopedFlag = entries.single { it.id == `value` } } } @@ -1090,7 +1090,7 @@ public open class Animation : Resource() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): FindMode = entries.single { it.id == `value` } } } 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 9d8b878924..cff00dc1c9 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 @@ -626,7 +626,8 @@ public open class AnimationMixer internal constructor() : Node() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): AnimationCallbackModeProcess = + entries.single { it.id == `value` } } } @@ -651,7 +652,8 @@ public open class AnimationMixer internal constructor() : Node() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): AnimationCallbackModeMethod = + entries.single { it.id == `value` } } } 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 f7f9efee19..9cc52c9d48 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 @@ -359,7 +359,7 @@ public open class AnimationNode : Resource() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): FilterAction = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeAnimation.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeAnimation.kt index e9a21fb14b..83ab47b56c 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeAnimation.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeAnimation.kt @@ -160,7 +160,7 @@ public open class AnimationNodeAnimation : AnimationRootNode() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): PlayMode = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeBlendSpace1D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeBlendSpace1D.kt index a5f590c240..744d133135 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeBlendSpace1D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeBlendSpace1D.kt @@ -216,7 +216,7 @@ public open class AnimationNodeBlendSpace1D : AnimationRootNode() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): BlendMode = entries.single { it.id == `value` } } } 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 b456040456..0d2192f776 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 @@ -374,7 +374,7 @@ public open class AnimationNodeBlendSpace2D : AnimationRootNode() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): BlendMode = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeOneShot.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeOneShot.kt index 87a505745b..7919247890 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeOneShot.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeOneShot.kt @@ -255,7 +255,7 @@ public open class AnimationNodeOneShot : AnimationNodeSync() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): OneShotRequest = entries.single { it.id == `value` } } } @@ -278,7 +278,7 @@ public open class AnimationNodeOneShot : AnimationNodeSync() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): MixMode = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeStateMachine.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeStateMachine.kt index 6f19c24e56..025fde5856 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeStateMachine.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeStateMachine.kt @@ -298,7 +298,7 @@ public open class AnimationNodeStateMachine : AnimationRootNode() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): StateMachineType = entries.single { it.id == `value` } } } 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 6a48b99f68..d11c8ae1b5 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 @@ -221,7 +221,7 @@ public open class AnimationNodeStateMachineTransition : Resource() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): SwitchMode = entries.single { it.id == `value` } } } @@ -249,7 +249,7 @@ public open class AnimationNodeStateMachineTransition : Resource() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): AdvanceMode = entries.single { it.id == `value` } } } 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 37e38d5bc3..315968af3c 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 @@ -506,7 +506,7 @@ public open class AnimationPlayer : AnimationMixer() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): AnimationProcessCallback = entries.single { it.id == `value` } } } @@ -523,7 +523,7 @@ public open class AnimationPlayer : AnimationMixer() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): AnimationMethodCallMode = entries.single { it.id == `value` } } } 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 840631ada6..7e93206ab9 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 @@ -116,7 +116,7 @@ public open class AnimationTree : AnimationMixer() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): AnimationProcessCallback = entries.single { it.id == `value` } } } 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 fa9e0b0e42..0249ebfa3d 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 @@ -529,7 +529,7 @@ public open class Area2D : CollisionObject2D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): SpaceOverride = entries.single { it.id == `value` } } } 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 05cff413f7..d8017a700c 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 @@ -644,7 +644,7 @@ public open class Area3D : CollisionObject3D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): SpaceOverride = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AspectRatioContainer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AspectRatioContainer.kt index 11c16d2609..afd324857a 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AspectRatioContainer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AspectRatioContainer.kt @@ -121,7 +121,7 @@ public open class AspectRatioContainer : Container() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): StretchMode = entries.single { it.id == `value` } } } @@ -148,7 +148,7 @@ public open class AspectRatioContainer : Container() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): AlignmentMode = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectDistortion.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectDistortion.kt index 42b32b73ea..984c9c115a 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectDistortion.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectDistortion.kt @@ -137,7 +137,7 @@ public open class AudioEffectDistortion : AudioEffect() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Mode = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectFilter.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectFilter.kt index ee983e40d7..8906026ca7 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectFilter.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectFilter.kt @@ -98,7 +98,7 @@ public open class AudioEffectFilter : AudioEffect() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): FilterDB = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectPitchShift.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectPitchShift.kt index f8943fd68a..3031fce77a 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectPitchShift.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectPitchShift.kt @@ -119,7 +119,7 @@ public open class AudioEffectPitchShift : AudioEffect() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): FFTSize = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectSpectrumAnalyzer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectSpectrumAnalyzer.kt index 5bc385f97b..ad34c0cf43 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectSpectrumAnalyzer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectSpectrumAnalyzer.kt @@ -117,7 +117,7 @@ public open class AudioEffectSpectrumAnalyzer : AudioEffect() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): FFTSize = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectSpectrumAnalyzerInstance.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectSpectrumAnalyzerInstance.kt index bd7c08f2c5..3b5b368010 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectSpectrumAnalyzerInstance.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectSpectrumAnalyzerInstance.kt @@ -70,7 +70,7 @@ public open class AudioEffectSpectrumAnalyzerInstance internal constructor() : A } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): MagnitudeMode = entries.single { it.id == `value` } } } 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 322787dd52..0581917346 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 @@ -514,7 +514,7 @@ public object AudioServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): SpeakerMode = entries.single { it.id == `value` } } } 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 69fe331474..f5c28405c3 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 @@ -279,7 +279,7 @@ public open class AudioStreamPlayer : Node() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): MixTarget = entries.single { it.id == `value` } } } 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 87405d3531..5e8e163e59 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 @@ -445,7 +445,7 @@ public open class AudioStreamPlayer3D : Node3D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): AttenuationModel = entries.single { it.id == `value` } } } @@ -473,7 +473,7 @@ public open class AudioStreamPlayer3D : Node3D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): DopplerTracking = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamRandomizer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamRandomizer.kt index db5e57cae7..8e78dc2988 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamRandomizer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamRandomizer.kt @@ -182,7 +182,7 @@ public open class AudioStreamRandomizer : AudioStream() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): PlaybackMode = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamWAV.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamWAV.kt index cb54662640..4abc80f293 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamWAV.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamWAV.kt @@ -187,7 +187,7 @@ public open class AudioStreamWAV : AudioStream() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Format = entries.single { it.id == `value` } } } @@ -218,7 +218,7 @@ public open class AudioStreamWAV : AudioStream() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): LoopMode = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/BackBufferCopy.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/BackBufferCopy.kt index 399314ec59..69c0ab22c8 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/BackBufferCopy.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/BackBufferCopy.kt @@ -116,7 +116,7 @@ public open class BackBufferCopy : Node2D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): CopyMode = entries.single { it.id == `value` } } } 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 8dfc7caf04..e7db15db28 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 @@ -284,7 +284,7 @@ public open class BaseButton : Control() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): DrawMode = entries.single { it.id == `value` } } } @@ -307,7 +307,7 @@ public open class BaseButton : Control() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ActionMode = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/BaseMaterial3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/BaseMaterial3D.kt index 55a3fe340c..d46b330fdb 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/BaseMaterial3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/BaseMaterial3D.kt @@ -2213,7 +2213,7 @@ public open class BaseMaterial3D internal constructor() : Material() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): TextureParam = entries.single { it.id == `value` } } } @@ -2276,7 +2276,7 @@ public open class BaseMaterial3D internal constructor() : Material() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): TextureFilter = entries.single { it.id == `value` } } } @@ -2299,7 +2299,7 @@ public open class BaseMaterial3D internal constructor() : Material() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): DetailUV = entries.single { it.id == `value` } } } @@ -2345,7 +2345,7 @@ public open class BaseMaterial3D internal constructor() : Material() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Transparency = entries.single { it.id == `value` } } } @@ -2378,7 +2378,7 @@ public open class BaseMaterial3D internal constructor() : Material() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ShadingMode = entries.single { it.id == `value` } } } @@ -2445,7 +2445,7 @@ public open class BaseMaterial3D internal constructor() : Material() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Feature = entries.single { it.id == `value` } } } @@ -2485,7 +2485,7 @@ public open class BaseMaterial3D internal constructor() : Material() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): BlendMode = entries.single { it.id == `value` } } } @@ -2514,7 +2514,7 @@ public open class BaseMaterial3D internal constructor() : Material() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): AlphaAntiAliasing = entries.single { it.id == `value` } } } @@ -2546,7 +2546,7 @@ public open class BaseMaterial3D internal constructor() : Material() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): DepthDrawMode = entries.single { it.id == `value` } } } @@ -2577,7 +2577,7 @@ public open class BaseMaterial3D internal constructor() : Material() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): CullMode = entries.single { it.id == `value` } } } @@ -2697,7 +2697,7 @@ public open class BaseMaterial3D internal constructor() : Material() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Flags = entries.single { it.id == `value` } } } @@ -2728,7 +2728,7 @@ public open class BaseMaterial3D internal constructor() : Material() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): DiffuseMode = entries.single { it.id == `value` } } } @@ -2755,7 +2755,7 @@ public open class BaseMaterial3D internal constructor() : Material() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): SpecularMode = entries.single { it.id == `value` } } } @@ -2789,7 +2789,7 @@ public open class BaseMaterial3D internal constructor() : Material() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): BillboardMode = entries.single { it.id == `value` } } } @@ -2825,7 +2825,7 @@ public open class BaseMaterial3D internal constructor() : Material() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): TextureChannel = entries.single { it.id == `value` } } } @@ -2848,7 +2848,7 @@ public open class BaseMaterial3D internal constructor() : Material() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): EmissionOperator = entries.single { it.id == `value` } } } @@ -2885,7 +2885,7 @@ public open class BaseMaterial3D internal constructor() : Material() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): DistanceFadeMode = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/BoxContainer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/BoxContainer.kt index 91c93345ea..c703752158 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/BoxContainer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/BoxContainer.kt @@ -95,7 +95,7 @@ public open class BoxContainer : Container() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): AlignmentMode = entries.single { it.id == `value` } } } 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 46544fe472..c2352d44d3 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 @@ -1130,7 +1130,7 @@ public open class CPUParticles2D : Node2D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): DrawOrder = entries.single { it.id == `value` } } } @@ -1204,7 +1204,7 @@ public open class CPUParticles2D : Node2D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Parameter = entries.single { it.id == `value` } } } @@ -1235,7 +1235,7 @@ public open class CPUParticles2D : Node2D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ParticleFlags = entries.single { it.id == `value` } } } @@ -1281,7 +1281,7 @@ public open class CPUParticles2D : Node2D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): EmissionShape = entries.single { it.id == `value` } } } 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 3d178efe52..8acd714774 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 @@ -1331,7 +1331,7 @@ public open class CPUParticles3D : GeometryInstance3D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): DrawOrder = entries.single { it.id == `value` } } } @@ -1405,7 +1405,7 @@ public open class CPUParticles3D : GeometryInstance3D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Parameter = entries.single { it.id == `value` } } } @@ -1436,7 +1436,7 @@ public open class CPUParticles3D : GeometryInstance3D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ParticleFlags = entries.single { it.id == `value` } } } @@ -1486,7 +1486,7 @@ public open class CPUParticles3D : GeometryInstance3D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): EmissionShape = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CSGPolygon3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CSGPolygon3D.kt index 2bad407056..773f8f519a 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CSGPolygon3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CSGPolygon3D.kt @@ -303,7 +303,7 @@ public open class CSGPolygon3D : CSGPrimitive3D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Mode = entries.single { it.id == `value` } } } @@ -332,7 +332,7 @@ public open class CSGPolygon3D : CSGPrimitive3D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): PathRotation = entries.single { it.id == `value` } } } @@ -356,7 +356,7 @@ public open class CSGPolygon3D : CSGPrimitive3D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): PathIntervalType = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CSGShape3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CSGShape3D.kt index 286e2647b8..6ec16a0749 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CSGShape3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CSGShape3D.kt @@ -236,7 +236,7 @@ public open class CSGShape3D internal constructor() : GeometryInstance3D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Operation = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Camera2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Camera2D.kt index dc43298159..bc368b77a7 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Camera2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Camera2D.kt @@ -614,7 +614,7 @@ public open class Camera2D : Node2D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): AnchorMode = entries.single { it.id == `value` } } } @@ -637,7 +637,7 @@ public open class Camera2D : Node2D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Camera2DProcessCallback = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Camera3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Camera3D.kt index c5b5777fee..871059c5cc 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Camera3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Camera3D.kt @@ -563,7 +563,7 @@ public open class Camera3D : Node3D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ProjectionType = entries.single { it.id == `value` } } } @@ -590,7 +590,7 @@ public open class Camera3D : Node3D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): KeepAspect = entries.single { it.id == `value` } } } @@ -624,7 +624,7 @@ public open class Camera3D : Node3D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): DopplerTracking = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CameraFeed.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CameraFeed.kt index fe3603eade..7796710177 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CameraFeed.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CameraFeed.kt @@ -156,7 +156,7 @@ public open class CameraFeed : RefCounted() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): FeedDataType = entries.single { it.id == `value` } } } @@ -183,7 +183,7 @@ public open class CameraFeed : RefCounted() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): FeedPosition = entries.single { it.id == `value` } } } 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 3e0d2a5765..dce8629c4b 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 @@ -119,7 +119,7 @@ public object CameraServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): FeedImage = entries.single { it.id == `value` } } } 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 2fffcd9d49..286d626786 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 @@ -1318,7 +1318,7 @@ public open class CanvasItem internal constructor() : Node() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): TextureFilter = entries.single { it.id == `value` } } } @@ -1353,7 +1353,7 @@ public open class CanvasItem internal constructor() : Node() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): TextureRepeat = entries.single { it.id == `value` } } } @@ -1386,7 +1386,7 @@ public open class CanvasItem internal constructor() : Node() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ClipChildrenMode = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CanvasItemMaterial.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CanvasItemMaterial.kt index 7e471e4dce..61e806395c 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CanvasItemMaterial.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CanvasItemMaterial.kt @@ -157,7 +157,7 @@ public open class CanvasItemMaterial : Material() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): BlendMode = entries.single { it.id == `value` } } } @@ -184,7 +184,7 @@ public open class CanvasItemMaterial : Material() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): LightMode = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CharacterBody2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CharacterBody2D.kt index ad09e52bc9..00219c8851 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CharacterBody2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CharacterBody2D.kt @@ -584,7 +584,7 @@ public open class CharacterBody2D : PhysicsBody2D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): MotionMode = entries.single { it.id == `value` } } } @@ -613,7 +613,7 @@ public open class CharacterBody2D : PhysicsBody2D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): PlatformOnLeave = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CharacterBody3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CharacterBody3D.kt index 0d0182c80d..2ad24b8dc4 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CharacterBody3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CharacterBody3D.kt @@ -579,7 +579,7 @@ public open class CharacterBody3D : PhysicsBody3D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): MotionMode = entries.single { it.id == `value` } } } @@ -608,7 +608,7 @@ public open class CharacterBody3D : PhysicsBody3D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): PlatformOnLeave = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ClockDirection.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ClockDirection.kt index 1133470620..10b81db6f2 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ClockDirection.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ClockDirection.kt @@ -22,6 +22,6 @@ public enum class ClockDirection( } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ClockDirection = entries.single { it.id == `value` } } } 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 0b8461f5fe..18bab017c2 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 @@ -1082,7 +1082,7 @@ public open class CodeEdit : TextEdit() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): CodeCompletionKind = entries.single { it.id == `value` } } } @@ -1120,7 +1120,7 @@ public open class CodeEdit : TextEdit() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): CodeCompletionLocation = entries.single { it.id == `value` } } } 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 193d07900e..9b253d89d7 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 @@ -464,7 +464,7 @@ public open class CollisionObject2D internal constructor() : Node2D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): DisableMode = entries.single { it.id == `value` } } } 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 3788f2c1de..c888a344dd 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 @@ -414,7 +414,7 @@ public open class CollisionObject3D internal constructor() : Node3D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): DisableMode = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CollisionPolygon2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CollisionPolygon2D.kt index a151e28a23..a046c8ef1b 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CollisionPolygon2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CollisionPolygon2D.kt @@ -138,7 +138,7 @@ public open class CollisionPolygon2D : Node2D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): BuildMode = entries.single { it.id == `value` } } } 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 334bd9733f..d31795a6ff 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 @@ -323,7 +323,7 @@ public open class ColorPicker : VBoxContainer() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ColorModeType = entries.single { it.id == `value` } } } @@ -359,7 +359,7 @@ public open class ColorPicker : VBoxContainer() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): PickerShapeType = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ConeTwistJoint3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ConeTwistJoint3D.kt index 495f482720..4bd7f4c526 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ConeTwistJoint3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ConeTwistJoint3D.kt @@ -150,7 +150,7 @@ public open class ConeTwistJoint3D : Joint3D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Param = entries.single { it.id == `value` } } } 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 5381851f17..2874db5c9d 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 @@ -2058,7 +2058,7 @@ public open class Control : CanvasItem() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): FocusMode = entries.single { it.id == `value` } } } @@ -2159,7 +2159,7 @@ public open class Control : CanvasItem() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): CursorShape = entries.single { it.id == `value` } } } @@ -2258,7 +2258,7 @@ public open class Control : CanvasItem() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): LayoutPreset = entries.single { it.id == `value` } } } @@ -2289,7 +2289,7 @@ public open class Control : CanvasItem() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): LayoutPresetMode = entries.single { it.id == `value` } } } @@ -2397,7 +2397,7 @@ public open class Control : CanvasItem() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): MouseFilter = entries.single { it.id == `value` } } } @@ -2427,7 +2427,7 @@ public open class Control : CanvasItem() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): GrowDirection = entries.single { it.id == `value` } } } @@ -2454,7 +2454,7 @@ public open class Control : CanvasItem() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Anchor = entries.single { it.id == `value` } } } @@ -2485,7 +2485,7 @@ public open class Control : CanvasItem() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): LayoutDirection = entries.single { it.id == `value` } } } @@ -2516,7 +2516,7 @@ public open class Control : CanvasItem() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): TextDirection = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Corner.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Corner.kt index 2772d7e234..f53ce725bb 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Corner.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Corner.kt @@ -30,6 +30,6 @@ public enum class Corner( } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Corner = entries.single { it.id == `value` } } } 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 1b5e7a749b..75c353e557 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 @@ -288,7 +288,7 @@ public open class Curve : Resource() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): TangentMode = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CurveTexture.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CurveTexture.kt index e23f387675..31c20503ce 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CurveTexture.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CurveTexture.kt @@ -95,7 +95,7 @@ public open class CurveTexture : Texture2D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): TextureMode = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Decal.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Decal.kt index 593dce40e8..e1052ab606 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Decal.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Decal.kt @@ -415,7 +415,7 @@ public open class Decal : VisualInstance3D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): DecalTexture = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/DirectionalLight3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/DirectionalLight3D.kt index 5aafbcbe15..9a857aaab7 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/DirectionalLight3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/DirectionalLight3D.kt @@ -102,7 +102,7 @@ public open class DirectionalLight3D : Light3D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ShadowMode = entries.single { it.id == `value` } } } @@ -133,7 +133,7 @@ public open class DirectionalLight3D : Light3D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): SkyMode = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/DisplayServer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/DisplayServer.kt index 2c57394448..0a645b174e 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/DisplayServer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/DisplayServer.kt @@ -2713,7 +2713,7 @@ public object DisplayServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Feature = entries.single { it.id == `value` } } } @@ -2751,7 +2751,7 @@ public object DisplayServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): MouseMode = entries.single { it.id == `value` } } } @@ -2794,7 +2794,7 @@ public object DisplayServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ScreenOrientation = entries.single { it.id == `value` } } } @@ -2844,7 +2844,7 @@ public object DisplayServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): VirtualKeyboardType = entries.single { it.id == `value` } } } @@ -2954,7 +2954,7 @@ public object DisplayServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): CursorShape = entries.single { it.id == `value` } } } @@ -2990,7 +2990,7 @@ public object DisplayServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): FileDialogMode = entries.single { it.id == `value` } } } @@ -3051,7 +3051,7 @@ public object DisplayServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): WindowMode = entries.single { it.id == `value` } } } @@ -3117,7 +3117,7 @@ public object DisplayServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): WindowFlags = entries.single { it.id == `value` } } } @@ -3168,7 +3168,7 @@ public object DisplayServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): WindowEvent = entries.single { it.id == `value` } } } @@ -3211,7 +3211,7 @@ public object DisplayServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): VSyncMode = entries.single { it.id == `value` } } } @@ -3257,7 +3257,7 @@ public object DisplayServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): HandleType = entries.single { it.id == `value` } } } @@ -3288,7 +3288,7 @@ public object DisplayServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): TTSUtteranceEvent = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ENetConnection.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ENetConnection.kt index 6ef1314873..b3ded68146 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ENetConnection.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ENetConnection.kt @@ -314,7 +314,7 @@ public open class ENetConnection : RefCounted() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): CompressionMode = entries.single { it.id == `value` } } } @@ -357,7 +357,7 @@ public open class ENetConnection : RefCounted() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): EventType = entries.single { it.id == `value` } } } @@ -388,7 +388,7 @@ public open class ENetConnection : RefCounted() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): HostStatistic = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ENetPacketPeer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ENetPacketPeer.kt index 5422ae3e8d..a65e8a5585 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ENetPacketPeer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ENetPacketPeer.kt @@ -270,7 +270,7 @@ public open class ENetPacketPeer internal constructor() : PacketPeer() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): PeerState = entries.single { it.id == `value` } } } @@ -349,7 +349,7 @@ public open class ENetPacketPeer internal constructor() : PacketPeer() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): PeerStatistic = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Environment.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Environment.kt index 5acd98b4c4..fb9731df7a 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Environment.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Environment.kt @@ -1754,7 +1754,7 @@ public open class Environment : Resource() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): BGMode = entries.single { it.id == `value` } } } @@ -1786,7 +1786,7 @@ public open class Environment : Resource() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): AmbientSource = entries.single { it.id == `value` } } } @@ -1813,7 +1813,7 @@ public open class Environment : Resource() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ReflectionSource = entries.single { it.id == `value` } } } @@ -1852,7 +1852,7 @@ public open class Environment : Resource() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ToneMapper = entries.single { it.id == `value` } } } @@ -1892,7 +1892,7 @@ public open class Environment : Resource() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): GlowBlendMode = entries.single { it.id == `value` } } } @@ -1949,7 +1949,7 @@ public open class Environment : Resource() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): SDFGIYScale = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Error.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Error.kt index f423241a10..87349ec944 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Error.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Error.kt @@ -226,6 +226,6 @@ public enum class Error( } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Error = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/EulerOrder.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/EulerOrder.kt index f59eff878f..f457234a9d 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/EulerOrder.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/EulerOrder.kt @@ -44,6 +44,6 @@ public enum class EulerOrder( } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): EulerOrder = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/FastNoiseLite.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/FastNoiseLite.kt index e194d2bc90..482026c770 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/FastNoiseLite.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/FastNoiseLite.kt @@ -411,7 +411,7 @@ public open class FastNoiseLite : Noise() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): NoiseType = entries.single { it.id == `value` } } } @@ -442,7 +442,7 @@ public open class FastNoiseLite : Noise() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): FractalType = entries.single { it.id == `value` } } } @@ -473,7 +473,7 @@ public open class FastNoiseLite : Noise() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): CellularDistanceFunction = entries.single { it.id == `value` } } } @@ -519,7 +519,7 @@ public open class FastNoiseLite : Noise() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): CellularReturnType = entries.single { it.id == `value` } } } @@ -547,7 +547,7 @@ public open class FastNoiseLite : Noise() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): DomainWarpType = entries.single { it.id == `value` } } } @@ -575,7 +575,7 @@ public open class FastNoiseLite : Noise() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): DomainWarpFractalType = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/FileAccess.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/FileAccess.kt index e88dfb142c..33a44e6436 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/FileAccess.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/FileAccess.kt @@ -601,7 +601,7 @@ public open class FileAccess internal constructor() : RefCounted() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ModeFlags = entries.single { it.id == `value` } } } @@ -637,7 +637,7 @@ public open class FileAccess internal constructor() : RefCounted() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): CompressionMode = entries.single { it.id == `value` } } } 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 fe5f5abbfd..aeb8d45bd9 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 @@ -399,7 +399,7 @@ public open class FileDialog : ConfirmationDialog() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): FileMode = entries.single { it.id == `value` } } } @@ -426,7 +426,7 @@ public open class FileDialog : ConfirmationDialog() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Access = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/FlowContainer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/FlowContainer.kt index 0f0f80048b..c44125d025 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/FlowContainer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/FlowContainer.kt @@ -127,7 +127,7 @@ public open class FlowContainer : Container() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): AlignmentMode = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/GDExtension.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/GDExtension.kt index 407990d624..847feccfc0 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/GDExtension.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/GDExtension.kt @@ -80,7 +80,7 @@ public open class GDExtension : Resource() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): InitializationLevel = entries.single { it.id == `value` } } } 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 d846f92200..7d882988c7 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 @@ -135,7 +135,7 @@ public object GDExtensionManager : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): LoadStatus = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFDocument.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFDocument.kt index ec6f4f31b4..0cdadd39c5 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFDocument.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFDocument.kt @@ -214,7 +214,7 @@ public open class GLTFDocument : Resource() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): RootNodeMode = entries.single { it.id == `value` } } } 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 577f305667..7d9033644a 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 @@ -556,7 +556,7 @@ public open class GPUParticles2D : Node2D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): DrawOrder = entries.single { it.id == `value` } } } @@ -592,7 +592,7 @@ public open class GPUParticles2D : Node2D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): EmitFlags = entries.single { it.id == `value` } } } 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 643f5e1599..3b4d988788 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 @@ -606,7 +606,7 @@ public open class GPUParticles3D : GeometryInstance3D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): DrawOrder = entries.single { it.id == `value` } } } @@ -642,7 +642,7 @@ public open class GPUParticles3D : GeometryInstance3D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): EmitFlags = entries.single { it.id == `value` } } } @@ -661,7 +661,7 @@ public open class GPUParticles3D : GeometryInstance3D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): TransformAlign = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/GPUParticlesCollisionHeightField3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/GPUParticlesCollisionHeightField3D.kt index 5868323b13..9029891985 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/GPUParticlesCollisionHeightField3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/GPUParticlesCollisionHeightField3D.kt @@ -174,7 +174,7 @@ public open class GPUParticlesCollisionHeightField3D : GPUParticlesCollision3D() } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Resolution = entries.single { it.id == `value` } } } @@ -202,7 +202,7 @@ public open class GPUParticlesCollisionHeightField3D : GPUParticlesCollision3D() } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): UpdateMode = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/GPUParticlesCollisionSDF3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/GPUParticlesCollisionSDF3D.kt index d66da1fdcb..05d4cc61c6 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/GPUParticlesCollisionSDF3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/GPUParticlesCollisionSDF3D.kt @@ -218,7 +218,7 @@ public open class GPUParticlesCollisionSDF3D : GPUParticlesCollision3D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Resolution = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Generic6DOFJoint3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Generic6DOFJoint3D.kt index 883b8be8f2..b5b3d2dd7c 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Generic6DOFJoint3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Generic6DOFJoint3D.kt @@ -187,7 +187,7 @@ public open class Generic6DOFJoint3D : Joint3D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Param = entries.single { it.id == `value` } } } @@ -224,7 +224,7 @@ public open class Generic6DOFJoint3D : Joint3D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Flag = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Geometry2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Geometry2D.kt index 9db8fe5a77..1acfe3061e 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Geometry2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Geometry2D.kt @@ -416,7 +416,7 @@ public object Geometry2D : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): PolyBooleanOperation = entries.single { it.id == `value` } } } @@ -446,7 +446,7 @@ public object Geometry2D : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): PolyJoinType = entries.single { it.id == `value` } } } @@ -481,7 +481,7 @@ public object Geometry2D : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): PolyEndType = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/GeometryInstance3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/GeometryInstance3D.kt index 29225c2707..f075a39c92 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/GeometryInstance3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/GeometryInstance3D.kt @@ -394,7 +394,7 @@ public open class GeometryInstance3D : VisualInstance3D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ShadowCastingSetting = entries.single { it.id == `value` } } } @@ -429,7 +429,7 @@ public open class GeometryInstance3D : VisualInstance3D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): GIMode = entries.single { it.id == `value` } } } @@ -467,7 +467,7 @@ public open class GeometryInstance3D : VisualInstance3D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): LightmapScale = entries.single { it.id == `value` } } } @@ -508,7 +508,7 @@ public open class GeometryInstance3D : VisualInstance3D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): VisibilityRangeFadeMode = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Gradient.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Gradient.kt index 80c0138704..b89f7977f8 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Gradient.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Gradient.kt @@ -205,7 +205,7 @@ public open class Gradient : Resource() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): InterpolationMode = entries.single { it.id == `value` } } } @@ -233,7 +233,7 @@ public open class Gradient : Resource() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ColorSpace = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/GradientTexture2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/GradientTexture2D.kt index 0c76edd661..e6e70423a1 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/GradientTexture2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/GradientTexture2D.kt @@ -226,7 +226,7 @@ public open class GradientTexture2D : Texture2D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Fill = entries.single { it.id == `value` } } } @@ -255,7 +255,7 @@ public open class GradientTexture2D : Texture2D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Repeat = entries.single { it.id == `value` } } } 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 b7a4df902b..732fe974d2 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 @@ -929,7 +929,7 @@ public open class GraphEdit : Control() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): PanningScheme = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/HTTPClient.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/HTTPClient.kt index 2477f1ba64..50f7782b15 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/HTTPClient.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/HTTPClient.kt @@ -424,7 +424,7 @@ public open class HTTPClient : RefCounted() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Method = entries.single { it.id == `value` } } } @@ -479,7 +479,7 @@ public open class HTTPClient : RefCounted() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Status = entries.single { it.id == `value` } } } @@ -837,7 +837,7 @@ public open class HTTPClient : RefCounted() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ResponseCode = entries.single { it.id == `value` } } } 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 099ff61c28..ea7e20575d 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 @@ -497,7 +497,7 @@ public open class HTTPRequest : Node() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Result = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/HashingContext.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/HashingContext.kt index 70f2593168..dffd64eb81 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/HashingContext.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/HashingContext.kt @@ -134,7 +134,7 @@ public open class HashingContext : RefCounted() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): HashType = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/HingeJoint3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/HingeJoint3D.kt index c3371fec7e..2691b0ab6c 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/HingeJoint3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/HingeJoint3D.kt @@ -113,7 +113,7 @@ public open class HingeJoint3D : Joint3D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Param = entries.single { it.id == `value` } } } @@ -141,7 +141,7 @@ public open class HingeJoint3D : Joint3D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Flag = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/HorizontalAlignment.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/HorizontalAlignment.kt index d9e77be271..03cf7a10d1 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/HorizontalAlignment.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/HorizontalAlignment.kt @@ -30,6 +30,6 @@ public enum class HorizontalAlignment( } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): HorizontalAlignment = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/IP.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/IP.kt index 790aaff344..f0b7bc8270 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/IP.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/IP.kt @@ -187,7 +187,7 @@ public object IP : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ResolverStatus = entries.single { it.id == `value` } } } @@ -218,7 +218,7 @@ public object IP : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Type = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Image.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Image.kt index e9489fd523..92ba2f3983 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Image.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Image.kt @@ -1085,7 +1085,7 @@ public open class Image : Resource() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Format = entries.single { it.id == `value` } } } @@ -1133,7 +1133,7 @@ public open class Image : Resource() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Interpolation = entries.single { it.id == `value` } } } @@ -1160,7 +1160,7 @@ public open class Image : Resource() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): AlphaMode = entries.single { it.id == `value` } } } @@ -1199,7 +1199,7 @@ public open class Image : Resource() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): CompressMode = entries.single { it.id == `value` } } } @@ -1238,7 +1238,7 @@ public open class Image : Resource() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): UsedChannels = entries.single { it.id == `value` } } } @@ -1266,7 +1266,7 @@ public open class Image : Resource() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): CompressSource = entries.single { it.id == `value` } } } @@ -1289,7 +1289,7 @@ public open class Image : Resource() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ASTCFormat = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/InlineAlignment.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/InlineAlignment.kt index 225811b9b5..0922a74ab9 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/InlineAlignment.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/InlineAlignment.kt @@ -76,6 +76,6 @@ public enum class InlineAlignment( } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): InlineAlignment = entries.single { it.id == `value` } } } 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 1620bd31af..19cae53ebd 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 @@ -750,7 +750,7 @@ public object Input : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): MouseMode = entries.single { it.id == `value` } } } @@ -848,7 +848,7 @@ public object Input : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): CursorShape = entries.single { it.id == `value` } } } 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 74e5c1810f..d4b25cdd62 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 @@ -763,7 +763,7 @@ public open class ItemList : Control() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): IconMode = entries.single { it.id == `value` } } } @@ -786,7 +786,7 @@ public open class ItemList : Control() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): SelectMode = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/JSONRPC.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/JSONRPC.kt index fe62f53105..beca369d17 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/JSONRPC.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/JSONRPC.kt @@ -161,7 +161,7 @@ public open class JSONRPC : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ErrorCode = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/JoyAxis.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/JoyAxis.kt index be8f7dbb2e..327547f7ad 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/JoyAxis.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/JoyAxis.kt @@ -51,6 +51,6 @@ public enum class JoyAxis( } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): JoyAxis = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/JoyButton.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/JoyButton.kt index 1c013769e8..b4f3fb1d62 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/JoyButton.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/JoyButton.kt @@ -120,6 +120,6 @@ public enum class JoyButton( } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): JoyButton = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Key.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Key.kt index 12916a56d7..f45992d32c 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Key.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Key.kt @@ -787,6 +787,6 @@ public enum class Key( } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Key = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Label3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Label3D.kt index 4cc8c2ec8c..1bebf2d5b2 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Label3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Label3D.kt @@ -635,7 +635,7 @@ public open class Label3D : GeometryInstance3D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): DrawFlags = entries.single { it.id == `value` } } } @@ -681,7 +681,7 @@ public open class Label3D : GeometryInstance3D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): AlphaCutMode = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Light2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Light2D.kt index 29c1d2f4d2..0f609d68ed 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Light2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Light2D.kt @@ -349,7 +349,7 @@ public open class Light2D internal constructor() : Node2D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ShadowFilter = entries.single { it.id == `value` } } } @@ -379,7 +379,7 @@ public open class Light2D internal constructor() : Node2D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): BlendMode = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Light3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Light3D.kt index dc82be5f28..94f613b7bd 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Light3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Light3D.kt @@ -619,7 +619,7 @@ public open class Light3D internal constructor() : VisualInstance3D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Param = entries.single { it.id == `value` } } } @@ -659,7 +659,7 @@ public open class Light3D internal constructor() : VisualInstance3D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): BakeMode = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/LightmapGI.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/LightmapGI.kt index 61159f8c9e..40eaef5ce6 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/LightmapGI.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/LightmapGI.kt @@ -434,7 +434,7 @@ public open class LightmapGI : VisualInstance3D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): BakeQuality = entries.single { it.id == `value` } } } @@ -469,7 +469,7 @@ public open class LightmapGI : VisualInstance3D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): GenerateProbes = entries.single { it.id == `value` } } } @@ -539,7 +539,7 @@ public open class LightmapGI : VisualInstance3D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): BakeError = entries.single { it.id == `value` } } } @@ -574,7 +574,7 @@ public open class LightmapGI : VisualInstance3D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): EnvironmentMode = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Line2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Line2D.kt index 9b28a70d38..565bd6e959 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Line2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Line2D.kt @@ -365,7 +365,7 @@ public open class Line2D : Node2D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): LineJointMode = entries.single { it.id == `value` } } } @@ -392,7 +392,7 @@ public open class Line2D : Node2D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): LineCapMode = entries.single { it.id == `value` } } } @@ -422,7 +422,7 @@ public open class Line2D : Node2D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): LineTextureMode = entries.single { it.id == `value` } } } 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 19d9abf342..2644b2d15e 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 @@ -871,7 +871,7 @@ public open class LineEdit : Control() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): MenuItems = entries.single { it.id == `value` } } } @@ -921,7 +921,7 @@ public open class LineEdit : Control() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): VirtualKeyboardType = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/LinkButton.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/LinkButton.kt index 6a6edb36f8..2d70c40e63 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/LinkButton.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/LinkButton.kt @@ -176,7 +176,7 @@ public open class LinkButton : BaseButton() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): UnderlineMode = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/MIDIMessage.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/MIDIMessage.kt index f3d73c43f0..20c2d1375a 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/MIDIMessage.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/MIDIMessage.kt @@ -110,6 +110,6 @@ public enum class MIDIMessage( } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): MIDIMessage = entries.single { it.id == `value` } } } 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 ad2e1ad31f..783a9da87b 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 @@ -348,7 +348,7 @@ public open class Mesh : Resource() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): PrimitiveType = entries.single { it.id == `value` } } } @@ -444,7 +444,7 @@ public open class Mesh : Resource() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ArrayType = entries.single { it.id == `value` } } } @@ -502,7 +502,7 @@ public open class Mesh : Resource() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ArrayCustomFormat = entries.single { it.id == `value` } } } @@ -639,7 +639,7 @@ public open class Mesh : Resource() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): BlendShapeMode = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/MeshConvexDecompositionSettings.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/MeshConvexDecompositionSettings.kt index 7dc6e60093..003eb6c812 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/MeshConvexDecompositionSettings.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/MeshConvexDecompositionSettings.kt @@ -234,7 +234,7 @@ public open class MeshConvexDecompositionSettings : RefCounted() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Mode = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/MouseButton.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/MouseButton.kt index 3a681d09d3..441db35288 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/MouseButton.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/MouseButton.kt @@ -55,6 +55,6 @@ public enum class MouseButton( } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): MouseButton = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/MultiMesh.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/MultiMesh.kt index f3d88fe76b..7cdf1058b5 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/MultiMesh.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/MultiMesh.kt @@ -306,7 +306,7 @@ public open class MultiMesh : Resource() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): TransformFormat = entries.single { it.id == `value` } } } 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 df3b460607..4fb6529195 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 @@ -239,7 +239,7 @@ public open class MultiplayerAPI internal constructor() : RefCounted() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): RPCMode = entries.single { it.id == `value` } } } 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 ab91dbc0ca..035c6f7330 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 @@ -230,7 +230,7 @@ public open class MultiplayerPeer internal constructor() : PacketPeer() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ConnectionStatus = entries.single { it.id == `value` } } } @@ -266,7 +266,7 @@ public open class MultiplayerPeer internal constructor() : PacketPeer() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): TransferMode = entries.single { it.id == `value` } } } 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 af3e0f0ea9..9c6e6a9d64 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 @@ -228,7 +228,7 @@ public open class MultiplayerSynchronizer : Node() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): VisibilityUpdateMode = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationMesh.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationMesh.kt index 05f780755c..10e3c29d4c 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationMesh.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationMesh.kt @@ -573,7 +573,7 @@ public open class NavigationMesh : Resource() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): SamplePartitionType = entries.single { it.id == `value` } } } @@ -606,7 +606,7 @@ public open class NavigationMesh : Resource() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ParsedGeometryType = entries.single { it.id == `value` } } } @@ -638,7 +638,7 @@ public open class NavigationMesh : Resource() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): SourceGeometryMode = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationPathQueryParameters2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationPathQueryParameters2D.kt index 064a068f0d..be9db69b0c 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationPathQueryParameters2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationPathQueryParameters2D.kt @@ -236,7 +236,7 @@ public open class NavigationPathQueryParameters2D : RefCounted() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): PathfindingAlgorithm = entries.single { it.id == `value` } } } @@ -265,7 +265,7 @@ public open class NavigationPathQueryParameters2D : RefCounted() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): PathPostProcessing = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationPathQueryParameters3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationPathQueryParameters3D.kt index 8807fda9c0..5e90d63645 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationPathQueryParameters3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationPathQueryParameters3D.kt @@ -236,7 +236,7 @@ public open class NavigationPathQueryParameters3D : RefCounted() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): PathfindingAlgorithm = entries.single { it.id == `value` } } } @@ -265,7 +265,7 @@ public open class NavigationPathQueryParameters3D : RefCounted() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): PathPostProcessing = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationPathQueryResult2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationPathQueryResult2D.kt index 425538ece1..44fc454d57 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationPathQueryResult2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationPathQueryResult2D.kt @@ -123,7 +123,7 @@ public open class NavigationPathQueryResult2D : RefCounted() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): PathSegmentType = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationPathQueryResult3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationPathQueryResult3D.kt index 85f2aa45ff..c2388937b1 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationPathQueryResult3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationPathQueryResult3D.kt @@ -123,7 +123,7 @@ public open class NavigationPathQueryResult3D : RefCounted() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): PathSegmentType = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationPolygon.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationPolygon.kt index 96a91511d5..6d78c39ad7 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationPolygon.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationPolygon.kt @@ -466,7 +466,7 @@ public open class NavigationPolygon : Resource() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ParsedGeometryType = entries.single { it.id == `value` } } } @@ -498,7 +498,7 @@ public open class NavigationPolygon : Resource() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): SourceGeometryMode = entries.single { it.id == `value` } } } 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 b01c7ecc5b..b6563a8e26 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 @@ -1534,7 +1534,7 @@ public object NavigationServer3D : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ProcessInfo = entries.single { it.id == `value` } } } 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 5384c276fe..3ad289d42f 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 @@ -237,7 +237,7 @@ public open class NinePatchRect : Control() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): AxisStretchMode = entries.single { it.id == `value` } } } 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 e922d2c2fd..edfe373ead 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 @@ -414,40 +414,40 @@ public open class Node : Object() { return true } - public inline fun > rpc(function: FUNCTION) = + public inline fun > rpc(function: FUNCTION): GodotError = rpc(function.name.camelToSnakeCase().asStringName()) - public inline fun > rpcId(id: Long, function: FUNCTION) = - rpcId(id, function.name.camelToSnakeCase().asStringName()) + public inline fun > rpcId(id: Long, function: FUNCTION): + GodotError = rpcId(id, function.name.camelToSnakeCase().asStringName()) public inline fun > rpc(function: FUNCTION, - arg0: ARG0) = rpc(function.name.camelToSnakeCase().asStringName(), arg0) + arg0: ARG0): GodotError = rpc(function.name.camelToSnakeCase().asStringName(), arg0) public inline fun > rpcId( id: Long, function: FUNCTION, arg0: ARG0, - ) = rpcId(id, function.name.camelToSnakeCase().asStringName(), arg0) + ): GodotError = rpcId(id, function.name.camelToSnakeCase().asStringName(), arg0) public inline fun > rpc( function: FUNCTION, arg0: ARG0, arg1: ARG1, - ) = rpc(function.name.camelToSnakeCase().asStringName(), arg0, arg1) + ): GodotError = rpc(function.name.camelToSnakeCase().asStringName(), arg0, arg1) public inline fun > rpcId( id: Long, function: FUNCTION, arg0: ARG0, arg1: ARG1, - ) = rpcId(id, function.name.camelToSnakeCase().asStringName(), arg0, arg1) + ): GodotError = rpcId(id, function.name.camelToSnakeCase().asStringName(), arg0, arg1) public inline fun > rpc( function: FUNCTION, arg0: ARG0, arg1: ARG1, arg2: ARG2, - ) = rpc(function.name.camelToSnakeCase().asStringName(), arg0, arg1, arg2) + ): GodotError = rpc(function.name.camelToSnakeCase().asStringName(), arg0, arg1, arg2) public inline fun > rpcId( id: Long, @@ -455,7 +455,7 @@ public open class Node : Object() { arg0: ARG0, arg1: ARG1, arg2: ARG2, - ) = rpcId(id, function.name.camelToSnakeCase().asStringName(), arg0, arg1, arg2) + ): GodotError = rpcId(id, function.name.camelToSnakeCase().asStringName(), arg0, arg1, arg2) public inline fun > rpc( @@ -464,7 +464,7 @@ public open class Node : Object() { arg1: ARG1, arg2: ARG2, arg3: ARG3, - ) = rpc(function.name.camelToSnakeCase().asStringName(), arg0, arg1, arg2, arg3) + ): GodotError = rpc(function.name.camelToSnakeCase().asStringName(), arg0, arg1, arg2, arg3) public inline fun > rpcId( @@ -474,7 +474,7 @@ public open class Node : Object() { arg1: ARG1, arg2: ARG2, arg3: ARG3, - ) = rpcId(id, function.name.camelToSnakeCase().asStringName(), arg0, arg1, arg2, arg3) + ): GodotError = rpcId(id, function.name.camelToSnakeCase().asStringName(), arg0, arg1, arg2, arg3) public inline fun > rpc( @@ -484,7 +484,7 @@ public open class Node : Object() { arg2: ARG2, arg3: ARG3, arg4: ARG4, - ) = rpc(function.name.camelToSnakeCase().asStringName(), arg0, arg1, arg2, arg3, arg4) + ): GodotError = rpc(function.name.camelToSnakeCase().asStringName(), arg0, arg1, arg2, arg3, arg4) public inline fun > rpcId( @@ -495,7 +495,8 @@ public open class Node : Object() { arg2: ARG2, arg3: ARG3, arg4: ARG4, - ) = rpcId(id, function.name.camelToSnakeCase().asStringName(), arg0, arg1, arg2, arg3, arg4) + ): GodotError = rpcId(id, function.name.camelToSnakeCase().asStringName(), arg0, arg1, arg2, arg3, + arg4) public inline fun > rpc( @@ -506,7 +507,8 @@ public open class Node : Object() { arg3: ARG3, arg4: ARG4, arg5: ARG5, - ) = rpc(function.name.camelToSnakeCase().asStringName(), arg0, arg1, arg2, arg3, arg4, arg5) + ): GodotError = rpc(function.name.camelToSnakeCase().asStringName(), arg0, arg1, arg2, arg3, arg4, + arg5) public inline fun > rpcId( @@ -518,7 +520,8 @@ public open class Node : Object() { arg3: ARG3, arg4: ARG4, arg5: ARG5, - ) = rpcId(id, function.name.camelToSnakeCase().asStringName(), arg0, arg1, arg2, arg3, arg4, arg5) + ): GodotError = rpcId(id, function.name.camelToSnakeCase().asStringName(), arg0, arg1, arg2, arg3, + arg4, arg5) public inline fun > rpc( @@ -530,7 +533,8 @@ public open class Node : Object() { arg4: ARG4, arg5: ARG5, arg6: ARG6, - ) = rpc(function.name.camelToSnakeCase().asStringName(), arg0, arg1, arg2, arg3, arg4, arg5, arg6) + ): GodotError = rpc(function.name.camelToSnakeCase().asStringName(), arg0, arg1, arg2, arg3, arg4, + arg5, arg6) public inline fun > rpcId( @@ -543,8 +547,8 @@ public open class Node : Object() { arg4: ARG4, arg5: ARG5, arg6: ARG6, - ) = rpcId(id, function.name.camelToSnakeCase().asStringName(), arg0, arg1, arg2, arg3, arg4, arg5, - arg6) + ): GodotError = rpcId(id, function.name.camelToSnakeCase().asStringName(), arg0, arg1, arg2, arg3, + arg4, arg5, arg6) public inline fun > rpc( @@ -557,8 +561,8 @@ public open class Node : Object() { arg5: ARG5, arg6: ARG6, arg7: ARG7, - ) = rpc(function.name.camelToSnakeCase().asStringName(), arg0, arg1, arg2, arg3, arg4, arg5, arg6, - arg7) + ): GodotError = rpc(function.name.camelToSnakeCase().asStringName(), arg0, arg1, arg2, arg3, arg4, + arg5, arg6, arg7) public inline fun > rpcId( @@ -572,8 +576,8 @@ public open class Node : Object() { arg5: ARG5, arg6: ARG6, arg7: ARG7, - ) = rpcId(id, function.name.camelToSnakeCase().asStringName(), arg0, arg1, arg2, arg3, arg4, arg5, - arg6, arg7) + ): GodotError = rpcId(id, function.name.camelToSnakeCase().asStringName(), arg0, arg1, arg2, arg3, + arg4, arg5, arg6, arg7) public inline fun > rpc( @@ -587,8 +591,8 @@ public open class Node : Object() { arg6: ARG6, arg7: ARG7, arg8: ARG8, - ) = rpc(function.name.camelToSnakeCase().asStringName(), arg0, arg1, arg2, arg3, arg4, arg5, arg6, - arg7, arg8) + ): GodotError = rpc(function.name.camelToSnakeCase().asStringName(), arg0, arg1, arg2, arg3, arg4, + arg5, arg6, arg7, arg8) public inline fun > rpcId( @@ -603,8 +607,8 @@ public open class Node : Object() { arg6: ARG6, arg7: ARG7, arg8: ARG8, - ) = rpcId(id, function.name.camelToSnakeCase().asStringName(), arg0, arg1, arg2, arg3, arg4, arg5, - arg6, arg7, arg8) + ): GodotError = rpcId(id, function.name.camelToSnakeCase().asStringName(), arg0, arg1, arg2, arg3, + arg4, arg5, arg6, arg7, arg8) public inline fun > rpc( @@ -619,8 +623,8 @@ public open class Node : Object() { arg7: ARG7, arg8: ARG8, arg9: ARG9, - ) = rpc(function.name.camelToSnakeCase().asStringName(), arg0, arg1, arg2, arg3, arg4, arg5, arg6, - arg7, arg8, arg9) + ): GodotError = rpc(function.name.camelToSnakeCase().asStringName(), arg0, arg1, arg2, arg3, arg4, + arg5, arg6, arg7, arg8, arg9) public inline fun > rpcId( @@ -636,8 +640,8 @@ public open class Node : Object() { arg7: ARG7, arg8: ARG8, arg9: ARG9, - ) = rpcId(id, function.name.camelToSnakeCase().asStringName(), arg0, arg1, arg2, arg3, arg4, arg5, - arg6, arg7, arg8, arg9) + ): GodotError = rpcId(id, function.name.camelToSnakeCase().asStringName(), arg0, arg1, arg2, arg3, + arg4, arg5, arg6, arg7, arg8, arg9) /** * Called during the processing step of the main loop. Processing happens at every frame and as @@ -2071,7 +2075,7 @@ public open class Node : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ProcessMode = entries.single { it.id == `value` } } } @@ -2101,7 +2105,7 @@ public open class Node : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ProcessThreadGroup = entries.single { it.id == `value` } } } @@ -2246,7 +2250,7 @@ public open class Node : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): DuplicateFlags = entries.single { it.id == `value` } } } @@ -2274,7 +2278,7 @@ public open class Node : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): InternalMode = entries.single { it.id == `value` } } } 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 e7480729b6..ed9259305e 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 @@ -1026,7 +1026,7 @@ public open class Node3D : Node() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): RotationEditMode = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/OS.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/OS.kt index 439c79a910..beee5652f4 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/OS.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/OS.kt @@ -1273,7 +1273,7 @@ public object OS : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): RenderingDriver = entries.single { it.id == `value` } } } @@ -1320,7 +1320,7 @@ public object OS : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): SystemDir = entries.single { it.id == `value` } } } 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 942f391e4c..ffb6b15d42 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 @@ -1083,7 +1083,7 @@ public open class Object : KtObject() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ConnectFlags = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/OccluderPolygon2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/OccluderPolygon2D.kt index e6609f34b5..113d59766c 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/OccluderPolygon2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/OccluderPolygon2D.kt @@ -96,7 +96,7 @@ public open class OccluderPolygon2D : Resource() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): CullMode = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/OmniLight3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/OmniLight3D.kt index ce599e27f1..b6941b07ad 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/OmniLight3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/OmniLight3D.kt @@ -72,7 +72,7 @@ public open class OmniLight3D : Light3D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ShadowMode = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRAction.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRAction.kt index d0dcc8f975..dd6393ca1a 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRAction.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRAction.kt @@ -110,7 +110,7 @@ public open class OpenXRAction : Resource() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ActionType = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRHand.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRHand.kt index d51ea9800e..13a651f120 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRHand.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRHand.kt @@ -132,7 +132,7 @@ public open class OpenXRHand : Node3D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Hands = entries.single { it.id == `value` } } } @@ -159,7 +159,7 @@ public open class OpenXRHand : Node3D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): MotionRange = entries.single { it.id == `value` } } } 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 29ddd955f4..46a199ab04 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 @@ -377,7 +377,7 @@ public open class OpenXRInterface : XRInterface() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Hand = entries.single { it.id == `value` } } } @@ -405,7 +405,7 @@ public open class OpenXRInterface : XRInterface() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): HandMotionRange = entries.single { it.id == `value` } } } @@ -561,7 +561,7 @@ public open class OpenXRInterface : XRInterface() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): HandJoints = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Orientation.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Orientation.kt index 95c8d72ed8..0bed75d1df 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Orientation.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Orientation.kt @@ -22,6 +22,6 @@ public enum class Orientation( } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Orientation = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PackedScene.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PackedScene.kt index 7283e0c155..4d2a45996e 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PackedScene.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PackedScene.kt @@ -176,7 +176,7 @@ public open class PackedScene : Resource() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): GenEditState = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PacketPeerDTLS.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PacketPeerDTLS.kt index de433dfa3a..7771a8dfec 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PacketPeerDTLS.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PacketPeerDTLS.kt @@ -116,7 +116,7 @@ public open class PacketPeerDTLS : PacketPeer() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Status = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ParticleProcessMaterial.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ParticleProcessMaterial.kt index 11ed615891..93a198910d 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ParticleProcessMaterial.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ParticleProcessMaterial.kt @@ -2409,7 +2409,7 @@ public open class ParticleProcessMaterial : Material() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Parameter = entries.single { it.id == `value` } } } @@ -2441,7 +2441,7 @@ public open class ParticleProcessMaterial : Material() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ParticleFlags = entries.single { it.id == `value` } } } @@ -2491,7 +2491,7 @@ public open class ParticleProcessMaterial : Material() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): EmissionShape = entries.single { it.id == `value` } } } @@ -2514,7 +2514,7 @@ public open class ParticleProcessMaterial : Material() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): SubEmitterMode = entries.single { it.id == `value` } } } @@ -2547,7 +2547,7 @@ public open class ParticleProcessMaterial : Material() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): CollisionMode = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PathFollow3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PathFollow3D.kt index 5019493fe7..08903a20c5 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PathFollow3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PathFollow3D.kt @@ -209,7 +209,7 @@ public open class PathFollow3D : Node3D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): RotationMode = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Performance.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Performance.kt index b644500e20..623e29d96b 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Performance.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Performance.kt @@ -356,7 +356,7 @@ public object Performance : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Monitor = entries.single { it.id == `value` } } } 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 4fac83a200..9aa1e7067b 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 @@ -473,7 +473,7 @@ public open class PhysicalBone3D : PhysicsBody3D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): DampMode = entries.single { it.id == `value` } } } @@ -494,7 +494,7 @@ public open class PhysicalBone3D : PhysicsBody3D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): JointType = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsServer2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsServer2D.kt index b087b82851..d01ca010b6 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsServer2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsServer2D.kt @@ -1464,7 +1464,7 @@ public object PhysicsServer2D : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): SpaceParameter = entries.single { it.id == `value` } } } @@ -1526,7 +1526,7 @@ public object PhysicsServer2D : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ShapeType = entries.single { it.id == `value` } } } @@ -1598,7 +1598,7 @@ public object PhysicsServer2D : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): AreaParameter = entries.single { it.id == `value` } } } @@ -1638,7 +1638,7 @@ public object PhysicsServer2D : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): AreaSpaceOverrideMode = entries.single { it.id == `value` } } } @@ -1673,7 +1673,7 @@ public object PhysicsServer2D : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): BodyMode = entries.single { it.id == `value` } } } @@ -1748,7 +1748,7 @@ public object PhysicsServer2D : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): BodyParameter = entries.single { it.id == `value` } } } @@ -1771,7 +1771,7 @@ public object PhysicsServer2D : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): BodyDampMode = entries.single { it.id == `value` } } } @@ -1806,7 +1806,7 @@ public object PhysicsServer2D : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): BodyState = entries.single { it.id == `value` } } } @@ -1837,7 +1837,7 @@ public object PhysicsServer2D : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): JointType = entries.single { it.id == `value` } } } @@ -1871,7 +1871,7 @@ public object PhysicsServer2D : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): JointParam = entries.single { it.id == `value` } } } @@ -1903,7 +1903,7 @@ public object PhysicsServer2D : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): PinJointParam = entries.single { it.id == `value` } } } @@ -1926,7 +1926,7 @@ public object PhysicsServer2D : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): PinJointFlag = entries.single { it.id == `value` } } } @@ -1958,7 +1958,7 @@ public object PhysicsServer2D : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): DampedSpringParam = entries.single { it.id == `value` } } } @@ -1988,7 +1988,7 @@ public object PhysicsServer2D : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): CCDMode = entries.single { it.id == `value` } } } @@ -2013,7 +2013,7 @@ public object PhysicsServer2D : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): AreaBodyStatus = entries.single { it.id == `value` } } } @@ -2040,7 +2040,7 @@ public object PhysicsServer2D : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ProcessInfo = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsServer3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsServer3D.kt index 7bb8a9eeec..233b45d070 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsServer3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsServer3D.kt @@ -1758,7 +1758,7 @@ public object PhysicsServer3D : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): JointType = entries.single { it.id == `value` } } } @@ -1788,7 +1788,7 @@ public object PhysicsServer3D : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): PinJointParam = entries.single { it.id == `value` } } } @@ -1833,7 +1833,7 @@ public object PhysicsServer3D : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): HingeJointParam = entries.single { it.id == `value` } } } @@ -1856,7 +1856,7 @@ public object PhysicsServer3D : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): HingeJointFlag = entries.single { it.id == `value` } } } @@ -1966,7 +1966,7 @@ public object PhysicsServer3D : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): SliderJointParam = entries.single { it.id == `value` } } } @@ -2007,7 +2007,7 @@ public object PhysicsServer3D : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ConeTwistJointParam = entries.single { it.id == `value` } } } @@ -2099,7 +2099,7 @@ public object PhysicsServer3D : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): G6DOFJointAxisParam = entries.single { it.id == `value` } } } @@ -2136,7 +2136,7 @@ public object PhysicsServer3D : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): G6DOFJointAxisFlag = entries.single { it.id == `value` } } } @@ -2197,7 +2197,7 @@ public object PhysicsServer3D : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ShapeType = entries.single { it.id == `value` } } } @@ -2282,7 +2282,7 @@ public object PhysicsServer3D : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): AreaParameter = entries.single { it.id == `value` } } } @@ -2322,7 +2322,7 @@ public object PhysicsServer3D : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): AreaSpaceOverrideMode = entries.single { it.id == `value` } } } @@ -2357,7 +2357,7 @@ public object PhysicsServer3D : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): BodyMode = entries.single { it.id == `value` } } } @@ -2416,7 +2416,7 @@ public object PhysicsServer3D : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): BodyParameter = entries.single { it.id == `value` } } } @@ -2439,7 +2439,7 @@ public object PhysicsServer3D : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): BodyDampMode = entries.single { it.id == `value` } } } @@ -2474,7 +2474,7 @@ public object PhysicsServer3D : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): BodyState = entries.single { it.id == `value` } } } @@ -2499,7 +2499,7 @@ public object PhysicsServer3D : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): AreaBodyStatus = entries.single { it.id == `value` } } } @@ -2526,7 +2526,7 @@ public object PhysicsServer3D : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ProcessInfo = entries.single { it.id == `value` } } } @@ -2583,7 +2583,7 @@ public object PhysicsServer3D : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): SpaceParameter = entries.single { it.id == `value` } } } @@ -2604,7 +2604,7 @@ public object PhysicsServer3D : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): BodyAxis = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PinJoint3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PinJoint3D.kt index add629d22a..bad3bffaca 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PinJoint3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PinJoint3D.kt @@ -75,7 +75,7 @@ public open class PinJoint3D : Joint3D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Param = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PlaneMesh.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PlaneMesh.kt index 29f8443de2..33ca0fa114 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PlaneMesh.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PlaneMesh.kt @@ -184,7 +184,7 @@ public open class PlaneMesh : PrimitiveMesh() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Orientation = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PortableCompressedTexture2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PortableCompressedTexture2D.kt index 6c6d5cf5fa..8fe93d2158 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PortableCompressedTexture2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PortableCompressedTexture2D.kt @@ -153,7 +153,7 @@ public open class PortableCompressedTexture2D : Texture2D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): CompressionMode = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ProgressBar.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ProgressBar.kt index a39592e29e..4a6c71a6d6 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ProgressBar.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ProgressBar.kt @@ -118,7 +118,7 @@ public open class ProgressBar : Range() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): FillMode = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PropertyHint.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PropertyHint.kt index 032936aeb7..0a5d3a4819 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PropertyHint.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PropertyHint.kt @@ -292,6 +292,6 @@ public enum class PropertyHint( } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): PropertyHint = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ReflectionProbe.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ReflectionProbe.kt index e23a91c49a..0f306818ce 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ReflectionProbe.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ReflectionProbe.kt @@ -395,7 +395,7 @@ public open class ReflectionProbe : VisualInstance3D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): UpdateMode = entries.single { it.id == `value` } } } @@ -424,7 +424,7 @@ public open class ReflectionProbe : VisualInstance3D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): AmbientMode = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/RenderingDevice.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/RenderingDevice.kt index b34fd46914..735648fb05 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/RenderingDevice.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/RenderingDevice.kt @@ -1463,7 +1463,7 @@ public open class RenderingDevice internal constructor() : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): DeviceType = entries.single { it.id == `value` } } } @@ -1551,7 +1551,7 @@ public open class RenderingDevice internal constructor() : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): DriverResource = entries.single { it.id == `value` } } } @@ -2784,7 +2784,7 @@ public open class RenderingDevice internal constructor() : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): DataFormat = entries.single { it.id == `value` } } } @@ -2905,7 +2905,7 @@ public open class RenderingDevice internal constructor() : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): TextureType = entries.single { it.id == `value` } } } @@ -2953,7 +2953,7 @@ public open class RenderingDevice internal constructor() : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): TextureSamples = entries.single { it.id == `value` } } } @@ -3087,7 +3087,7 @@ public open class RenderingDevice internal constructor() : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): TextureSwizzle = entries.single { it.id == `value` } } } @@ -3114,7 +3114,7 @@ public open class RenderingDevice internal constructor() : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): TextureSliceType = entries.single { it.id == `value` } } } @@ -3139,7 +3139,7 @@ public open class RenderingDevice internal constructor() : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): SamplerFilter = entries.single { it.id == `value` } } } @@ -3184,7 +3184,7 @@ public open class RenderingDevice internal constructor() : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): SamplerRepeatMode = entries.single { it.id == `value` } } } @@ -3233,7 +3233,7 @@ public open class RenderingDevice internal constructor() : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): SamplerBorderColor = entries.single { it.id == `value` } } } @@ -3258,7 +3258,7 @@ public open class RenderingDevice internal constructor() : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): VertexFrequency = entries.single { it.id == `value` } } } @@ -3283,7 +3283,7 @@ public open class RenderingDevice internal constructor() : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): IndexBufferFormat = entries.single { it.id == `value` } } } @@ -3413,7 +3413,7 @@ public open class RenderingDevice internal constructor() : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): UniformType = entries.single { it.id == `value` } } } @@ -3488,7 +3488,7 @@ public open class RenderingDevice internal constructor() : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): RenderPrimitive = entries.single { it.id == `value` } } } @@ -3515,7 +3515,7 @@ public open class RenderingDevice internal constructor() : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): PolygonCullMode = entries.single { it.id == `value` } } } @@ -3538,7 +3538,7 @@ public open class RenderingDevice internal constructor() : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): PolygonFrontFace = entries.single { it.id == `value` } } } @@ -3593,7 +3593,7 @@ public open class RenderingDevice internal constructor() : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): StencilOperation = entries.single { it.id == `value` } } } @@ -3644,7 +3644,7 @@ public open class RenderingDevice internal constructor() : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): CompareOperator = entries.single { it.id == `value` } } } @@ -3731,7 +3731,7 @@ public open class RenderingDevice internal constructor() : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): LogicOperation = entries.single { it.id == `value` } } } @@ -3835,7 +3835,7 @@ public open class RenderingDevice internal constructor() : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): BlendFactor = entries.single { it.id == `value` } } } @@ -3874,7 +3874,7 @@ public open class RenderingDevice internal constructor() : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): BlendOperation = entries.single { it.id == `value` } } } @@ -4008,7 +4008,7 @@ public open class RenderingDevice internal constructor() : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): InitialAction = entries.single { it.id == `value` } } } @@ -4038,7 +4038,7 @@ public open class RenderingDevice internal constructor() : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): FinalAction = entries.single { it.id == `value` } } } @@ -4102,7 +4102,7 @@ public open class RenderingDevice internal constructor() : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ShaderStage = entries.single { it.id == `value` } } } @@ -4127,7 +4127,7 @@ public open class RenderingDevice internal constructor() : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ShaderLanguage = entries.single { it.id == `value` } } } @@ -4154,7 +4154,8 @@ public open class RenderingDevice internal constructor() : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): PipelineSpecializationConstantType = + entries.single { it.id == `value` } } } @@ -4321,7 +4322,7 @@ public open class RenderingDevice internal constructor() : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Limit = entries.single { it.id == `value` } } } @@ -4349,7 +4350,7 @@ public open class RenderingDevice internal constructor() : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): MemoryType = entries.single { it.id == `value` } } } 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 ad284a7898..2043b6a3e8 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 @@ -5600,7 +5600,7 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): TextureLayeredType = entries.single { it.id == `value` } } } @@ -5639,7 +5639,7 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): CubeMapLayer = entries.single { it.id == `value` } } } @@ -5678,7 +5678,7 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ShaderMode = entries.single { it.id == `value` } } } @@ -5749,7 +5749,7 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ArrayType = entries.single { it.id == `value` } } } @@ -5808,7 +5808,7 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ArrayCustomFormat = entries.single { it.id == `value` } } } @@ -5974,7 +5974,7 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): PrimitiveType = entries.single { it.id == `value` } } } @@ -5997,7 +5997,7 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): BlendShapeMode = entries.single { it.id == `value` } } } @@ -6020,7 +6020,7 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): MultimeshTransformFormat = entries.single { it.id == `value` } } } @@ -6075,7 +6075,7 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): LightProjectorFilter = entries.single { it.id == `value` } } } @@ -6102,7 +6102,7 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): LightType = entries.single { it.id == `value` } } } @@ -6217,7 +6217,7 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): LightParam = entries.single { it.id == `value` } } } @@ -6254,7 +6254,7 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): LightBakeMode = entries.single { it.id == `value` } } } @@ -6277,7 +6277,7 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): LightOmniShadowMode = entries.single { it.id == `value` } } } @@ -6304,7 +6304,8 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): LightDirectionalShadowMode = + entries.single { it.id == `value` } } } @@ -6331,7 +6332,7 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): LightDirectionalSkyMode = entries.single { it.id == `value` } } } @@ -6391,7 +6392,7 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ShadowQuality = entries.single { it.id == `value` } } } @@ -6414,7 +6415,8 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ReflectionProbeUpdateMode = + entries.single { it.id == `value` } } } @@ -6443,7 +6445,8 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ReflectionProbeAmbientMode = + entries.single { it.id == `value` } } } @@ -6478,7 +6481,7 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): DecalTexture = entries.single { it.id == `value` } } } @@ -6533,7 +6536,7 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): DecalFilter = entries.single { it.id == `value` } } } @@ -6556,7 +6559,7 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): VoxelGIQuality = entries.single { it.id == `value` } } } @@ -6579,7 +6582,7 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ParticlesMode = entries.single { it.id == `value` } } } @@ -6598,7 +6601,7 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ParticlesTransformAlign = entries.single { it.id == `value` } } } @@ -6631,7 +6634,7 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ParticlesDrawOrder = entries.single { it.id == `value` } } } @@ -6653,7 +6656,7 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ParticlesCollisionType = entries.single { it.id == `value` } } } @@ -6678,7 +6681,8 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ParticlesCollisionHeightfieldResolution = + entries.single { it.id == `value` } } } @@ -6722,7 +6726,7 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): FogVolumeShape = entries.single { it.id == `value` } } } @@ -6762,7 +6766,7 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ViewportScaling3DMode = entries.single { it.id == `value` } } } @@ -6797,7 +6801,7 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ViewportUpdateMode = entries.single { it.id == `value` } } } @@ -6824,7 +6828,7 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ViewportClearMode = entries.single { it.id == `value` } } } @@ -6857,7 +6861,7 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ViewportEnvironmentMode = entries.single { it.id == `value` } } } @@ -6897,7 +6901,7 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ViewportSDFOversize = entries.single { it.id == `value` } } } @@ -6930,7 +6934,7 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ViewportSDFScale = entries.single { it.id == `value` } } } @@ -6969,7 +6973,7 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ViewportMSAA = entries.single { it.id == `value` } } } @@ -6998,7 +7002,7 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ViewportScreenSpaceAA = entries.single { it.id == `value` } } } @@ -7027,7 +7031,8 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ViewportOcclusionCullingBuildQuality = + entries.single { it.id == `value` } } } @@ -7058,7 +7063,7 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ViewportRenderInfo = entries.single { it.id == `value` } } } @@ -7090,7 +7095,7 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ViewportRenderInfoType = entries.single { it.id == `value` } } } @@ -7242,7 +7247,7 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ViewportDebugDraw = entries.single { it.id == `value` } } } @@ -7275,7 +7280,7 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ViewportVRSMode = entries.single { it.id == `value` } } } @@ -7353,7 +7358,7 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): SkyMode = entries.single { it.id == `value` } } } @@ -7472,7 +7477,7 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): EnvironmentBG = entries.single { it.id == `value` } } } @@ -7503,7 +7508,7 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): EnvironmentAmbientSource = entries.single { it.id == `value` } } } @@ -7530,7 +7535,8 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): EnvironmentReflectionSource = + entries.single { it.id == `value` } } } @@ -7570,7 +7576,7 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): EnvironmentGlowBlendMode = entries.single { it.id == `value` } } } @@ -7633,7 +7639,7 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): EnvironmentToneMapper = entries.single { it.id == `value` } } } @@ -7666,7 +7672,8 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): EnvironmentSSRRoughnessQuality = + entries.single { it.id == `value` } } } @@ -7702,7 +7709,7 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): EnvironmentSSAOQuality = entries.single { it.id == `value` } } } @@ -7738,7 +7745,7 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): EnvironmentSSILQuality = entries.single { it.id == `value` } } } @@ -7771,7 +7778,7 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): EnvironmentSDFGIYScale = entries.single { it.id == `value` } } } @@ -7820,7 +7827,7 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): EnvironmentSDFGIRayCount = entries.single { it.id == `value` } } } @@ -7865,7 +7872,8 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): EnvironmentSDFGIFramesToConverge = + entries.single { it.id == `value` } } } @@ -7906,7 +7914,8 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): EnvironmentSDFGIFramesToUpdateLight = + entries.single { it.id == `value` } } } @@ -7938,7 +7947,8 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): SubSurfaceScatteringQuality = + entries.single { it.id == `value` } } } @@ -7968,7 +7978,7 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): DOFBokehShape = entries.single { it.id == `value` } } } @@ -8001,7 +8011,7 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): DOFBlurQuality = entries.single { it.id == `value` } } } @@ -8076,7 +8086,7 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): InstanceType = entries.single { it.id == `value` } } } @@ -8112,7 +8122,7 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): InstanceFlags = entries.single { it.id == `value` } } } @@ -8144,7 +8154,7 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ShadowCastingSetting = entries.single { it.id == `value` } } } @@ -8171,7 +8181,7 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): VisibilityRangeFadeMode = entries.single { it.id == `value` } } } @@ -8211,7 +8221,7 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): BakeChannels = entries.single { it.id == `value` } } } @@ -8238,7 +8248,7 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): CanvasTextureChannel = entries.single { it.id == `value` } } } @@ -8265,7 +8275,7 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): NinePatchAxisMode = entries.single { it.id == `value` } } } @@ -8342,7 +8352,7 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): CanvasItemTextureFilter = entries.single { it.id == `value` } } } @@ -8381,7 +8391,7 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): CanvasItemTextureRepeat = entries.single { it.id == `value` } } } @@ -8411,7 +8421,7 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): CanvasGroupMode = entries.single { it.id == `value` } } } @@ -8434,7 +8444,7 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): CanvasLightMode = entries.single { it.id == `value` } } } @@ -8461,7 +8471,7 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): CanvasLightBlendMode = entries.single { it.id == `value` } } } @@ -8492,7 +8502,7 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): CanvasLightShadowFilter = entries.single { it.id == `value` } } } @@ -8519,7 +8529,8 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): CanvasOccluderPolygonCullMode = + entries.single { it.id == `value` } } } @@ -8663,7 +8674,8 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): GlobalShaderParameterType = + entries.single { it.id == `value` } } } @@ -8710,7 +8722,7 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): RenderingInfo = entries.single { it.id == `value` } } } @@ -8727,7 +8739,7 @@ public object RenderingServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Features = entries.single { it.id == `value` } } } 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 6fd9f522fd..e383611545 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 @@ -175,7 +175,7 @@ public open class ResourceFormatLoader : RefCounted() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): CacheMode = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ResourceImporter.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ResourceImporter.kt index 85510772d4..85a63a9849 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ResourceImporter.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ResourceImporter.kt @@ -44,7 +44,7 @@ public open class ResourceImporter internal constructor() : RefCounted() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ImportOrder = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ResourceLoader.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ResourceLoader.kt index cbef9361d7..0923c95400 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ResourceLoader.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ResourceLoader.kt @@ -242,7 +242,7 @@ public object ResourceLoader : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ThreadLoadStatus = entries.single { it.id == `value` } } } @@ -287,7 +287,7 @@ public object ResourceLoader : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): CacheMode = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/RibbonTrailMesh.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/RibbonTrailMesh.kt index 26518096e9..ec92c62df9 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/RibbonTrailMesh.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/RibbonTrailMesh.kt @@ -142,7 +142,7 @@ public open class RibbonTrailMesh : PrimitiveMesh() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Shape = entries.single { it.id == `value` } } } 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 fdc50b5e56..7c19dc87e2 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 @@ -1280,7 +1280,7 @@ public open class RichTextLabel : Control() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ListType = entries.single { it.id == `value` } } } @@ -1307,7 +1307,7 @@ public open class RichTextLabel : Control() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): MenuItems = entries.single { it.id == `value` } } } 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 729229941a..32e2128d92 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 @@ -756,7 +756,7 @@ public open class RigidBody2D : PhysicsBody2D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): FreezeMode = entries.single { it.id == `value` } } } @@ -781,7 +781,7 @@ public open class RigidBody2D : PhysicsBody2D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): CenterOfMassMode = entries.single { it.id == `value` } } } @@ -805,7 +805,7 @@ public open class RigidBody2D : PhysicsBody2D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): DampMode = entries.single { it.id == `value` } } } @@ -835,7 +835,7 @@ public open class RigidBody2D : PhysicsBody2D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): CCDMode = entries.single { it.id == `value` } } } 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 f1b97ea2d1..d402ce3a86 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 @@ -871,7 +871,7 @@ public open class RigidBody3D : PhysicsBody3D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): FreezeMode = entries.single { it.id == `value` } } } @@ -896,7 +896,7 @@ public open class RigidBody3D : PhysicsBody3D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): CenterOfMassMode = entries.single { it.id == `value` } } } @@ -920,7 +920,7 @@ public open class RigidBody3D : PhysicsBody3D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): DampMode = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/SceneReplicationConfig.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/SceneReplicationConfig.kt index 6f9b2610a8..77a50022df 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/SceneReplicationConfig.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/SceneReplicationConfig.kt @@ -179,7 +179,7 @@ public open class SceneReplicationConfig : Resource() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ReplicationMode = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/SceneState.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/SceneState.kt index 4022d650db..3e65fbea5d 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/SceneState.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/SceneState.kt @@ -281,7 +281,7 @@ public open class SceneState internal constructor() : RefCounted() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): GenEditState = entries.single { it.id == `value` } } } 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 eddc678b49..6ffaa1d731 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 @@ -645,7 +645,7 @@ public open class SceneTree : MainLoop() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): GroupCallFlags = entries.single { it.id == `value` } } } 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 49b6b2dfc3..8751032cd2 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 @@ -314,7 +314,7 @@ public open class ScriptLanguageExtension : ScriptLanguage() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): LookupResultType = entries.single { it.id == `value` } } } @@ -352,7 +352,7 @@ public open class ScriptLanguageExtension : ScriptLanguage() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): CodeCompletionLocation = entries.single { it.id == `value` } } } @@ -378,7 +378,7 @@ public open class ScriptLanguageExtension : ScriptLanguage() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): CodeCompletionKind = entries.single { it.id == `value` } } } 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 3a8309f7be..c7b5f44ad5 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 @@ -252,7 +252,7 @@ public open class ScrollContainer : Container() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ScrollMode = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Shader.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Shader.kt index a432ea8a97..dd03c86a84 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Shader.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Shader.kt @@ -139,7 +139,7 @@ public open class Shader : Resource() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Mode = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Side.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Side.kt index c1ee2892ef..26f8d8f9df 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Side.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Side.kt @@ -30,6 +30,6 @@ public enum class Side( } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Side = entries.single { it.id == `value` } } } 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 29a431b6da..fe089c560a 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 @@ -331,7 +331,7 @@ public open class SkeletonProfile : Resource() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): TailDirection = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Sky.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Sky.kt index d982b3c38c..e0dd152df8 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Sky.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Sky.kt @@ -121,7 +121,7 @@ public open class Sky : Resource() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): RadianceSize = entries.single { it.id == `value` } } } @@ -168,7 +168,7 @@ public open class Sky : Resource() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ProcessMode = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/SliderJoint3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/SliderJoint3D.kt index fc1eb12ab6..cbd2cc0e7e 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/SliderJoint3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/SliderJoint3D.kt @@ -173,7 +173,7 @@ public open class SliderJoint3D : Joint3D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Param = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/SoftBody3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/SoftBody3D.kt index c29408c3cc..c84d3e017e 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/SoftBody3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/SoftBody3D.kt @@ -343,7 +343,7 @@ public open class SoftBody3D : MeshInstance3D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): DisableMode = entries.single { it.id == `value` } } } 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 666dec81db..ccab120b1f 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 @@ -128,7 +128,7 @@ public open class SplitContainer : Container() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): DraggerVisibility = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/SpriteBase3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/SpriteBase3D.kt index 6d36313a20..991821b620 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/SpriteBase3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/SpriteBase3D.kt @@ -461,7 +461,7 @@ public open class SpriteBase3D internal constructor() : GeometryInstance3D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): DrawFlags = entries.single { it.id == `value` } } } @@ -500,7 +500,7 @@ public open class SpriteBase3D internal constructor() : GeometryInstance3D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): AlphaCutMode = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/StreamPeerTCP.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/StreamPeerTCP.kt index f6cfc58158..0b1d386be2 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/StreamPeerTCP.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/StreamPeerTCP.kt @@ -152,7 +152,7 @@ public open class StreamPeerTCP : StreamPeer() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Status = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/StreamPeerTLS.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/StreamPeerTLS.kt index bb828a629e..4c8da8838b 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/StreamPeerTLS.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/StreamPeerTLS.kt @@ -130,7 +130,7 @@ public open class StreamPeerTLS : StreamPeer() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Status = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/StyleBoxTexture.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/StyleBoxTexture.kt index 492f135e6a..47ff1ca7d2 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/StyleBoxTexture.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/StyleBoxTexture.kt @@ -352,7 +352,7 @@ public open class StyleBoxTexture : StyleBox() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): AxisStretchMode = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/SubViewport.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/SubViewport.kt index 49ea7ff941..f50577478d 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/SubViewport.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/SubViewport.kt @@ -189,7 +189,7 @@ public open class SubViewport : Viewport() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ClearMode = entries.single { it.id == `value` } } } @@ -224,7 +224,7 @@ public open class SubViewport : Viewport() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): UpdateMode = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/SurfaceTool.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/SurfaceTool.kt index 91437899ad..95fb7ff8b9 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/SurfaceTool.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/SurfaceTool.kt @@ -489,7 +489,7 @@ public open class SurfaceTool : RefCounted() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): CustomFormat = entries.single { it.id == `value` } } } @@ -512,7 +512,7 @@ public open class SurfaceTool : RefCounted() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): SkinWeightCount = entries.single { it.id == `value` } } } 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 9a00bc6604..f463475ceb 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 @@ -583,7 +583,7 @@ public open class TabBar : Control() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): AlignmentMode = entries.single { it.id == `value` } } } @@ -614,7 +614,7 @@ public open class TabBar : Control() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): CloseButtonDisplayPolicy = entries.single { it.id == `value` } } } 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 cca31e3d8d..21017775c7 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 @@ -2478,7 +2478,7 @@ public open class TextEdit : Control() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): MenuItems = entries.single { it.id == `value` } } } @@ -2509,7 +2509,7 @@ public open class TextEdit : Control() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): EditAction = entries.single { it.id == `value` } } } @@ -2536,7 +2536,7 @@ public open class TextEdit : Control() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): SearchFlags = entries.single { it.id == `value` } } } @@ -2559,7 +2559,7 @@ public open class TextEdit : Control() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): CaretType = entries.single { it.id == `value` } } } @@ -2594,7 +2594,7 @@ public open class TextEdit : Control() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): SelectionMode = entries.single { it.id == `value` } } } @@ -2617,7 +2617,7 @@ public open class TextEdit : Control() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): LineWrappingMode = entries.single { it.id == `value` } } } @@ -2647,7 +2647,7 @@ public open class TextEdit : Control() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): GutterType = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/TextServer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/TextServer.kt index fd7a758edb..3cc8ff9756 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/TextServer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/TextServer.kt @@ -2403,7 +2403,7 @@ public open class TextServer internal constructor() : RefCounted() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): FontAntialiasing = entries.single { it.id == `value` } } } @@ -2442,7 +2442,7 @@ public open class TextServer internal constructor() : RefCounted() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): FontLCDSubpixelLayout = entries.single { it.id == `value` } } } @@ -2474,7 +2474,7 @@ public open class TextServer internal constructor() : RefCounted() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Direction = entries.single { it.id == `value` } } } @@ -2498,7 +2498,7 @@ public open class TextServer internal constructor() : RefCounted() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Orientation = entries.single { it.id == `value` } } } @@ -2619,7 +2619,7 @@ public open class TextServer internal constructor() : RefCounted() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): AutowrapMode = entries.single { it.id == `value` } } } @@ -2735,7 +2735,8 @@ public open class TextServer internal constructor() : RefCounted() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): VisibleCharactersBehavior = + entries.single { it.id == `value` } } } @@ -2770,7 +2771,7 @@ public open class TextServer internal constructor() : RefCounted() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): OverrunBehavior = entries.single { it.id == `value` } } } @@ -2966,7 +2967,7 @@ public open class TextServer internal constructor() : RefCounted() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Hinting = entries.single { it.id == `value` } } } @@ -3014,7 +3015,7 @@ public open class TextServer internal constructor() : RefCounted() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): SubpixelPositioning = entries.single { it.id == `value` } } } @@ -3091,7 +3092,7 @@ public open class TextServer internal constructor() : RefCounted() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Feature = entries.single { it.id == `value` } } } @@ -3119,7 +3120,7 @@ public open class TextServer internal constructor() : RefCounted() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ContourPointTag = entries.single { it.id == `value` } } } @@ -3154,7 +3155,7 @@ public open class TextServer internal constructor() : RefCounted() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): SpacingType = entries.single { it.id == `value` } } } @@ -3258,7 +3259,7 @@ public open class TextServer internal constructor() : RefCounted() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): StructuredTextParser = entries.single { it.id == `value` } } } @@ -3287,7 +3288,7 @@ public open class TextServer internal constructor() : RefCounted() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): FixedSizeScaleMode = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/TextureButton.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/TextureButton.kt index 151e8d8ee4..8bd323e4d6 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/TextureButton.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/TextureButton.kt @@ -225,7 +225,7 @@ public open class TextureButton : BaseButton() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): StretchMode = entries.single { it.id == `value` } } } 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 2504c9879b..605154218d 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 @@ -171,7 +171,7 @@ public open class TextureLayered : Texture() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): LayeredType = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/TextureProgressBar.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/TextureProgressBar.kt index fff4f8b813..d0e2bce967 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/TextureProgressBar.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/TextureProgressBar.kt @@ -464,7 +464,7 @@ public open class TextureProgressBar : Range() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): FillMode = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/TextureRect.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/TextureRect.kt index a651aad647..a80aeb61f8 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/TextureRect.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/TextureRect.kt @@ -141,7 +141,7 @@ public open class TextureRect : Control() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ExpandMode = entries.single { it.id == `value` } } } @@ -187,7 +187,7 @@ public open class TextureRect : Control() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): StretchMode = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Theme.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Theme.kt index 18ba931714..5c4ee98e3d 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Theme.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Theme.kt @@ -847,7 +847,7 @@ public open class Theme : Resource() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): DataType = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Thread.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Thread.kt index bfca8f20b0..76f0f3904c 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Thread.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Thread.kt @@ -127,7 +127,7 @@ public open class Thread : RefCounted() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Priority = entries.single { it.id == `value` } } } 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 923c9198b0..de0abe7dfc 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 @@ -785,7 +785,7 @@ public open class TileMap : Node2D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): VisibilityMode = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/TileSet.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/TileSet.kt index 55584f0f9c..53d9ad1338 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/TileSet.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/TileSet.kt @@ -939,7 +939,7 @@ public open class TileSet : Resource() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): TileShape = entries.single { it.id == `value` } } } @@ -983,7 +983,7 @@ public open class TileSet : Resource() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): TileLayout = entries.single { it.id == `value` } } } @@ -1006,7 +1006,7 @@ public open class TileSet : Resource() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): TileOffsetAxis = entries.single { it.id == `value` } } } @@ -1085,7 +1085,7 @@ public open class TileSet : Resource() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): CellNeighbor = entries.single { it.id == `value` } } } @@ -1112,7 +1112,7 @@ public open class TileSet : Resource() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): TerrainMode = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/TileSetAtlasSource.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/TileSetAtlasSource.kt index 14f94c17ff..78a42f58d4 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/TileSetAtlasSource.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/TileSetAtlasSource.kt @@ -558,7 +558,7 @@ public open class TileSetAtlasSource : TileSetSource() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): TileAnimationMode = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Time.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Time.kt index 02b009b8a6..f592c3deb1 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Time.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Time.kt @@ -366,7 +366,7 @@ public object Time : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Month = entries.single { it.id == `value` } } } @@ -409,7 +409,7 @@ public object Time : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Weekday = entries.single { it.id == `value` } } } 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 a86c6e48b9..a6def96d0f 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 @@ -189,7 +189,7 @@ public open class Timer : Node() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): TimerProcessCallback = entries.single { it.id == `value` } } } 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 af32569ea8..0e5b64313c 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 @@ -209,7 +209,7 @@ public open class TouchScreenButton : Node2D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): VisibilityMode = entries.single { it.id == `value` } } } 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 506714d124..60fecf4942 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 @@ -757,7 +757,7 @@ public open class Tree : Control() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): SelectMode = entries.single { it.id == `value` } } } @@ -791,7 +791,7 @@ public open class Tree : Control() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): DropModeFlags = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/TreeItem.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/TreeItem.kt index b02031d97d..f01b002fcf 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/TreeItem.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/TreeItem.kt @@ -1140,7 +1140,7 @@ public open class TreeItem internal constructor() : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): TreeCellMode = entries.single { it.id == `value` } } } 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 ca601d384e..da14417f13 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 @@ -661,7 +661,7 @@ public open class Tween : RefCounted() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): TweenProcessMode = entries.single { it.id == `value` } } } @@ -689,7 +689,7 @@ public open class Tween : RefCounted() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): TweenPauseMode = entries.single { it.id == `value` } } } @@ -752,7 +752,7 @@ public open class Tween : RefCounted() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): TransitionType = entries.single { it.id == `value` } } } @@ -783,7 +783,7 @@ public open class Tween : RefCounted() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): EaseType = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/UPNP.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/UPNP.kt index 9dd38308f2..9cb46fa031 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/UPNP.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/UPNP.kt @@ -428,7 +428,7 @@ public open class UPNP : RefCounted() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): UPNPResult = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/UPNPDevice.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/UPNPDevice.kt index c187f945c7..6d026a0e37 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/UPNPDevice.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/UPNPDevice.kt @@ -216,7 +216,7 @@ public open class UPNPDevice : RefCounted() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): IGDStatus = entries.single { it.id == `value` } } } 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 d6e41d778a..812de54797 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 @@ -411,7 +411,7 @@ public open class UndoRedo : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): MergeMode = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VariantOperator.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VariantOperator.kt index d0ba924627..4eb3da6dbe 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VariantOperator.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VariantOperator.kt @@ -118,6 +118,6 @@ public enum class VariantOperator( } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): VariantOperator = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VariantType.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VariantType.kt index c1b73703d9..5ae0c09cef 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VariantType.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VariantType.kt @@ -174,6 +174,6 @@ public enum class VariantType( } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): VariantType = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VerticalAlignment.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VerticalAlignment.kt index 4a4deed0a1..414aa267a2 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VerticalAlignment.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VerticalAlignment.kt @@ -30,6 +30,6 @@ public enum class VerticalAlignment( } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): VerticalAlignment = entries.single { it.id == `value` } } } 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 cf8009b7e5..376fd17e14 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 @@ -1267,7 +1267,8 @@ public open class Viewport internal constructor() : Node() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): PositionalShadowAtlasQuadrantSubdiv = + entries.single { it.id == `value` } } } @@ -1307,7 +1308,7 @@ public open class Viewport internal constructor() : Node() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Scaling3DMode = entries.single { it.id == `value` } } } @@ -1347,7 +1348,7 @@ public open class Viewport internal constructor() : Node() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): MSAA = entries.single { it.id == `value` } } } @@ -1376,7 +1377,7 @@ public open class Viewport internal constructor() : Node() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ScreenSpaceAA = entries.single { it.id == `value` } } } @@ -1407,7 +1408,7 @@ public open class Viewport internal constructor() : Node() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): RenderInfo = entries.single { it.id == `value` } } } @@ -1439,7 +1440,7 @@ public open class Viewport internal constructor() : Node() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): RenderInfoType = entries.single { it.id == `value` } } } @@ -1577,7 +1578,7 @@ public open class Viewport internal constructor() : Node() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): DebugDraw = entries.single { it.id == `value` } } } @@ -1626,7 +1627,8 @@ public open class Viewport internal constructor() : Node() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): DefaultCanvasItemTextureFilter = + entries.single { it.id == `value` } } } @@ -1661,7 +1663,8 @@ public open class Viewport internal constructor() : Node() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): DefaultCanvasItemTextureRepeat = + entries.single { it.id == `value` } } } @@ -1699,7 +1702,7 @@ public open class Viewport internal constructor() : Node() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): SDFOversize = entries.single { it.id == `value` } } } @@ -1730,7 +1733,7 @@ public open class Viewport internal constructor() : Node() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): SDFScale = entries.single { it.id == `value` } } } @@ -1762,7 +1765,7 @@ public open class Viewport internal constructor() : Node() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): VRSMode = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisibleOnScreenEnabler2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisibleOnScreenEnabler2D.kt index b202fa8d65..8e79bcc698 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisibleOnScreenEnabler2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisibleOnScreenEnabler2D.kt @@ -91,7 +91,7 @@ public open class VisibleOnScreenEnabler2D : VisibleOnScreenNotifier2D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): EnableMode = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisibleOnScreenEnabler3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisibleOnScreenEnabler3D.kt index 103b17f25c..a1e4c67407 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisibleOnScreenEnabler3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisibleOnScreenEnabler3D.kt @@ -92,7 +92,7 @@ public open class VisibleOnScreenEnabler3D : VisibleOnScreenNotifier3D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): EnableMode = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShader.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShader.kt index cca9788ab9..6e31c38d65 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShader.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShader.kt @@ -364,7 +364,7 @@ public open class VisualShader : Shader() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Type = entries.single { it.id == `value` } } } @@ -391,7 +391,7 @@ public open class VisualShader : Shader() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): VaryingMode = entries.single { it.id == `value` } } } @@ -442,7 +442,7 @@ public open class VisualShader : Shader() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): VaryingType = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNode.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNode.kt index c539d15142..851c00d932 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNode.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNode.kt @@ -179,7 +179,7 @@ public open class VisualShaderNode internal constructor() : Resource() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): PortType = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeBillboard.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeBillboard.kt index 81b95f172a..d2ef93765c 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeBillboard.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeBillboard.kt @@ -89,7 +89,7 @@ public open class VisualShaderNodeBillboard : VisualShaderNode() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): BillboardType = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeClamp.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeClamp.kt index 2fe04d519b..62da727043 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeClamp.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeClamp.kt @@ -80,7 +80,7 @@ public open class VisualShaderNodeClamp : VisualShaderNode() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): OpType = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeColorFunc.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeColorFunc.kt index 7b90decaec..b6d22e7d74 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeColorFunc.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeColorFunc.kt @@ -86,7 +86,7 @@ public open class VisualShaderNodeColorFunc : VisualShaderNode() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Function = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeColorOp.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeColorOp.kt index 9eff75d90e..f3e8e75e1d 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeColorOp.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeColorOp.kt @@ -143,7 +143,7 @@ public open class VisualShaderNodeColorOp : VisualShaderNode() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Operator = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeCompare.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeCompare.kt index 1436d0387a..937a0897f9 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeCompare.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeCompare.kt @@ -117,7 +117,7 @@ public open class VisualShaderNodeCompare : VisualShaderNode() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ComparisonType = entries.single { it.id == `value` } } } @@ -164,7 +164,7 @@ public open class VisualShaderNodeCompare : VisualShaderNode() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Function = entries.single { it.id == `value` } } } @@ -191,7 +191,7 @@ public open class VisualShaderNodeCompare : VisualShaderNode() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Condition = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeCubemap.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeCubemap.kt index 9bfe51389d..5384a50bf9 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeCubemap.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeCubemap.kt @@ -96,7 +96,7 @@ public open class VisualShaderNodeCubemap : VisualShaderNode() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Source = entries.single { it.id == `value` } } } @@ -128,7 +128,7 @@ public open class VisualShaderNodeCubemap : VisualShaderNode() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): TextureType = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeDerivativeFunc.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeDerivativeFunc.kt index adf77550e2..2f410f134f 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeDerivativeFunc.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeDerivativeFunc.kt @@ -101,7 +101,7 @@ public open class VisualShaderNodeDerivativeFunc : VisualShaderNode() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): OpType = entries.single { it.id == `value` } } } @@ -132,7 +132,7 @@ public open class VisualShaderNodeDerivativeFunc : VisualShaderNode() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Function = entries.single { it.id == `value` } } } @@ -170,7 +170,7 @@ public open class VisualShaderNodeDerivativeFunc : VisualShaderNode() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Precision = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeFloatFunc.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeFloatFunc.kt index 8bbef40638..2145398f82 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeFloatFunc.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeFloatFunc.kt @@ -207,7 +207,7 @@ public open class VisualShaderNodeFloatFunc : VisualShaderNode() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Function = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeFloatOp.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeFloatOp.kt index 77bf13eee0..2664a75b89 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeFloatOp.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeFloatOp.kt @@ -99,7 +99,7 @@ public open class VisualShaderNodeFloatOp : VisualShaderNode() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Operator = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeFloatParameter.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeFloatParameter.kt index 4c3df9f87b..dc19d51e64 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeFloatParameter.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeFloatParameter.kt @@ -147,7 +147,7 @@ public open class VisualShaderNodeFloatParameter : VisualShaderNodeParameter() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Hint = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeIntFunc.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeIntFunc.kt index 141f3db47d..fd9500113d 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeIntFunc.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeIntFunc.kt @@ -74,7 +74,7 @@ public open class VisualShaderNodeIntFunc : VisualShaderNode() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Function = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeIntOp.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeIntOp.kt index 6dfc3d9b5e..2a31daecad 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeIntOp.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeIntOp.kt @@ -109,7 +109,7 @@ public open class VisualShaderNodeIntOp : VisualShaderNode() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Operator = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeIntParameter.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeIntParameter.kt index 0919e9fcfd..9543832bce 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeIntParameter.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeIntParameter.kt @@ -145,7 +145,7 @@ public open class VisualShaderNodeIntParameter : VisualShaderNodeParameter() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Hint = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeIs.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeIs.kt index fbd6627f29..367e750a7e 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeIs.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeIs.kt @@ -65,7 +65,7 @@ public open class VisualShaderNodeIs : VisualShaderNode() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Function = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeMix.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeMix.kt index 674a70acd6..8466de4c51 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeMix.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeMix.kt @@ -84,7 +84,7 @@ public open class VisualShaderNodeMix : VisualShaderNode() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): OpType = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeMultiplyAdd.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeMultiplyAdd.kt index 33c2d10a78..35b621449e 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeMultiplyAdd.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeMultiplyAdd.kt @@ -72,7 +72,7 @@ public open class VisualShaderNodeMultiplyAdd : VisualShaderNode() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): OpType = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParameter.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParameter.kt index 58a725705f..8e688e1008 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParameter.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParameter.kt @@ -86,7 +86,7 @@ public open class VisualShaderNodeParameter internal constructor() : VisualShade } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Qualifier = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleAccelerator.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleAccelerator.kt index 8fda4007b3..966cf68410 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleAccelerator.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleAccelerator.kt @@ -70,7 +70,7 @@ public open class VisualShaderNodeParticleAccelerator : VisualShaderNode() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Mode = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleEmit.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleEmit.kt index 976b327e7c..def751df1a 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleEmit.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleEmit.kt @@ -74,7 +74,7 @@ public open class VisualShaderNodeParticleEmit : VisualShaderNode() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): EmitFlags = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleRandomness.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleRandomness.kt index 11b82d6e2d..0871a5e969 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleRandomness.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleRandomness.kt @@ -73,7 +73,7 @@ public open class VisualShaderNodeParticleRandomness : VisualShaderNode() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): OpType = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeSample3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeSample3D.kt index ad9cdfa60f..7db85522b1 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeSample3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeSample3D.kt @@ -64,7 +64,7 @@ public open class VisualShaderNodeSample3D internal constructor() : VisualShader } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Source = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeSmoothStep.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeSmoothStep.kt index 4bf9a4d415..08b3baf711 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeSmoothStep.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeSmoothStep.kt @@ -86,7 +86,7 @@ public open class VisualShaderNodeSmoothStep : VisualShaderNode() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): OpType = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeStep.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeStep.kt index 6a4ec68703..0534c13bbf 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeStep.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeStep.kt @@ -85,7 +85,7 @@ public open class VisualShaderNodeStep : VisualShaderNode() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): OpType = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeSwitch.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeSwitch.kt index d7c43d2713..cc40e4e289 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeSwitch.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeSwitch.kt @@ -89,7 +89,7 @@ public open class VisualShaderNodeSwitch : VisualShaderNode() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): OpType = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTexture.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTexture.kt index efff714b6b..99fec69bfe 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTexture.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTexture.kt @@ -122,7 +122,7 @@ public open class VisualShaderNodeTexture : VisualShaderNode() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Source = entries.single { it.id == `value` } } } @@ -154,7 +154,7 @@ public open class VisualShaderNodeTexture : VisualShaderNode() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): TextureType = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTextureParameter.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTextureParameter.kt index ab14f95a00..4993f4fd35 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTextureParameter.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTextureParameter.kt @@ -131,7 +131,7 @@ public open class VisualShaderNodeTextureParameter internal constructor() : } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): TextureType = entries.single { it.id == `value` } } } @@ -162,7 +162,7 @@ public open class VisualShaderNodeTextureParameter internal constructor() : } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ColorDefault = entries.single { it.id == `value` } } } @@ -239,7 +239,7 @@ public open class VisualShaderNodeTextureParameter internal constructor() : } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): TextureFilter = entries.single { it.id == `value` } } } @@ -270,7 +270,7 @@ public open class VisualShaderNodeTextureParameter internal constructor() : } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): TextureRepeat = entries.single { it.id == `value` } } } @@ -305,7 +305,7 @@ public open class VisualShaderNodeTextureParameter internal constructor() : } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): TextureSource = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTransformFunc.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTransformFunc.kt index 8c4a1205e8..cdb430c0f7 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTransformFunc.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTransformFunc.kt @@ -64,7 +64,7 @@ public open class VisualShaderNodeTransformFunc : VisualShaderNode() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Function = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTransformOp.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTransformOp.kt index 2a8626b24d..7348e48e8a 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTransformOp.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTransformOp.kt @@ -92,7 +92,7 @@ public open class VisualShaderNodeTransformOp : VisualShaderNode() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Operator = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTransformVecMult.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTransformVecMult.kt index b4eb00c0c0..d4da140b29 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTransformVecMult.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTransformVecMult.kt @@ -75,7 +75,7 @@ public open class VisualShaderNodeTransformVecMult : VisualShaderNode() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Operator = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeUIntFunc.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeUIntFunc.kt index f69212b360..bad8d939d8 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeUIntFunc.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeUIntFunc.kt @@ -66,7 +66,7 @@ public open class VisualShaderNodeUIntFunc : VisualShaderNode() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Function = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeUIntOp.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeUIntOp.kt index a5f2b89a96..9cca32bf53 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeUIntOp.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeUIntOp.kt @@ -109,7 +109,7 @@ public open class VisualShaderNodeUIntOp : VisualShaderNode() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Operator = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeUVFunc.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeUVFunc.kt index 0549dbe682..231bd42f05 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeUVFunc.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeUVFunc.kt @@ -67,7 +67,7 @@ public open class VisualShaderNodeUVFunc : VisualShaderNode() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Function = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVectorBase.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVectorBase.kt index ded856fddd..f378cd2219 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVectorBase.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVectorBase.kt @@ -68,7 +68,7 @@ public open class VisualShaderNodeVectorBase internal constructor() : VisualShad } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): OpType = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVectorFunc.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVectorFunc.kt index 4e6fdfd830..343dc9d4e8 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVectorFunc.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVectorFunc.kt @@ -190,7 +190,7 @@ public open class VisualShaderNodeVectorFunc : VisualShaderNodeVectorBase() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Function = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVectorOp.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVectorOp.kt index e4dec52cb0..374dd96c63 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVectorOp.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVectorOp.kt @@ -106,7 +106,7 @@ public open class VisualShaderNodeVectorOp : VisualShaderNodeVectorBase() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Operator = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VoxelGI.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VoxelGI.kt index a16a6a6f40..c7e360cda3 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VoxelGI.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VoxelGI.kt @@ -208,7 +208,7 @@ public open class VoxelGI : VisualInstance3D() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Subdiv = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/WebRTCDataChannel.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/WebRTCDataChannel.kt index 3f7abc12ab..d3ddd2d58d 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/WebRTCDataChannel.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/WebRTCDataChannel.kt @@ -176,7 +176,7 @@ public open class WebRTCDataChannel internal constructor() : PacketPeer() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): WriteMode = entries.single { it.id == `value` } } } @@ -208,7 +208,7 @@ public open class WebRTCDataChannel internal constructor() : PacketPeer() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ChannelState = entries.single { it.id == `value` } } } 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 cb29a0e651..bdbe5efe9a 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 @@ -272,7 +272,7 @@ public open class WebRTCPeerConnection : RefCounted() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ConnectionState = entries.single { it.id == `value` } } } @@ -301,7 +301,7 @@ public open class WebRTCPeerConnection : RefCounted() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): GatheringState = entries.single { it.id == `value` } } } @@ -348,7 +348,7 @@ public open class WebRTCPeerConnection : RefCounted() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): SignalingState = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/WebSocketPeer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/WebSocketPeer.kt index 45ccf30265..d62c6bc4b8 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/WebSocketPeer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/WebSocketPeer.kt @@ -343,7 +343,7 @@ public open class WebSocketPeer : PacketPeer() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): WriteMode = entries.single { it.id == `value` } } } @@ -375,7 +375,7 @@ public open class WebSocketPeer : PacketPeer() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): State = entries.single { it.id == `value` } } } 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 6bc4ec6db0..085d815eb3 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 @@ -469,7 +469,7 @@ public open class WebXRInterface internal constructor() : XRInterface() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): TargetRayMode = entries.single { it.id == `value` } } } 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 e78578f61d..71fb7fa102 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 @@ -1594,7 +1594,7 @@ public open class Window : Viewport() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Mode = entries.single { it.id == `value` } } } @@ -1661,7 +1661,7 @@ public open class Window : Viewport() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Flags = entries.single { it.id == `value` } } } @@ -1690,7 +1690,7 @@ public open class Window : Viewport() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ContentScaleMode = entries.single { it.id == `value` } } } @@ -1730,7 +1730,7 @@ public open class Window : Viewport() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ContentScaleAspect = entries.single { it.id == `value` } } } @@ -1755,7 +1755,7 @@ public open class Window : Viewport() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ContentScaleStretch = entries.single { it.id == `value` } } } @@ -1786,7 +1786,7 @@ public open class Window : Viewport() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): LayoutDirection = entries.single { it.id == `value` } } } @@ -1826,7 +1826,7 @@ public open class Window : Viewport() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): WindowInitialPosition = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/XMLParser.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/XMLParser.kt index 4706e31557..2e2cfa24f4 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/XMLParser.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/XMLParser.kt @@ -275,7 +275,7 @@ public open class XMLParser : RefCounted() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): NodeType = entries.single { it.id == `value` } } } 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 b299ce038b..5d4c36fb0e 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 @@ -418,7 +418,7 @@ public open class XRInterface internal constructor() : RefCounted() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): Capabilities = entries.single { it.id == `value` } } } @@ -455,7 +455,7 @@ public open class XRInterface internal constructor() : RefCounted() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): TrackingStatus = entries.single { it.id == `value` } } } @@ -493,7 +493,7 @@ public open class XRInterface internal constructor() : RefCounted() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): PlayAreaMode = entries.single { it.id == `value` } } } @@ -523,7 +523,7 @@ public open class XRInterface internal constructor() : RefCounted() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): EnvironmentBlendMode = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/XRPose.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/XRPose.kt index 7a70578b77..3630516ec8 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/XRPose.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/XRPose.kt @@ -243,7 +243,7 @@ public open class XRPose : RefCounted() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): TrackingConfidence = entries.single { it.id == `value` } } } 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 418317a93b..f4ee8fc0af 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 @@ -205,7 +205,7 @@ public open class XRPositionalTracker : XRTracker() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): TrackerHand = entries.single { it.id == `value` } } } 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 78c6fdabe6..5c8978c54d 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 @@ -309,7 +309,7 @@ public object XRServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): TrackerType = entries.single { it.id == `value` } } } @@ -338,7 +338,7 @@ public object XRServer : Object() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): RotationMode = entries.single { it.id == `value` } } } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ZIPPacker.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ZIPPacker.kt index f8607131dc..dacc1a0b88 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ZIPPacker.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ZIPPacker.kt @@ -119,7 +119,7 @@ public open class ZIPPacker : RefCounted() { } public companion object { - public fun from(`value`: Long) = entries.single { it.id == `value` } + public fun from(`value`: Long): ZipAppend = entries.single { it.id == `value` } } } diff --git a/kt/gradle/libs.versions.toml b/kt/gradle/libs.versions.toml index ec7a6125cf..4aacbff111 100644 --- a/kt/gradle/libs.versions.toml +++ b/kt/gradle/libs.versions.toml @@ -1,31 +1,34 @@ [versions] godotKotlinJvm = "0.9.1" -kotlin = "2.0.0" +kotlin = "2.0.20" # https://kotlinlang.org/docs/releases.html#release-details godot = "4.3.0" -shadowJar = "8.1.1" # https://github.com/johnrengelman/shadow/releases +shadowJar = "8.3.0" # https://github.com/johnrengelman/shadow/releases +# TODO: bump kotlin poet version once: https://github.com/square/kotlinpoet/issues/1759 is fixed +#kotlinPoet = "1.18.0" # https://github.com/square/kotlinpoet/releases kotlinPoet = "1.12.0" # https://github.com/square/kotlinpoet/releases -ksp = "2.0.0-1.0.21" # https://github.com/google/ksp/releases -jacksonDataBind = "2.11.0" -jacksonDataFormatXml = "2.10.1" +ksp = "2.0.20-1.0.24" # https://github.com/google/ksp/releases -grgit = "4.1.1" +jacksonDataBind = "2.17.2" # https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind +jacksonDataFormatXml = "2.17.2" # https://mvnrepository.com/artifact/com.fasterxml.jackson.dataformat/jackson-dataformat-xml -gradlePublish = "1.2.1" +grgit = "5.2.2" # https://github.com/ajoberstar/grgit/releases -changelog = "2.1.2" -gradleIntelliJPlugin = "1.17.3" # https://plugins.gradle.org/plugin/org.jetbrains.intellij +gradlePublish = "1.2.1" # https://plugins.gradle.org/plugin/com.gradle.plugin-publish + +changelog = "2.2.1" # https://github.com/JetBrains/gradle-changelog-plugin/releases +gradleIntelliJPlugin = "1.17.4" # https://plugins.gradle.org/plugin/org.jetbrains.intellij ideaSync = "1.1.8" # https://plugins.gradle.org/plugin/org.jetbrains.gradle.plugin.idea-ext -kotlinPreProcessors = "0.2.0" +kotlinPreProcessors = "0.2.0" # https://github.com/utopia-rise/kotlin-preprocessors/tags iosJdk = "21" iosGraalJdkBuild = "v23.1.3-21-b33" iosCapCache = "0.1.0" [libraries] -shadowJar = { module = "com.github.johnrengelman:shadow", version.ref = "shadowJar" } +shadowJar = { module = "com.gradleup.shadow:shadow-gradle-plugin", version.ref = "shadowJar" } kotlinPoet = { module = "com.squareup:kotlinpoet", version.ref = "kotlinPoet" } ksp = { module = "com.google.devtools.ksp:symbol-processing-api", version.ref = "ksp" } kspGradlePlugin = { module = "com.google.devtools.ksp:com.google.devtools.ksp.gradle.plugin", version.ref = "ksp" } @@ -40,6 +43,6 @@ gradleIntelliJPlugin = { id = "org.jetbrains.intellij", version.ref = "gradleInt kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" } java = { id = "java" } grgit = { id = "org.ajoberstar.grgit", version.ref = "grgit" } -shadowJar = { id = "com.github.johnrengelman.shadow", version.ref = "shadowJar" } +shadowJar = { id = "com.gradleup.shadow", version.ref = "shadowJar" } gradlePublish = { id = "com.gradle.plugin-publish", version.ref = "gradlePublish" } kotlinPreProcessors = { id = "com.utopia-rise.kotlin-preprocessors", version.ref = "kotlinPreProcessors" }