From 979ab47e38e790eaf8bbe21ba5fcea28cb335ae5 Mon Sep 17 00:00:00 2001 From: Ced Naru Date: Sat, 3 May 2025 03:13:55 +0200 Subject: [PATCH] Make required virtual methods abstract --- .../godot/codegen/generation/rule/ApiRule.kt | 16 +- .../codegen/generation/rule/ClassRule.kt | 56 +- .../codegen/generation/rule/MethodRule.kt | 36 +- .../generation/rule/RegistrationRule.kt | 52 +- .../codegen/models/enriched/EnrichedClass.kt | 2 + .../codegen/models/enriched/EnrichedMethod.kt | 49 +- .../main/kotlin/godot/RegisterEngineTypes.kt | 54 +- .../src/main/kotlin/godot/api/AStar2D.kt | 4 +- .../src/main/kotlin/godot/api/AStar3D.kt | 4 +- .../src/main/kotlin/godot/api/AStarGrid2D.kt | 4 +- .../main/kotlin/godot/api/AnimatedTexture.kt | 15 + .../main/kotlin/godot/api/AnimationMixer.kt | 2 +- .../main/kotlin/godot/api/AnimationNode.kt | 16 +- .../godot/api/AnimationNodeExtension.kt | 9 +- .../src/main/kotlin/godot/api/ArrayMesh.kt | 99 +++ .../src/main/kotlin/godot/api/AtlasTexture.kt | 15 + .../src/main/kotlin/godot/api/AudioEffect.kt | 7 +- .../kotlin/godot/api/AudioEffectAmplify.kt | 8 + .../kotlin/godot/api/AudioEffectCapture.kt | 8 + .../kotlin/godot/api/AudioEffectChorus.kt | 8 + .../kotlin/godot/api/AudioEffectCompressor.kt | 8 + .../main/kotlin/godot/api/AudioEffectDelay.kt | 8 + .../kotlin/godot/api/AudioEffectDistortion.kt | 8 + .../main/kotlin/godot/api/AudioEffectEQ.kt | 8 + .../kotlin/godot/api/AudioEffectFilter.kt | 8 + .../godot/api/AudioEffectHardLimiter.kt | 8 + .../kotlin/godot/api/AudioEffectInstance.kt | 4 +- .../kotlin/godot/api/AudioEffectLimiter.kt | 8 + .../kotlin/godot/api/AudioEffectPanner.kt | 8 + .../kotlin/godot/api/AudioEffectPhaser.kt | 8 + .../kotlin/godot/api/AudioEffectPitchShift.kt | 8 + .../kotlin/godot/api/AudioEffectRecord.kt | 8 + .../kotlin/godot/api/AudioEffectReverb.kt | 8 + .../godot/api/AudioEffectSpectrumAnalyzer.kt | 8 + .../godot/api/AudioEffectStereoEnhance.kt | 8 + .../src/main/kotlin/godot/api/AudioStream.kt | 18 +- .../godot/api/AudioStreamGeneratorPlayback.kt | 9 + .../kotlin/godot/api/AudioStreamPlayback.kt | 20 +- .../godot/api/AudioStreamPlaybackOggVorbis.kt | 9 + .../godot/api/AudioStreamPlaybackResampled.kt | 7 +- .../src/main/kotlin/godot/api/BaseButton.kt | 4 +- .../main/kotlin/godot/api/BaseMaterial3D.kt | 16 + .../src/main/kotlin/godot/api/CameraFeed.kt | 4 +- .../main/kotlin/godot/api/CameraTexture.kt | 15 + .../src/main/kotlin/godot/api/CanvasItem.kt | 2 +- .../kotlin/godot/api/CanvasItemMaterial.kt | 16 + .../main/kotlin/godot/api/CanvasTexture.kt | 15 + .../src/main/kotlin/godot/api/CodeEdit.kt | 6 +- .../kotlin/godot/api/CollisionObject2D.kt | 10 +- .../kotlin/godot/api/CollisionObject3D.kt | 6 +- .../main/kotlin/godot/api/CompositorEffect.kt | 2 +- .../kotlin/godot/api/CompressedTexture2D.kt | 15 + .../kotlin/godot/api/CompressedTexture3D.kt | 45 ++ .../godot/api/CompressedTextureLayered.kt | 51 ++ .../src/main/kotlin/godot/api/Container.kt | 4 +- .../src/main/kotlin/godot/api/Control.kt | 18 +- .../src/main/kotlin/godot/api/CurveTexture.kt | 15 + .../main/kotlin/godot/api/CurveXYZTexture.kt | 15 + .../main/kotlin/godot/api/EngineProfiler.kt | 6 +- .../main/kotlin/godot/api/ExternalTexture.kt | 15 + .../src/main/kotlin/godot/api/FogMaterial.kt | 16 + .../kotlin/godot/api/GLTFDocumentExtension.kt | 46 +- .../kotlin/godot/api/GradientTexture1D.kt | 15 + .../kotlin/godot/api/GradientTexture2D.kt | 15 + .../src/main/kotlin/godot/api/GraphEdit.kt | 8 +- .../src/main/kotlin/godot/api/GraphNode.kt | 2 +- .../godot/api/ImageFormatLoaderExtension.kt | 4 +- .../src/main/kotlin/godot/api/ImageTexture.kt | 15 + .../main/kotlin/godot/api/ImageTexture3D.kt | 43 ++ .../kotlin/godot/api/ImageTextureLayered.kt | 51 ++ .../main/kotlin/godot/api/ImmediateMesh.kt | 105 +++ .../src/main/kotlin/godot/api/MainLoop.kt | 8 +- .../src/main/kotlin/godot/api/Material.kt | 14 +- .../src/main/kotlin/godot/api/Mesh.kt | 59 +- .../src/main/kotlin/godot/api/MeshTexture.kt | 15 + .../src/main/kotlin/godot/api/MovieWriter.kt | 25 +- .../godot/api/MultiplayerAPIExtension.kt | 18 +- .../godot/api/MultiplayerPeerExtension.kt | 76 +- .../src/main/kotlin/godot/api/Node.kt | 20 +- .../main/kotlin/godot/api/NoiseTexture2D.kt | 15 + .../main/kotlin/godot/api/NoiseTexture3D.kt | 44 ++ .../godot/api/OpenXRActionBindingModifier.kt | 17 + .../kotlin/godot/api/OpenXRBindingModifier.kt | 11 +- .../api/OpenXRExtensionWrapperExtension.kt | 52 +- .../godot/api/OpenXRIPBindingModifier.kt | 17 + .../kotlin/godot/api/PacketPeerExtension.kt | 11 +- .../kotlin/godot/api/PanoramaSkyMaterial.kt | 16 + .../godot/api/ParticleProcessMaterial.kt | 16 + .../main/kotlin/godot/api/PhysicalBone3D.kt | 2 +- .../kotlin/godot/api/PhysicalSkyMaterial.kt | 16 + .../api/PhysicsDirectBodyState2DExtension.kt | 179 ++--- .../api/PhysicsDirectBodyState3DExtension.kt | 187 ++--- .../api/PhysicsDirectSpaceState2DExtension.kt | 2 +- .../api/PhysicsDirectSpaceState3DExtension.kt | 7 +- .../PhysicsServer3DRenderingServerHandler.kt | 15 +- .../kotlin/godot/api/PlaceholderMaterial.kt | 16 + .../main/kotlin/godot/api/PlaceholderMesh.kt | 104 +++ .../kotlin/godot/api/PlaceholderTexture2D.kt | 15 + .../kotlin/godot/api/PlaceholderTexture3D.kt | 45 ++ .../godot/api/PlaceholderTextureLayered.kt | 52 ++ .../godot/api/PortableCompressedTexture2D.kt | 15 + .../main/kotlin/godot/api/PrimitiveMesh.kt | 103 ++- .../kotlin/godot/api/ProceduralSkyMaterial.kt | 16 + .../src/main/kotlin/godot/api/Range.kt | 2 +- .../kotlin/godot/api/RenderDataExtension.kt | 8 +- .../godot/api/RenderSceneBuffersExtension.kt | 10 +- .../godot/api/RenderSceneDataExtension.kt | 12 +- .../src/main/kotlin/godot/api/Resource.kt | 8 +- .../kotlin/godot/api/ResourceFormatLoader.kt | 22 +- .../kotlin/godot/api/ResourceFormatSaver.kt | 10 +- .../main/kotlin/godot/api/RichTextEffect.kt | 2 +- .../src/main/kotlin/godot/api/RigidBody2D.kt | 2 +- .../src/main/kotlin/godot/api/RigidBody3D.kt | 2 +- .../main/kotlin/godot/api/ScriptExtension.kt | 132 +--- .../godot/api/ScriptLanguageExtension.kt | 247 ++---- .../main/kotlin/godot/api/ShaderMaterial.kt | 16 + .../godot/api/SkeletonModification2D.kt | 6 +- .../kotlin/godot/api/SkeletonModifier3D.kt | 2 +- .../kotlin/godot/api/StreamPeerExtension.kt | 7 +- .../src/main/kotlin/godot/api/StyleBox.kt | 12 +- .../main/kotlin/godot/api/StyleBoxEmpty.kt | 10 + .../src/main/kotlin/godot/api/StyleBoxFlat.kt | 10 + .../src/main/kotlin/godot/api/StyleBoxLine.kt | 10 + .../main/kotlin/godot/api/StyleBoxTexture.kt | 9 + .../kotlin/godot/api/SubViewportContainer.kt | 2 +- .../kotlin/godot/api/SyntaxHighlighter.kt | 6 +- .../src/main/kotlin/godot/api/TextEdit.kt | 12 +- .../kotlin/godot/api/TextServerAdvanced.kt | 708 ++++++++++++++++++ .../main/kotlin/godot/api/TextServerDummy.kt | 708 ++++++++++++++++++ .../kotlin/godot/api/TextServerExtension.kt | 654 ++++++---------- .../src/main/kotlin/godot/api/Texture2D.kt | 20 +- .../src/main/kotlin/godot/api/Texture2DRD.kt | 15 + .../src/main/kotlin/godot/api/Texture3D.kt | 27 +- .../src/main/kotlin/godot/api/Texture3DRD.kt | 45 ++ .../main/kotlin/godot/api/TextureLayered.kt | 31 +- .../main/kotlin/godot/api/TextureLayeredRD.kt | 52 ++ .../src/main/kotlin/godot/api/TileMap.kt | 4 +- .../src/main/kotlin/godot/api/TileMapLayer.kt | 6 +- .../src/main/kotlin/godot/api/Translation.kt | 4 +- .../src/main/kotlin/godot/api/VideoStream.kt | 2 +- .../kotlin/godot/api/VideoStreamPlayback.kt | 30 +- .../main/kotlin/godot/api/ViewportTexture.kt | 15 + .../main/kotlin/godot/api/VisualInstance3D.kt | 2 +- .../godot/api/VisualShaderNodeCustom.kt | 42 +- .../godot/api/WebRTCDataChannelExtension.kt | 67 +- .../api/WebRTCPeerConnectionExtension.kt | 51 +- .../src/main/kotlin/godot/api/Window.kt | 2 +- .../kotlin/godot/api/XRInterfaceExtension.kt | 62 +- .../src/main/kotlin/godot/core/KtObject.kt | 4 +- .../godot/internal/reflection/TypeManager.kt | 8 +- 150 files changed, 3910 insertions(+), 1659 deletions(-) diff --git a/kt/api-generator/src/main/kotlin/godot/codegen/generation/rule/ApiRule.kt b/kt/api-generator/src/main/kotlin/godot/codegen/generation/rule/ApiRule.kt index e4ea7854f..4f2efb148 100644 --- a/kt/api-generator/src/main/kotlin/godot/codegen/generation/rule/ApiRule.kt +++ b/kt/api-generator/src/main/kotlin/godot/codegen/generation/rule/ApiRule.kt @@ -27,7 +27,9 @@ import godot.tools.common.constants.TO_GODOT_NAME_UTIL_FUNCTION class EnrichedCoreRule : GodotApiRule() { override fun apply(task: ApiTask, context: GenerationContext) { - val coreTypes = context.api.builtinClasses.associate { it.name to (it.enums?.toEnriched(GenerationType(it.name)) ?: listOf()) } + val coreTypes = context.api.builtinClasses.associate { + it.name to (it.enums?.toEnriched(GenerationType(it.name)) ?: listOf()) + } val globalEnumList = context.api.globalEnums.toEnriched() val globalEnumMap = globalEnumList.associateBy { it.identifier } val nativeStructureMap = mutableMapOf() @@ -53,8 +55,8 @@ class EnrichedCoreRule : GodotApiRule() { class EnrichedClassRule : GodotApiRule() { override fun apply(task: ApiTask, context: GenerationContext) { val classes = context.api.classes - val classList = classes.toEnriched().filter { it.apiType == ApiType.CORE } - val classMap = classList.associateBy { it.identifier } + var classList = classes.toEnriched().filter { it.apiType == ApiType.CORE } + var classMap = classList.associateBy { it.identifier } classes.forEach { val enrichedChild = classMap[it.name] @@ -69,6 +71,14 @@ class EnrichedClassRule : GodotApiRule() { classMap[it.type]?.makeSingleton() } + + classList = classList + .filter { clazz ->// Remove class extending singletons + val parent = clazz.parent + parent == null || !parent.isSingleton + } + classMap = classList.associateBy { it.identifier } + context.classMap += classMap context.classList += classList diff --git a/kt/api-generator/src/main/kotlin/godot/codegen/generation/rule/ClassRule.kt b/kt/api-generator/src/main/kotlin/godot/codegen/generation/rule/ClassRule.kt index 19912f6bc..9522b3817 100644 --- a/kt/api-generator/src/main/kotlin/godot/codegen/generation/rule/ClassRule.kt +++ b/kt/api-generator/src/main/kotlin/godot/codegen/generation/rule/ClassRule.kt @@ -11,6 +11,7 @@ import godot.codegen.generation.task.EnrichedEnumTask import godot.codegen.generation.task.EnrichedMethodTask import godot.codegen.generation.task.EnrichedPropertyTask import godot.codegen.generation.task.SignalTask +import godot.codegen.models.enriched.EnrichedMethod import godot.codegen.models.traits.addKdoc import godot.tools.common.constants.GODOT_BASE_TYPE import godot.tools.common.constants.KT_OBJECT @@ -31,19 +32,7 @@ class MemberRule : GodotApiRule() { } for (method in clazz.methods) { - if (context.isNativeStructure(method.type.identifier)) { - continue - } - var shouldGenerate = true - for (argument in method.arguments) { - if (context.isNativeStructure(argument.type.identifier)) { - shouldGenerate = false - break - } - } - if (!shouldGenerate) { - continue - } + if(!canGenerateMethod(context, method)) continue if (method.isStatic) { task.enrichedStaticMethods.add(EnrichedMethodTask(method, clazz)) @@ -69,15 +58,42 @@ class MemberRule : GodotApiRule() { if (task.clazz.isSingleton) { generateSingletonConstructor(context) } else { - addModifiers(KModifier.OPEN) - generateClassConstructor(task.clazz.isInstantiable, context) + if (clazz.isAbstract) { + addModifiers(KModifier.ABSTRACT) + } else { + addModifiers(KModifier.OPEN) + } + generateClassConstructor(clazz.isInstantiable, context) } addKdoc(clazz) addAnnotation(GODOT_BASE_TYPE) + + val parent = task.clazz.parent?: return@configure + for (method in parent.methods.filter { it.isAbstract }) { + if(!canGenerateMethod(context, method)) continue + val overrideMethod = method.override() + task.enrichedMethods.add(EnrichedMethodTask(overrideMethod, clazz)) + } } - private fun TypeSpec.Builder.generateClassConstructor(isInstantiable: Boolean, context: GenerationContext): TypeSpec.Builder { + private fun canGenerateMethod(context: GenerationContext, method: EnrichedMethod): Boolean { + if (context.isNativeStructure(method.type.identifier)) { + return false + } + for (argument in method.arguments) { + if (context.isNativeStructure(argument.type.identifier)) { + return false + } + } + return true + } + + private fun TypeSpec.Builder.generateClassConstructor( + isInstantiable: Boolean, + context: GenerationContext + ): TypeSpec.Builder { + if (!isInstantiable) { primaryConstructor( FunSpec.constructorBuilder() @@ -116,12 +132,12 @@ class MemberRule : GodotApiRule() { } class BindingRule : GodotApiRule() { - override fun apply(classTask: EnrichedClassTask, context: GenerationContext) = configure(classTask.builder) { - val clazz = classTask.clazz + override fun apply(task: EnrichedClassTask, context: GenerationContext) = configure(task.builder) { + val clazz = task.clazz clazz.methods .filter { !it.isVirtual } .onEach { - classTask.bindings.addProperty( + task.bindings.addProperty( PropertySpec .builder(it.voidPtrVariableName, VOID_PTR) .addModifiers(KModifier.INTERNAL) @@ -129,7 +145,7 @@ class BindingRule : GodotApiRule() { "%T.getMethodBindPtr(%S,·%S,·%L)", TYPE_MANAGER, clazz.identifier, - it.godotName, + it.originalName, it.hash ) .build() diff --git a/kt/api-generator/src/main/kotlin/godot/codegen/generation/rule/MethodRule.kt b/kt/api-generator/src/main/kotlin/godot/codegen/generation/rule/MethodRule.kt index 8b64ec081..61543b280 100644 --- a/kt/api-generator/src/main/kotlin/godot/codegen/generation/rule/MethodRule.kt +++ b/kt/api-generator/src/main/kotlin/godot/codegen/generation/rule/MethodRule.kt @@ -29,20 +29,11 @@ import godot.tools.common.constants.godotCorePackage interface BaseMethodeRule { fun FunSpec.Builder.configureMethod(method: EnrichedMethod, clazz: EnrichedClass, context: GenerationContext) { - - addKdoc(method) // This method already exist in the Kotlin class Any. We have to override it because Godot uses the same name in Object. if (method.name == "toString") { addModifiers(KModifier.OVERRIDE) } - // Godot doesn't override its methods, they are either final or meant to be implemented by script or extension. - if (method.isVirtual) { - addModifiers(KModifier.OPEN) - } else { - addModifiers(KModifier.FINAL) - } - val methodTypeName = method.getCastedType() val shouldReturn = method.getTypeName() != UNIT if (shouldReturn) { @@ -51,15 +42,32 @@ interface BaseMethodeRule { generateParameters(method, context) - if (!method.isVirtual) { - writeCode(method, clazz) - } else { + // Godot can override virtual methods in child classes, we have to create a dummy final implementation for theM + if (method.isOverride) { + addModifiers(KModifier.OVERRIDE) addStatement( "%L·%T(%S)", "throw", NotImplementedError::class, - "${method.name} is not implemented for ${clazz.identifier}" + "${clazz.identifier}::${method.name} can't be called from the JVM." ) + addKdoc("Virtual method inherited from base class implemented in non-JVM code. Don't call it.") + } else if (method.isAbstract) { + addModifiers(KModifier.ABSTRACT) + addKdoc(method) + } else if (method.isVirtual) { + addModifiers(KModifier.OPEN) + addStatement( + "%L·%T(%S)", + "throw", + NotImplementedError::class, + "${clazz.identifier}::${method.name} is not implemented." + ) + addKdoc(method) + } else { + addModifiers(KModifier.FINAL) + writeCode(method, clazz) + addKdoc(method) } } @@ -215,7 +223,7 @@ class StringOnlyRule : GodotApiRule(), BaseMethodeRule { } private fun createStringOnlyMethod(method: EnrichedMethod, clazz: EnrichedClass, context: GenerationContext): EnrichedMethodTask? { - if (method.isVirtual) { + if (method.isVirtual || method.isOverride) { return null } if (method.arguments.none { it.type.identifier == GodotTypes.stringName || it.type.identifier == GodotTypes.nodePath }) { diff --git a/kt/api-generator/src/main/kotlin/godot/codegen/generation/rule/RegistrationRule.kt b/kt/api-generator/src/main/kotlin/godot/codegen/generation/rule/RegistrationRule.kt index b2d5d66ae..4bea5100f 100644 --- a/kt/api-generator/src/main/kotlin/godot/codegen/generation/rule/RegistrationRule.kt +++ b/kt/api-generator/src/main/kotlin/godot/codegen/generation/rule/RegistrationRule.kt @@ -11,21 +11,20 @@ import godot.tools.common.constants.godotCorePackage class RegistrationRule() : GodotApiRule() { override fun apply(task: ApiTask, context: GenerationContext) { - val coreTypes = context.classList + val coreTypes = context + .classList .filter { it.isCoreClass() } - val apiTypes = context.classList + val apiTypes = context + .classList .filter { !it.isCoreClass() } - .filter { //Remove class extending singletons - val parent = it.parent - parent == null || parent.isSingleton == false - } + val registrationTask = RegistrationTask() (coreTypes + apiTypes) .filter { clazz -> //Remove class extending singletons val parent = clazz.parent - parent == null || parent.isSingleton == false + parent == null || !parent.isSingleton }.onEach { clazz -> registrationTask.addVariantMapping(clazz) registrationTask.addClassRegistering(clazz) @@ -35,7 +34,7 @@ class RegistrationRule() : GodotApiRule() { task.registrationFiles.add(registrationTask) } - fun RegistrationTask.addVariantMapping(enrichedClass: EnrichedClass) { + private fun RegistrationTask.addVariantMapping(enrichedClass: EnrichedClass) { variantMapper.addStatement( "%M[%T::class] = %T", MemberName(godotCorePackage, "variantMapper"), @@ -44,24 +43,41 @@ class RegistrationRule() : GodotApiRule() { ) } - fun RegistrationTask.addClassRegistering(clazz: EnrichedClass) { + private fun RegistrationTask.addClassRegistering(clazz: EnrichedClass) { val formatString: String if (clazz.isSingleton) { engineTypes.addStatement("%T.registerSingleton(%S)·{·%T·}", TYPE_MANAGER, clazz.identifier, clazz.className) formatString = "%T.registerEngineType(%S,·%T::class)·{·%T·}" + engineTypes.addStatement( + formatString, + TYPE_MANAGER, + clazz.identifier, + clazz.className, + clazz.className + ) } else { - formatString = "%T.registerEngineType(%S,·%T::class,·::%T)" + if(clazz.isAbstract) { + formatString = "%T.registerEngineType(%S,·%T::class,·null)" + engineTypes.addStatement( + formatString, + TYPE_MANAGER, + clazz.identifier, + clazz.className, + ) + } else { + formatString = "%T.registerEngineType(%S,·%T::class,·::%T)" + engineTypes.addStatement( + formatString, + TYPE_MANAGER, + clazz.identifier, + clazz.className, + clazz.className + ) + } } - engineTypes.addStatement( - formatString, - TYPE_MANAGER, - clazz.identifier, - clazz.className, - clazz.className - ) } - fun RegistrationTask.addMethodBindings(clazz: EnrichedClass) { + private fun RegistrationTask.addMethodBindings(clazz: EnrichedClass) { engineMethods.addStatement( "%T", clazz.className.nestedClass(methodBindingsInnerClassName) diff --git a/kt/api-generator/src/main/kotlin/godot/codegen/models/enriched/EnrichedClass.kt b/kt/api-generator/src/main/kotlin/godot/codegen/models/enriched/EnrichedClass.kt index afcaafe8a..bd99b46c4 100644 --- a/kt/api-generator/src/main/kotlin/godot/codegen/models/enriched/EnrichedClass.kt +++ b/kt/api-generator/src/main/kotlin/godot/codegen/models/enriched/EnrichedClass.kt @@ -27,6 +27,8 @@ class EnrichedClass(model: Class) : TypeGenerationTrait, DocumentedGenerationTra val properties = model.properties?.toEnriched() ?: listOf() val methods = model.methods?.toEnriched() ?: listOf() + val isAbstract = methods.any { it.isAbstract } + override var description = model.description val additionalImports = mutableSetOf() diff --git a/kt/api-generator/src/main/kotlin/godot/codegen/models/enriched/EnrichedMethod.kt b/kt/api-generator/src/main/kotlin/godot/codegen/models/enriched/EnrichedMethod.kt index 478f3b32f..60dbf3f0d 100644 --- a/kt/api-generator/src/main/kotlin/godot/codegen/models/enriched/EnrichedMethod.kt +++ b/kt/api-generator/src/main/kotlin/godot/codegen/models/enriched/EnrichedMethod.kt @@ -10,7 +10,15 @@ import godot.codegen.workarounds.sanitizeApiType import godot.common.constants.Constraints import godot.common.extensions.convertToCamelCase -class EnrichedMethod(model: Method) : CallableGeneratorTrait, DocumentedGenerationTrait { +class EnrichedMethod(private val model: Method, override: Boolean = false) : CallableGeneratorTrait, DocumentedGenerationTrait { + enum class Modifier { + DEFAULT, + STATIC, + VIRTUAL, + ABSTRACT, + OVERRIDE + } + override val type = GenerationType(model.returnValue?.type?.sanitizeApiType() ?: "void") override val nullable = type.isObjectSubClass() || type.isVariant() override val genericParameters = emptyList() @@ -29,21 +37,42 @@ class EnrichedMethod(model: Method) : CallableGeneratorTrait, DocumentedGenerati override var description = model.description val hash = model.hash - val isVirtual = model.isVirtual - val isStatic = model.isStatic - val godotName = model.name + private val modifier = run { + if (override) { + Modifier.OVERRIDE + } else if (model.isVirtual) { + if(model.isRequired) { + Modifier.ABSTRACT + } else { + Modifier.VIRTUAL + } + + } else if (model.isStatic) { + Modifier.STATIC + } else { + Modifier.DEFAULT + } + } + val isVirtual: Boolean + get() = modifier == Modifier.VIRTUAL || modifier == Modifier.ABSTRACT + val isAbstract: Boolean + get() = modifier == Modifier.ABSTRACT + val isStatic: Boolean + get() = modifier == Modifier.STATIC + val isOverride: Boolean + get() = modifier == Modifier.OVERRIDE + + val originalName = model.name init { if (arguments.size > Constraints.MAX_FUNCTION_ARG_COUNT) { throw TooManyMethodArgument(model) } } + + fun override(): EnrichedMethod { + return EnrichedMethod(model, true) + } } fun List.toEnriched() = map { EnrichedMethod(it) } - -fun EnrichedMethod.isSameSignature(other: EnrichedMethod): Boolean { - return name == other.name && - type == other.type - arguments == other.arguments -} diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/RegisterEngineTypes.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/RegisterEngineTypes.kt index d8feb0446..3a261ed17 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/RegisterEngineTypes.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/RegisterEngineTypes.kt @@ -2673,7 +2673,7 @@ public fun registerEngineTypes(): Unit { TypeManager.registerEngineType("AnimationNodeBlendSpace1D", AnimationNodeBlendSpace1D::class, ::AnimationNodeBlendSpace1D) TypeManager.registerEngineType("AnimationNodeBlendSpace2D", AnimationNodeBlendSpace2D::class, ::AnimationNodeBlendSpace2D) TypeManager.registerEngineType("AnimationNodeBlendTree", AnimationNodeBlendTree::class, ::AnimationNodeBlendTree) - TypeManager.registerEngineType("AnimationNodeExtension", AnimationNodeExtension::class, ::AnimationNodeExtension) + TypeManager.registerEngineType("AnimationNodeExtension", AnimationNodeExtension::class, null) TypeManager.registerEngineType("AnimationNodeOneShot", AnimationNodeOneShot::class, ::AnimationNodeOneShot) TypeManager.registerEngineType("AnimationNodeOutput", AnimationNodeOutput::class, ::AnimationNodeOutput) TypeManager.registerEngineType("AnimationNodeStateMachine", AnimationNodeStateMachine::class, ::AnimationNodeStateMachine) @@ -2694,7 +2694,7 @@ public fun registerEngineTypes(): Unit { TypeManager.registerEngineType("AspectRatioContainer", AspectRatioContainer::class, ::AspectRatioContainer) TypeManager.registerEngineType("AtlasTexture", AtlasTexture::class, ::AtlasTexture) TypeManager.registerEngineType("AudioBusLayout", AudioBusLayout::class, ::AudioBusLayout) - TypeManager.registerEngineType("AudioEffect", AudioEffect::class, ::AudioEffect) + TypeManager.registerEngineType("AudioEffect", AudioEffect::class, null) TypeManager.registerEngineType("AudioEffectAmplify", AudioEffectAmplify::class, ::AudioEffectAmplify) TypeManager.registerEngineType("AudioEffectBandLimitFilter", AudioEffectBandLimitFilter::class, ::AudioEffectBandLimitFilter) TypeManager.registerEngineType("AudioEffectBandPassFilter", AudioEffectBandPassFilter::class, ::AudioEffectBandPassFilter) @@ -2711,7 +2711,7 @@ public fun registerEngineTypes(): Unit { TypeManager.registerEngineType("AudioEffectHardLimiter", AudioEffectHardLimiter::class, ::AudioEffectHardLimiter) TypeManager.registerEngineType("AudioEffectHighPassFilter", AudioEffectHighPassFilter::class, ::AudioEffectHighPassFilter) TypeManager.registerEngineType("AudioEffectHighShelfFilter", AudioEffectHighShelfFilter::class, ::AudioEffectHighShelfFilter) - TypeManager.registerEngineType("AudioEffectInstance", AudioEffectInstance::class, ::AudioEffectInstance) + TypeManager.registerEngineType("AudioEffectInstance", AudioEffectInstance::class, null) TypeManager.registerEngineType("AudioEffectLimiter", AudioEffectLimiter::class, ::AudioEffectLimiter) TypeManager.registerEngineType("AudioEffectLowPassFilter", AudioEffectLowPassFilter::class, ::AudioEffectLowPassFilter) TypeManager.registerEngineType("AudioEffectLowShelfFilter", AudioEffectLowShelfFilter::class, ::AudioEffectLowShelfFilter) @@ -2737,12 +2737,12 @@ public fun registerEngineTypes(): Unit { TypeManager.registerEngineType("AudioStreamMP3", AudioStreamMP3::class, ::AudioStreamMP3) TypeManager.registerEngineType("AudioStreamMicrophone", AudioStreamMicrophone::class, ::AudioStreamMicrophone) TypeManager.registerEngineType("AudioStreamOggVorbis", AudioStreamOggVorbis::class, ::AudioStreamOggVorbis) - TypeManager.registerEngineType("AudioStreamPlayback", AudioStreamPlayback::class, ::AudioStreamPlayback) + TypeManager.registerEngineType("AudioStreamPlayback", AudioStreamPlayback::class, null) TypeManager.registerEngineType("AudioStreamPlaybackInteractive", AudioStreamPlaybackInteractive::class, ::AudioStreamPlaybackInteractive) TypeManager.registerEngineType("AudioStreamPlaybackOggVorbis", AudioStreamPlaybackOggVorbis::class, ::AudioStreamPlaybackOggVorbis) TypeManager.registerEngineType("AudioStreamPlaybackPlaylist", AudioStreamPlaybackPlaylist::class, ::AudioStreamPlaybackPlaylist) TypeManager.registerEngineType("AudioStreamPlaybackPolyphonic", AudioStreamPlaybackPolyphonic::class, ::AudioStreamPlaybackPolyphonic) - TypeManager.registerEngineType("AudioStreamPlaybackResampled", AudioStreamPlaybackResampled::class, ::AudioStreamPlaybackResampled) + TypeManager.registerEngineType("AudioStreamPlaybackResampled", AudioStreamPlaybackResampled::class, null) TypeManager.registerEngineType("AudioStreamPlaybackSynchronized", AudioStreamPlaybackSynchronized::class, ::AudioStreamPlaybackSynchronized) TypeManager.registerEngineType("AudioStreamPlayer", AudioStreamPlayer::class, ::AudioStreamPlayer) TypeManager.registerEngineType("AudioStreamPlayer2D", AudioStreamPlayer2D::class, ::AudioStreamPlayer2D) @@ -3012,10 +3012,10 @@ public fun registerEngineTypes(): Unit { TypeManager.registerEngineType("Marker3D", Marker3D::class, ::Marker3D) TypeManager.registerSingleton("Marshalls") { Marshalls } TypeManager.registerEngineType("Marshalls", Marshalls::class) { Marshalls } - TypeManager.registerEngineType("Material", Material::class, ::Material) + TypeManager.registerEngineType("Material", Material::class, null) TypeManager.registerEngineType("MenuBar", MenuBar::class, ::MenuBar) TypeManager.registerEngineType("MenuButton", MenuButton::class, ::MenuButton) - TypeManager.registerEngineType("Mesh", Mesh::class, ::Mesh) + TypeManager.registerEngineType("Mesh", Mesh::class, null) TypeManager.registerEngineType("MeshConvexDecompositionSettings", MeshConvexDecompositionSettings::class, ::MeshConvexDecompositionSettings) TypeManager.registerEngineType("MeshDataTool", MeshDataTool::class, ::MeshDataTool) TypeManager.registerEngineType("MeshInstance2D", MeshInstance2D::class, ::MeshInstance2D) @@ -3026,14 +3026,14 @@ public fun registerEngineTypes(): Unit { TypeManager.registerEngineType("MissingNode", MissingNode::class, ::MissingNode) TypeManager.registerEngineType("MissingResource", MissingResource::class, ::MissingResource) TypeManager.registerEngineType("MobileVRInterface", MobileVRInterface::class, ::MobileVRInterface) - TypeManager.registerEngineType("MovieWriter", MovieWriter::class, ::MovieWriter) + TypeManager.registerEngineType("MovieWriter", MovieWriter::class, null) TypeManager.registerEngineType("MultiMesh", MultiMesh::class, ::MultiMesh) TypeManager.registerEngineType("MultiMeshInstance2D", MultiMeshInstance2D::class, ::MultiMeshInstance2D) TypeManager.registerEngineType("MultiMeshInstance3D", MultiMeshInstance3D::class, ::MultiMeshInstance3D) TypeManager.registerEngineType("MultiplayerAPI", MultiplayerAPI::class, ::MultiplayerAPI) TypeManager.registerEngineType("MultiplayerAPIExtension", MultiplayerAPIExtension::class, ::MultiplayerAPIExtension) TypeManager.registerEngineType("MultiplayerPeer", MultiplayerPeer::class, ::MultiplayerPeer) - TypeManager.registerEngineType("MultiplayerPeerExtension", MultiplayerPeerExtension::class, ::MultiplayerPeerExtension) + TypeManager.registerEngineType("MultiplayerPeerExtension", MultiplayerPeerExtension::class, null) TypeManager.registerEngineType("MultiplayerSpawner", MultiplayerSpawner::class, ::MultiplayerSpawner) TypeManager.registerEngineType("MultiplayerSynchronizer", MultiplayerSynchronizer::class, ::MultiplayerSynchronizer) TypeManager.registerEngineType("Mutex", Mutex::class, ::Mutex) @@ -3085,7 +3085,7 @@ public fun registerEngineTypes(): Unit { TypeManager.registerEngineType("OpenXRActionMap", OpenXRActionMap::class, ::OpenXRActionMap) TypeManager.registerEngineType("OpenXRActionSet", OpenXRActionSet::class, ::OpenXRActionSet) TypeManager.registerEngineType("OpenXRAnalogThresholdModifier", OpenXRAnalogThresholdModifier::class, ::OpenXRAnalogThresholdModifier) - TypeManager.registerEngineType("OpenXRBindingModifier", OpenXRBindingModifier::class, ::OpenXRBindingModifier) + TypeManager.registerEngineType("OpenXRBindingModifier", OpenXRBindingModifier::class, null) TypeManager.registerEngineType("OpenXRCompositionLayer", OpenXRCompositionLayer::class, ::OpenXRCompositionLayer) TypeManager.registerEngineType("OpenXRCompositionLayerCylinder", OpenXRCompositionLayerCylinder::class, ::OpenXRCompositionLayerCylinder) TypeManager.registerEngineType("OpenXRCompositionLayerEquirect", OpenXRCompositionLayerEquirect::class, ::OpenXRCompositionLayerEquirect) @@ -3109,7 +3109,7 @@ public fun registerEngineTypes(): Unit { TypeManager.registerEngineType("PackedScene", PackedScene::class, ::PackedScene) TypeManager.registerEngineType("PacketPeer", PacketPeer::class, ::PacketPeer) TypeManager.registerEngineType("PacketPeerDTLS", PacketPeerDTLS::class, ::PacketPeerDTLS) - TypeManager.registerEngineType("PacketPeerExtension", PacketPeerExtension::class, ::PacketPeerExtension) + TypeManager.registerEngineType("PacketPeerExtension", PacketPeerExtension::class, null) TypeManager.registerEngineType("PacketPeerStream", PacketPeerStream::class, ::PacketPeerStream) TypeManager.registerEngineType("PacketPeerUDP", PacketPeerUDP::class, ::PacketPeerUDP) TypeManager.registerEngineType("Panel", Panel::class, ::Panel) @@ -3132,13 +3132,13 @@ public fun registerEngineTypes(): Unit { TypeManager.registerEngineType("PhysicsBody2D", PhysicsBody2D::class, ::PhysicsBody2D) TypeManager.registerEngineType("PhysicsBody3D", PhysicsBody3D::class, ::PhysicsBody3D) TypeManager.registerEngineType("PhysicsDirectBodyState2D", PhysicsDirectBodyState2D::class, ::PhysicsDirectBodyState2D) - TypeManager.registerEngineType("PhysicsDirectBodyState2DExtension", PhysicsDirectBodyState2DExtension::class, ::PhysicsDirectBodyState2DExtension) + TypeManager.registerEngineType("PhysicsDirectBodyState2DExtension", PhysicsDirectBodyState2DExtension::class, null) TypeManager.registerEngineType("PhysicsDirectBodyState3D", PhysicsDirectBodyState3D::class, ::PhysicsDirectBodyState3D) - TypeManager.registerEngineType("PhysicsDirectBodyState3DExtension", PhysicsDirectBodyState3DExtension::class, ::PhysicsDirectBodyState3DExtension) + TypeManager.registerEngineType("PhysicsDirectBodyState3DExtension", PhysicsDirectBodyState3DExtension::class, null) TypeManager.registerEngineType("PhysicsDirectSpaceState2D", PhysicsDirectSpaceState2D::class, ::PhysicsDirectSpaceState2D) - TypeManager.registerEngineType("PhysicsDirectSpaceState2DExtension", PhysicsDirectSpaceState2DExtension::class, ::PhysicsDirectSpaceState2DExtension) + TypeManager.registerEngineType("PhysicsDirectSpaceState2DExtension", PhysicsDirectSpaceState2DExtension::class, null) TypeManager.registerEngineType("PhysicsDirectSpaceState3D", PhysicsDirectSpaceState3D::class, ::PhysicsDirectSpaceState3D) - TypeManager.registerEngineType("PhysicsDirectSpaceState3DExtension", PhysicsDirectSpaceState3DExtension::class, ::PhysicsDirectSpaceState3DExtension) + TypeManager.registerEngineType("PhysicsDirectSpaceState3DExtension", PhysicsDirectSpaceState3DExtension::class, null) TypeManager.registerEngineType("PhysicsMaterial", PhysicsMaterial::class, ::PhysicsMaterial) TypeManager.registerEngineType("PhysicsPointQueryParameters2D", PhysicsPointQueryParameters2D::class, ::PhysicsPointQueryParameters2D) TypeManager.registerEngineType("PhysicsPointQueryParameters3D", PhysicsPointQueryParameters3D::class, ::PhysicsPointQueryParameters3D) @@ -3152,7 +3152,7 @@ public fun registerEngineTypes(): Unit { TypeManager.registerEngineType("PhysicsServer3D", PhysicsServer3D::class) { PhysicsServer3D } TypeManager.registerSingleton("PhysicsServer3DManager") { PhysicsServer3DManager } TypeManager.registerEngineType("PhysicsServer3DManager", PhysicsServer3DManager::class) { PhysicsServer3DManager } - TypeManager.registerEngineType("PhysicsServer3DRenderingServerHandler", PhysicsServer3DRenderingServerHandler::class, ::PhysicsServer3DRenderingServerHandler) + TypeManager.registerEngineType("PhysicsServer3DRenderingServerHandler", PhysicsServer3DRenderingServerHandler::class, null) TypeManager.registerEngineType("PhysicsShapeQueryParameters2D", PhysicsShapeQueryParameters2D::class, ::PhysicsShapeQueryParameters2D) TypeManager.registerEngineType("PhysicsShapeQueryParameters3D", PhysicsShapeQueryParameters3D::class, ::PhysicsShapeQueryParameters3D) TypeManager.registerEngineType("PhysicsTestMotionParameters2D", PhysicsTestMotionParameters2D::class, ::PhysicsTestMotionParameters2D) @@ -3252,9 +3252,9 @@ public fun registerEngineTypes(): Unit { TypeManager.registerEngineType("SceneTree", SceneTree::class, ::SceneTree) TypeManager.registerEngineType("SceneTreeTimer", SceneTreeTimer::class, ::SceneTreeTimer) TypeManager.registerEngineType("Script", Script::class, ::Script) - TypeManager.registerEngineType("ScriptExtension", ScriptExtension::class, ::ScriptExtension) + TypeManager.registerEngineType("ScriptExtension", ScriptExtension::class, null) TypeManager.registerEngineType("ScriptLanguage", ScriptLanguage::class, ::ScriptLanguage) - TypeManager.registerEngineType("ScriptLanguageExtension", ScriptLanguageExtension::class, ::ScriptLanguageExtension) + TypeManager.registerEngineType("ScriptLanguageExtension", ScriptLanguageExtension::class, null) TypeManager.registerEngineType("ScrollBar", ScrollBar::class, ::ScrollBar) TypeManager.registerEngineType("ScrollContainer", ScrollContainer::class, ::ScrollContainer) TypeManager.registerEngineType("SegmentShape2D", SegmentShape2D::class, ::SegmentShape2D) @@ -3315,11 +3315,11 @@ public fun registerEngineTypes(): Unit { TypeManager.registerEngineType("StatusIndicator", StatusIndicator::class, ::StatusIndicator) TypeManager.registerEngineType("StreamPeer", StreamPeer::class, ::StreamPeer) TypeManager.registerEngineType("StreamPeerBuffer", StreamPeerBuffer::class, ::StreamPeerBuffer) - TypeManager.registerEngineType("StreamPeerExtension", StreamPeerExtension::class, ::StreamPeerExtension) + TypeManager.registerEngineType("StreamPeerExtension", StreamPeerExtension::class, null) TypeManager.registerEngineType("StreamPeerGZIP", StreamPeerGZIP::class, ::StreamPeerGZIP) TypeManager.registerEngineType("StreamPeerTCP", StreamPeerTCP::class, ::StreamPeerTCP) TypeManager.registerEngineType("StreamPeerTLS", StreamPeerTLS::class, ::StreamPeerTLS) - TypeManager.registerEngineType("StyleBox", StyleBox::class, ::StyleBox) + TypeManager.registerEngineType("StyleBox", StyleBox::class, null) TypeManager.registerEngineType("StyleBoxEmpty", StyleBoxEmpty::class, ::StyleBoxEmpty) TypeManager.registerEngineType("StyleBoxFlat", StyleBoxFlat::class, ::StyleBoxFlat) TypeManager.registerEngineType("StyleBoxLine", StyleBoxLine::class, ::StyleBoxLine) @@ -3341,20 +3341,20 @@ public fun registerEngineTypes(): Unit { TypeManager.registerEngineType("TextServer", TextServer::class, ::TextServer) TypeManager.registerEngineType("TextServerAdvanced", TextServerAdvanced::class, ::TextServerAdvanced) TypeManager.registerEngineType("TextServerDummy", TextServerDummy::class, ::TextServerDummy) - TypeManager.registerEngineType("TextServerExtension", TextServerExtension::class, ::TextServerExtension) + TypeManager.registerEngineType("TextServerExtension", TextServerExtension::class, null) TypeManager.registerSingleton("TextServerManager") { TextServerManager } TypeManager.registerEngineType("TextServerManager", TextServerManager::class) { TextServerManager } TypeManager.registerEngineType("Texture", Texture::class, ::Texture) - TypeManager.registerEngineType("Texture2D", Texture2D::class, ::Texture2D) + TypeManager.registerEngineType("Texture2D", Texture2D::class, null) TypeManager.registerEngineType("Texture2DArray", Texture2DArray::class, ::Texture2DArray) TypeManager.registerEngineType("Texture2DArrayRD", Texture2DArrayRD::class, ::Texture2DArrayRD) TypeManager.registerEngineType("Texture2DRD", Texture2DRD::class, ::Texture2DRD) - TypeManager.registerEngineType("Texture3D", Texture3D::class, ::Texture3D) + TypeManager.registerEngineType("Texture3D", Texture3D::class, null) TypeManager.registerEngineType("Texture3DRD", Texture3DRD::class, ::Texture3DRD) TypeManager.registerEngineType("TextureButton", TextureButton::class, ::TextureButton) TypeManager.registerEngineType("TextureCubemapArrayRD", TextureCubemapArrayRD::class, ::TextureCubemapArrayRD) TypeManager.registerEngineType("TextureCubemapRD", TextureCubemapRD::class, ::TextureCubemapRD) - TypeManager.registerEngineType("TextureLayered", TextureLayered::class, ::TextureLayered) + TypeManager.registerEngineType("TextureLayered", TextureLayered::class, null) TypeManager.registerEngineType("TextureLayeredRD", TextureLayeredRD::class, ::TextureLayeredRD) TypeManager.registerEngineType("TextureProgressBar", TextureProgressBar::class, ::TextureProgressBar) TypeManager.registerEngineType("TextureRect", TextureRect::class, ::TextureRect) @@ -3399,7 +3399,7 @@ public fun registerEngineTypes(): Unit { TypeManager.registerEngineType("VehicleBody3D", VehicleBody3D::class, ::VehicleBody3D) TypeManager.registerEngineType("VehicleWheel3D", VehicleWheel3D::class, ::VehicleWheel3D) TypeManager.registerEngineType("VideoStream", VideoStream::class, ::VideoStream) - TypeManager.registerEngineType("VideoStreamPlayback", VideoStreamPlayback::class, ::VideoStreamPlayback) + TypeManager.registerEngineType("VideoStreamPlayback", VideoStreamPlayback::class, null) TypeManager.registerEngineType("VideoStreamPlayer", VideoStreamPlayer::class, ::VideoStreamPlayer) TypeManager.registerEngineType("VideoStreamTheora", VideoStreamTheora::class, ::VideoStreamTheora) TypeManager.registerEngineType("Viewport", Viewport::class, ::Viewport) @@ -3525,10 +3525,10 @@ public fun registerEngineTypes(): Unit { TypeManager.registerEngineType("VoxelGIData", VoxelGIData::class, ::VoxelGIData) TypeManager.registerEngineType("WeakRef", WeakRef::class, ::WeakRef) TypeManager.registerEngineType("WebRTCDataChannel", WebRTCDataChannel::class, ::WebRTCDataChannel) - TypeManager.registerEngineType("WebRTCDataChannelExtension", WebRTCDataChannelExtension::class, ::WebRTCDataChannelExtension) + TypeManager.registerEngineType("WebRTCDataChannelExtension", WebRTCDataChannelExtension::class, null) TypeManager.registerEngineType("WebRTCMultiplayerPeer", WebRTCMultiplayerPeer::class, ::WebRTCMultiplayerPeer) TypeManager.registerEngineType("WebRTCPeerConnection", WebRTCPeerConnection::class, ::WebRTCPeerConnection) - TypeManager.registerEngineType("WebRTCPeerConnectionExtension", WebRTCPeerConnectionExtension::class, ::WebRTCPeerConnectionExtension) + TypeManager.registerEngineType("WebRTCPeerConnectionExtension", WebRTCPeerConnectionExtension::class, null) TypeManager.registerEngineType("WebSocketMultiplayerPeer", WebSocketMultiplayerPeer::class, ::WebSocketMultiplayerPeer) TypeManager.registerEngineType("WebSocketPeer", WebSocketPeer::class, ::WebSocketPeer) TypeManager.registerEngineType("WebXRInterface", WebXRInterface::class, ::WebXRInterface) diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AStar2D.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AStar2D.kt index dc1dedd60..b6f57b6dc 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AStar2D.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AStar2D.kt @@ -49,7 +49,7 @@ public open class AStar2D : RefCounted() { * Note that this function is hidden in the default [AStar2D] class. */ public open fun _estimateCost(fromId: Long, endId: Long): Float { - throw NotImplementedError("_estimateCost is not implemented for AStar2D") + throw NotImplementedError("AStar2D::_estimateCost is not implemented.") } /** @@ -58,7 +58,7 @@ public open class AStar2D : RefCounted() { * Note that this function is hidden in the default [AStar2D] class. */ public open fun _computeCost(fromId: Long, toId: Long): Float { - throw NotImplementedError("_computeCost is not implemented for AStar2D") + throw NotImplementedError("AStar2D::_computeCost is not implemented.") } /** diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AStar3D.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AStar3D.kt index 99dcb4a8c..bc5b28075 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AStar3D.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AStar3D.kt @@ -113,7 +113,7 @@ public open class AStar3D : RefCounted() { * Note that this function is hidden in the default [AStar3D] class. */ public open fun _estimateCost(fromId: Long, endId: Long): Float { - throw NotImplementedError("_estimateCost is not implemented for AStar3D") + throw NotImplementedError("AStar3D::_estimateCost is not implemented.") } /** @@ -122,7 +122,7 @@ public open class AStar3D : RefCounted() { * Note that this function is hidden in the default [AStar3D] class. */ public open fun _computeCost(fromId: Long, toId: Long): Float { - throw NotImplementedError("_computeCost is not implemented for AStar3D") + throw NotImplementedError("AStar3D::_computeCost is not implemented.") } /** diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AStarGrid2D.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AStarGrid2D.kt index d072c9c02..55eec2303 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AStarGrid2D.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AStarGrid2D.kt @@ -309,7 +309,7 @@ public open class AStarGrid2D : RefCounted() { * Note that this function is hidden in the default [AStarGrid2D] class. */ public open fun _estimateCost(fromId: Vector2i, endId: Vector2i): Float { - throw NotImplementedError("_estimateCost is not implemented for AStarGrid2D") + throw NotImplementedError("AStarGrid2D::_estimateCost is not implemented.") } /** @@ -318,7 +318,7 @@ public open class AStarGrid2D : RefCounted() { * Note that this function is hidden in the default [AStarGrid2D] class. */ public open fun _computeCost(fromId: Vector2i, toId: Vector2i): Float { - throw NotImplementedError("_computeCost is not implemented for AStarGrid2D") + throw NotImplementedError("AStarGrid2D::_computeCost is not implemented.") } public final fun setRegion(region: Rect2i): Unit { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AnimatedTexture.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AnimatedTexture.kt index 7da9de7e5..528238b58 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AnimatedTexture.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AnimatedTexture.kt @@ -20,6 +20,7 @@ import kotlin.Double import kotlin.Float import kotlin.Int import kotlin.Long +import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit import kotlin.jvm.JvmName @@ -203,6 +204,20 @@ public open class AnimatedTexture : Texture2D() { return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getWidth(): Int { + throw NotImplementedError("AnimatedTexture::_getWidth can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getHeight(): Int { + throw NotImplementedError("AnimatedTexture::_getHeight can't be called from the JVM.") + } + public companion object { /** * The maximum number of frames supported by [AnimatedTexture]. If you need more frames in your diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AnimationMixer.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AnimationMixer.kt index e80a9d615..aa6dce9e3 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AnimationMixer.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AnimationMixer.kt @@ -259,7 +259,7 @@ public open class AnimationMixer internal constructor() : Node() { objectId: Long, objectSubIdx: Int, ): Any? { - throw NotImplementedError("_postProcessKeyValue is not implemented for AnimationMixer") + throw NotImplementedError("AnimationMixer::_postProcessKeyValue is not implemented.") } /** diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AnimationNode.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AnimationNode.kt index 19bff37fb..634708917 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AnimationNode.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AnimationNode.kt @@ -106,7 +106,7 @@ public open class AnimationNode : Resource() { * animation nodes in order as a `name: node` dictionary. */ public open fun _getChildNodes(): Dictionary { - throw NotImplementedError("_getChildNodes is not implemented for AnimationNode") + throw NotImplementedError("AnimationNode::_getChildNodes is not implemented.") } /** @@ -116,7 +116,7 @@ public open class AnimationNode : Resource() { * [Object.getPropertyList]. */ public open fun _getParameterList(): VariantArray { - throw NotImplementedError("_getParameterList is not implemented for AnimationNode") + throw NotImplementedError("AnimationNode::_getParameterList is not implemented.") } /** @@ -124,7 +124,7 @@ public open class AnimationNode : Resource() { * animation node by its [name]. */ public open fun _getChildByName(name: StringName): AnimationNode? { - throw NotImplementedError("_getChildByName is not implemented for AnimationNode") + throw NotImplementedError("AnimationNode::_getChildByName is not implemented.") } /** @@ -133,7 +133,7 @@ public open class AnimationNode : Resource() { * resource can be reused in multiple trees. */ public open fun _getParameterDefaultValue(parameter: StringName): Any? { - throw NotImplementedError("_getParameterDefaultValue is not implemented for AnimationNode") + throw NotImplementedError("AnimationNode::_getParameterDefaultValue is not implemented.") } /** @@ -142,7 +142,7 @@ public open class AnimationNode : Resource() { * a resource can be reused in multiple trees. */ public open fun _isParameterReadOnly(parameter: StringName): Boolean { - throw NotImplementedError("_isParameterReadOnly is not implemented for AnimationNode") + throw NotImplementedError("AnimationNode::_isParameterReadOnly is not implemented.") } /** @@ -161,7 +161,7 @@ public open class AnimationNode : Resource() { isExternalSeeking: Boolean, testOnly: Boolean, ): Double { - throw NotImplementedError("_process is not implemented for AnimationNode") + throw NotImplementedError("AnimationNode::_process is not implemented.") } /** @@ -169,7 +169,7 @@ public open class AnimationNode : Resource() { * caption for this animation node. */ public open fun _getCaption(): String { - throw NotImplementedError("_getCaption is not implemented for AnimationNode") + throw NotImplementedError("AnimationNode::_getCaption is not implemented.") } /** @@ -177,7 +177,7 @@ public open class AnimationNode : Resource() { * blend tree editor should display filter editing on this animation node. */ public open fun _hasFilter(): Boolean { - throw NotImplementedError("_hasFilter is not implemented for AnimationNode") + throw NotImplementedError("AnimationNode::_hasFilter is not implemented.") } /** diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AnimationNodeExtension.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AnimationNodeExtension.kt index b94509555..8db9cdf35 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AnimationNodeExtension.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AnimationNodeExtension.kt @@ -18,7 +18,6 @@ import godot.core.VariantParser.PACKED_FLOAT_32_ARRAY import kotlin.Boolean import kotlin.Double import kotlin.Int -import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit import kotlin.jvm.JvmStatic @@ -29,7 +28,7 @@ import kotlin.jvm.JvmStatic * classes. It is used to create custom nodes for the [AnimationTree] system. */ @GodotBaseType -public open class AnimationNodeExtension : AnimationNode() { +public abstract class AnimationNodeExtension : AnimationNode() { public override fun new(scriptIndex: Int): Unit { createNativeObject(24, scriptIndex) } @@ -50,10 +49,8 @@ public open class AnimationNodeExtension : AnimationNode() { * whether the animation is infinite (encoded as a float greater than `0`). All values must be * included in the returned array. */ - public open fun _processAnimationNode(playbackInfo: PackedFloat64Array, testOnly: Boolean): - PackedFloat32Array { - throw NotImplementedError("_processAnimationNode is not implemented for AnimationNodeExtension") - } + public abstract fun _processAnimationNode(playbackInfo: PackedFloat64Array, testOnly: Boolean): + PackedFloat32Array public companion object { /** diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/ArrayMesh.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/ArrayMesh.kt index 199f67b33..bde12de47 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/ArrayMesh.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/ArrayMesh.kt @@ -34,6 +34,7 @@ import kotlin.Any import kotlin.Float import kotlin.Int import kotlin.Long +import kotlin.NotImplementedError import kotlin.String import kotlin.Suppress import kotlin.Unit @@ -414,6 +415,104 @@ public open class ArrayMesh : Mesh() { return (TransferContext.readReturnValue(OBJECT) as ArrayMesh?) } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getSurfaceCount(): Int { + throw NotImplementedError("ArrayMesh::_getSurfaceCount can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _surfaceGetArrayLen(index: Int): Int { + throw NotImplementedError("ArrayMesh::_surfaceGetArrayLen can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _surfaceGetArrayIndexLen(index: Int): Int { + throw NotImplementedError("ArrayMesh::_surfaceGetArrayIndexLen can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _surfaceGetArrays(index: Int): VariantArray { + throw NotImplementedError("ArrayMesh::_surfaceGetArrays can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _surfaceGetBlendShapeArrays(index: Int): VariantArray> { + throw NotImplementedError("ArrayMesh::_surfaceGetBlendShapeArrays can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _surfaceGetLods(index: Int): Dictionary { + throw NotImplementedError("ArrayMesh::_surfaceGetLods can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _surfaceGetFormat(index: Int): Long { + throw NotImplementedError("ArrayMesh::_surfaceGetFormat can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _surfaceGetPrimitiveType(index: Int): Long { + throw NotImplementedError("ArrayMesh::_surfaceGetPrimitiveType can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _surfaceSetMaterial(index: Int, material: Material?): Unit { + throw NotImplementedError("ArrayMesh::_surfaceSetMaterial can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _surfaceGetMaterial(index: Int): Material? { + throw NotImplementedError("ArrayMesh::_surfaceGetMaterial can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getBlendShapeCount(): Int { + throw NotImplementedError("ArrayMesh::_getBlendShapeCount can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getBlendShapeName(index: Int): StringName { + throw NotImplementedError("ArrayMesh::_getBlendShapeName can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _setBlendShapeName(index: Int, name: StringName): Unit { + throw NotImplementedError("ArrayMesh::_setBlendShapeName can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getAabb(): AABB { + throw NotImplementedError("ArrayMesh::_getAabb can't be called from the JVM.") + } + /** * Adds name for a blend shape that will be added with [addSurfaceFromArrays]. Must be called * before surface is added. diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AtlasTexture.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AtlasTexture.kt index b078356ac..702672e5c 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AtlasTexture.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AtlasTexture.kt @@ -19,6 +19,7 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.RECT2 import kotlin.Boolean import kotlin.Int +import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit import kotlin.jvm.JvmName @@ -189,6 +190,20 @@ public open class AtlasTexture : Texture2D() { return (TransferContext.readReturnValue(BOOL) as Boolean) } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getWidth(): Int { + throw NotImplementedError("AtlasTexture::_getWidth can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getHeight(): Int { + throw NotImplementedError("AtlasTexture::_getHeight can't be called from the JVM.") + } + public companion object public object MethodBindings { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffect.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffect.kt index 8e23eabda..82d8e2c0d 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffect.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffect.kt @@ -8,7 +8,6 @@ package godot.api import godot.`annotation`.GodotBaseType import kotlin.Int -import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit @@ -23,7 +22,7 @@ import kotlin.Unit * properties. */ @GodotBaseType -public open class AudioEffect : Resource() { +public abstract class AudioEffect : Resource() { public override fun new(scriptIndex: Int): Unit { createNativeObject(45, scriptIndex) } @@ -48,9 +47,7 @@ public open class AudioEffect : Resource() { * instance. Depending on the implementation this allows the effect instance to listen for changes at * run-time and be modified accordingly. */ - public open fun _instantiate(): AudioEffectInstance? { - throw NotImplementedError("_instantiate is not implemented for AudioEffect") - } + public abstract fun _instantiate(): AudioEffectInstance? public companion object diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectAmplify.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectAmplify.kt index 9cc4def49..a8cddbf04 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectAmplify.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectAmplify.kt @@ -15,6 +15,7 @@ import godot.core.VariantParser.NIL import kotlin.Double import kotlin.Float import kotlin.Int +import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit import kotlin.jvm.JvmName @@ -77,6 +78,13 @@ public open class AudioEffectAmplify : AudioEffect() { return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _instantiate(): AudioEffectInstance? { + throw NotImplementedError("AudioEffectAmplify::_instantiate can't be called from the JVM.") + } + public companion object public object MethodBindings { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectCapture.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectCapture.kt index 09ff5e6bc..7f0d8844f 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectCapture.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectCapture.kt @@ -21,6 +21,7 @@ import kotlin.Double import kotlin.Float import kotlin.Int import kotlin.Long +import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit import kotlin.jvm.JvmName @@ -138,6 +139,13 @@ public open class AudioEffectCapture : AudioEffect() { return (TransferContext.readReturnValue(LONG) as Long) } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _instantiate(): AudioEffectInstance? { + throw NotImplementedError("AudioEffectCapture::_instantiate can't be called from the JVM.") + } + public companion object public object MethodBindings { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectChorus.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectChorus.kt index 650c629a1..5cf612cbe 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectChorus.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectChorus.kt @@ -17,6 +17,7 @@ import kotlin.Double import kotlin.Float import kotlin.Int import kotlin.Long +import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit import kotlin.jvm.JvmName @@ -163,6 +164,13 @@ public open class AudioEffectChorus : AudioEffect() { return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _instantiate(): AudioEffectInstance? { + throw NotImplementedError("AudioEffectChorus::_instantiate can't be called from the JVM.") + } + public companion object public object MethodBindings { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectCompressor.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectCompressor.kt index d2a17a649..68a4d5eae 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectCompressor.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectCompressor.kt @@ -18,6 +18,7 @@ import godot.core.asCachedStringName import kotlin.Double import kotlin.Float import kotlin.Int +import kotlin.NotImplementedError import kotlin.String import kotlin.Suppress import kotlin.Unit @@ -205,6 +206,13 @@ public open class AudioEffectCompressor : AudioEffect() { return (TransferContext.readReturnValue(STRING_NAME) as StringName) } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _instantiate(): AudioEffectInstance? { + throw NotImplementedError("AudioEffectCompressor::_instantiate can't be called from the JVM.") + } + public final fun setSidechain(sidechain: String) = setSidechain(sidechain.asCachedStringName()) public companion object diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectDelay.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectDelay.kt index 4d8d18af6..4256f1c01 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectDelay.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectDelay.kt @@ -17,6 +17,7 @@ import kotlin.Boolean import kotlin.Double import kotlin.Float import kotlin.Int +import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit import kotlin.jvm.JvmName @@ -320,6 +321,13 @@ public open class AudioEffectDelay : AudioEffect() { return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _instantiate(): AudioEffectInstance? { + throw NotImplementedError("AudioEffectDelay::_instantiate can't be called from the JVM.") + } + public companion object public object MethodBindings { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectDistortion.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectDistortion.kt index e0fecfb5f..a1faaa2b0 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectDistortion.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectDistortion.kt @@ -17,6 +17,7 @@ import kotlin.Double import kotlin.Float import kotlin.Int import kotlin.Long +import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit import kotlin.jvm.JvmName @@ -147,6 +148,13 @@ public open class AudioEffectDistortion : AudioEffect() { return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _instantiate(): AudioEffectInstance? { + throw NotImplementedError("AudioEffectDistortion::_instantiate can't be called from the JVM.") + } + public enum class Mode( id: Long, ) { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectEQ.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectEQ.kt index 6befe3b8b..61156f4b0 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectEQ.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectEQ.kt @@ -17,6 +17,7 @@ import kotlin.Double import kotlin.Float import kotlin.Int import kotlin.Long +import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit @@ -58,6 +59,13 @@ public open class AudioEffectEQ : AudioEffect() { return (TransferContext.readReturnValue(LONG) as Long).toInt() } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _instantiate(): AudioEffectInstance? { + throw NotImplementedError("AudioEffectEQ::_instantiate can't be called from the JVM.") + } + public companion object public object MethodBindings { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectFilter.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectFilter.kt index 68d739d5f..13b1d78d5 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectFilter.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectFilter.kt @@ -17,6 +17,7 @@ import kotlin.Double import kotlin.Float import kotlin.Int import kotlin.Long +import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit import kotlin.jvm.JvmName @@ -119,6 +120,13 @@ public open class AudioEffectFilter : AudioEffect() { return FilterDB.from(TransferContext.readReturnValue(LONG) as Long) } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _instantiate(): AudioEffectInstance? { + throw NotImplementedError("AudioEffectFilter::_instantiate can't be called from the JVM.") + } + public enum class FilterDB( id: Long, ) { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectHardLimiter.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectHardLimiter.kt index 979dee25b..4486a8655 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectHardLimiter.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectHardLimiter.kt @@ -15,6 +15,7 @@ import godot.core.VariantParser.NIL import kotlin.Double import kotlin.Float import kotlin.Int +import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit import kotlin.jvm.JvmName @@ -101,6 +102,13 @@ public open class AudioEffectHardLimiter : AudioEffect() { return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _instantiate(): AudioEffectInstance? { + throw NotImplementedError("AudioEffectHardLimiter::_instantiate can't be called from the JVM.") + } + public companion object public object MethodBindings { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectInstance.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectInstance.kt index dfaf76e43..17362f912 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectInstance.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectInstance.kt @@ -20,7 +20,7 @@ import kotlin.Unit * [AudioServer.getBusEffectInstance]. */ @GodotBaseType -public open class AudioEffectInstance : RefCounted() { +public abstract class AudioEffectInstance : RefCounted() { public override fun new(scriptIndex: Int): Unit { createNativeObject(62, scriptIndex) } @@ -32,7 +32,7 @@ public open class AudioEffectInstance : RefCounted() { * been muted or cannot otherwise be heard. */ public open fun _processSilence(): Boolean { - throw NotImplementedError("_processSilence is not implemented for AudioEffectInstance") + throw NotImplementedError("AudioEffectInstance::_processSilence is not implemented.") } public companion object diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectLimiter.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectLimiter.kt index 7de014b8e..6391ca695 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectLimiter.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectLimiter.kt @@ -15,6 +15,7 @@ import godot.core.VariantParser.NIL import kotlin.Double import kotlin.Float import kotlin.Int +import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit import kotlin.jvm.JvmName @@ -119,6 +120,13 @@ public open class AudioEffectLimiter : AudioEffect() { return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _instantiate(): AudioEffectInstance? { + throw NotImplementedError("AudioEffectLimiter::_instantiate can't be called from the JVM.") + } + public companion object public object MethodBindings { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectPanner.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectPanner.kt index 66268269e..e5f3799cc 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectPanner.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectPanner.kt @@ -15,6 +15,7 @@ import godot.core.VariantParser.NIL import kotlin.Double import kotlin.Float import kotlin.Int +import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit import kotlin.jvm.JvmName @@ -50,6 +51,13 @@ public open class AudioEffectPanner : AudioEffect() { return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _instantiate(): AudioEffectInstance? { + throw NotImplementedError("AudioEffectPanner::_instantiate can't be called from the JVM.") + } + public companion object public object MethodBindings { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectPhaser.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectPhaser.kt index 26c230c02..e7e2a813b 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectPhaser.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectPhaser.kt @@ -15,6 +15,7 @@ import godot.core.VariantParser.NIL import kotlin.Double import kotlin.Float import kotlin.Int +import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit import kotlin.jvm.JvmName @@ -142,6 +143,13 @@ public open class AudioEffectPhaser : AudioEffect() { return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _instantiate(): AudioEffectInstance? { + throw NotImplementedError("AudioEffectPhaser::_instantiate can't be called from the JVM.") + } + public companion object public object MethodBindings { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectPitchShift.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectPitchShift.kt index db28ca081..ffd6a16cb 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectPitchShift.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectPitchShift.kt @@ -17,6 +17,7 @@ import kotlin.Double import kotlin.Float import kotlin.Int import kotlin.Long +import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit import kotlin.jvm.JvmName @@ -103,6 +104,13 @@ public open class AudioEffectPitchShift : AudioEffect() { return FFTSize.from(TransferContext.readReturnValue(LONG) as Long) } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _instantiate(): AudioEffectInstance? { + throw NotImplementedError("AudioEffectPitchShift::_instantiate can't be called from the JVM.") + } + public enum class FFTSize( id: Long, ) { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectRecord.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectRecord.kt index e3f7b37d2..3231c21ac 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectRecord.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectRecord.kt @@ -17,6 +17,7 @@ import godot.core.VariantParser.OBJECT import kotlin.Boolean import kotlin.Int import kotlin.Long +import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit import kotlin.jvm.JvmName @@ -90,6 +91,13 @@ public open class AudioEffectRecord : AudioEffect() { return (TransferContext.readReturnValue(OBJECT) as AudioStreamWAV?) } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _instantiate(): AudioEffectInstance? { + throw NotImplementedError("AudioEffectRecord::_instantiate can't be called from the JVM.") + } + public companion object public object MethodBindings { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectReverb.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectReverb.kt index a7cfd8cb2..e1bd7611f 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectReverb.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectReverb.kt @@ -15,6 +15,7 @@ import godot.core.VariantParser.NIL import kotlin.Double import kotlin.Float import kotlin.Int +import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit import kotlin.jvm.JvmName @@ -210,6 +211,13 @@ public open class AudioEffectReverb : AudioEffect() { return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _instantiate(): AudioEffectInstance? { + throw NotImplementedError("AudioEffectReverb::_instantiate can't be called from the JVM.") + } + public companion object public object MethodBindings { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectSpectrumAnalyzer.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectSpectrumAnalyzer.kt index 89cc14f64..aa466adda 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectSpectrumAnalyzer.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectSpectrumAnalyzer.kt @@ -17,6 +17,7 @@ import kotlin.Double import kotlin.Float import kotlin.Int import kotlin.Long +import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit import kotlin.jvm.JvmName @@ -103,6 +104,13 @@ public open class AudioEffectSpectrumAnalyzer : AudioEffect() { return FFTSize.from(TransferContext.readReturnValue(LONG) as Long) } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _instantiate(): AudioEffectInstance? { + throw NotImplementedError("AudioEffectSpectrumAnalyzer::_instantiate can't be called from the JVM.") + } + public enum class FFTSize( id: Long, ) { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectStereoEnhance.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectStereoEnhance.kt index f9bbd5a6b..fe5b83f4a 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectStereoEnhance.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioEffectStereoEnhance.kt @@ -15,6 +15,7 @@ import godot.core.VariantParser.NIL import kotlin.Double import kotlin.Float import kotlin.Int +import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit import kotlin.jvm.JvmName @@ -97,6 +98,13 @@ public open class AudioEffectStereoEnhance : AudioEffect() { return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _instantiate(): AudioEffectInstance? { + throw NotImplementedError("AudioEffectStereoEnhance::_instantiate can't be called from the JVM.") + } + public companion object public object MethodBindings { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioStream.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioStream.kt index 862d03ff3..10b137406 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioStream.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioStream.kt @@ -45,14 +45,14 @@ public open class AudioStream : Resource() { * new [AudioStreamPlayback] created when the stream is played (such as by an [AudioStreamPlayer]). */ public open fun _instantiatePlayback(): AudioStreamPlayback? { - throw NotImplementedError("_instantiatePlayback is not implemented for AudioStream") + throw NotImplementedError("AudioStream::_instantiatePlayback is not implemented.") } /** * Override this method to customize the name assigned to this audio stream. Unused by the engine. */ public open fun _getStreamName(): String { - throw NotImplementedError("_getStreamName is not implemented for AudioStream") + throw NotImplementedError("AudioStream::_getStreamName is not implemented.") } /** @@ -60,7 +60,7 @@ public open class AudioStream : Resource() { * of this audio stream, in seconds. */ public open fun _getLength(): Double { - throw NotImplementedError("_getLength is not implemented for AudioStream") + throw NotImplementedError("AudioStream::_getLength is not implemented.") } /** @@ -68,7 +68,7 @@ public open class AudioStream : Resource() { * this audio stream only supports one channel. */ public open fun _isMonophonic(): Boolean { - throw NotImplementedError("_isMonophonic is not implemented for AudioStream") + throw NotImplementedError("AudioStream::_isMonophonic is not implemented.") } /** @@ -79,7 +79,7 @@ public open class AudioStream : Resource() { * ([AudioStreamWAV.mixRate], for example). */ public open fun _getBpm(): Double { - throw NotImplementedError("_getBpm is not implemented for AudioStream") + throw NotImplementedError("AudioStream::_getBpm is not implemented.") } /** @@ -90,7 +90,7 @@ public open class AudioStream : Resource() { * ([AudioStreamWAV.mixRate], for example). */ public open fun _getBeatCount(): Int { - throw NotImplementedError("_getBeatCount is not implemented for AudioStream") + throw NotImplementedError("AudioStream::_getBeatCount is not implemented.") } /** @@ -99,21 +99,21 @@ public open class AudioStream : Resource() { * for this parameter must be added tho each dictionary in "default_value" field. */ public open fun _getParameterList(): VariantArray> { - throw NotImplementedError("_getParameterList is not implemented for AudioStream") + throw NotImplementedError("AudioStream::_getParameterList is not implemented.") } /** * Override this method to return `true` if this stream has a loop. */ public open fun _hasLoop(): Boolean { - throw NotImplementedError("_hasLoop is not implemented for AudioStream") + throw NotImplementedError("AudioStream::_hasLoop is not implemented.") } /** * Override this method to return the bar beats of this stream. */ public open fun _getBarBeats(): Int { - throw NotImplementedError("_getBarBeats is not implemented for AudioStream") + throw NotImplementedError("AudioStream::_getBarBeats is not implemented.") } /** diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioStreamGeneratorPlayback.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioStreamGeneratorPlayback.kt index c20240826..0f9c849e8 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioStreamGeneratorPlayback.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioStreamGeneratorPlayback.kt @@ -18,8 +18,10 @@ import godot.core.VariantParser.PACKED_VECTOR2_ARRAY import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import kotlin.Boolean +import kotlin.Float import kotlin.Int import kotlin.Long +import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit @@ -94,6 +96,13 @@ public open class AudioStreamGeneratorPlayback internal constructor() : TransferContext.callMethod(ptr, MethodBindings.clearBufferPtr, NIL) } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getStreamSamplingRate(): Float { + throw NotImplementedError("AudioStreamGeneratorPlayback::_getStreamSamplingRate can't be called from the JVM.") + } + public companion object public object MethodBindings { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioStreamPlayback.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioStreamPlayback.kt index d82f7ec56..a95c76030 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioStreamPlayback.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioStreamPlayback.kt @@ -34,7 +34,7 @@ import kotlin.jvm.JvmOverloads * usage. */ @GodotBaseType -public open class AudioStreamPlayback : RefCounted() { +public abstract class AudioStreamPlayback : RefCounted() { public override fun new(scriptIndex: Int): Unit { createNativeObject(87, scriptIndex) } @@ -44,7 +44,7 @@ public open class AudioStreamPlayback : RefCounted() { * such as by calling [AudioStreamPlayer.play]. */ public open fun _start(fromPos: Double): Unit { - throw NotImplementedError("_start is not implemented for AudioStreamPlayback") + throw NotImplementedError("AudioStreamPlayback::_start is not implemented.") } /** @@ -52,7 +52,7 @@ public open class AudioStreamPlayback : RefCounted() { * [AudioStreamPlayer.stop]. */ public open fun _stop(): Unit { - throw NotImplementedError("_stop is not implemented for AudioStreamPlayback") + throw NotImplementedError("AudioStreamPlayback::_stop is not implemented.") } /** @@ -60,7 +60,7 @@ public open class AudioStreamPlayback : RefCounted() { * stream. */ public open fun _isPlaying(): Boolean { - throw NotImplementedError("_isPlaying is not implemented for AudioStreamPlayback") + throw NotImplementedError("AudioStreamPlayback::_isPlaying is not implemented.") } /** @@ -68,14 +68,14 @@ public open class AudioStreamPlayback : RefCounted() { * playbacks always return `0`. */ public open fun _getLoopCount(): Int { - throw NotImplementedError("_getLoopCount is not implemented for AudioStreamPlayback") + throw NotImplementedError("AudioStreamPlayback::_getLoopCount is not implemented.") } /** * Overridable method. Should return the current progress along the audio stream, in seconds. */ public open fun _getPlaybackPosition(): Double { - throw NotImplementedError("_getPlaybackPosition is not implemented for AudioStreamPlayback") + throw NotImplementedError("AudioStreamPlayback::_getPlaybackPosition is not implemented.") } /** @@ -83,7 +83,7 @@ public open class AudioStreamPlayback : RefCounted() { * [position], such as by calling [AudioStreamPlayer.seek]. */ public open fun _seek(position: Double): Unit { - throw NotImplementedError("_seek is not implemented for AudioStreamPlayback") + throw NotImplementedError("AudioStreamPlayback::_seek is not implemented.") } /** @@ -92,21 +92,21 @@ public open class AudioStreamPlayback : RefCounted() { * method to "tag" the current position along the audio stream and display it in a preview. */ public open fun _tagUsedStreams(): Unit { - throw NotImplementedError("_tagUsedStreams is not implemented for AudioStreamPlayback") + throw NotImplementedError("AudioStreamPlayback::_tagUsedStreams is not implemented.") } /** * Set the current value of a playback parameter by name (see [AudioStream.GetParameterList]). */ public open fun _setParameter(name: StringName, `value`: Any?): Unit { - throw NotImplementedError("_setParameter is not implemented for AudioStreamPlayback") + throw NotImplementedError("AudioStreamPlayback::_setParameter is not implemented.") } /** * Return the current value of a playback parameter by name (see [AudioStream.GetParameterList]). */ public open fun _getParameter(name: StringName): Any? { - throw NotImplementedError("_getParameter is not implemented for AudioStreamPlayback") + throw NotImplementedError("AudioStreamPlayback::_getParameter is not implemented.") } /** diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioStreamPlaybackOggVorbis.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioStreamPlaybackOggVorbis.kt index b80ec4aa2..e54c32bf4 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioStreamPlaybackOggVorbis.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioStreamPlaybackOggVorbis.kt @@ -7,7 +7,9 @@ package godot.api import godot.`annotation`.GodotBaseType +import kotlin.Float import kotlin.Int +import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit @@ -17,6 +19,13 @@ public open class AudioStreamPlaybackOggVorbis : AudioStreamPlaybackResampled() createNativeObject(89, scriptIndex) } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getStreamSamplingRate(): Float { + throw NotImplementedError("AudioStreamPlaybackOggVorbis::_getStreamSamplingRate can't be called from the JVM.") + } + public companion object public object MethodBindings diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioStreamPlaybackResampled.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioStreamPlaybackResampled.kt index 0f32dc2e1..8982f84c1 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioStreamPlaybackResampled.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/AudioStreamPlaybackResampled.kt @@ -13,19 +13,16 @@ import godot.common.interop.VoidPtr import godot.core.VariantParser.NIL import kotlin.Float import kotlin.Int -import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit @GodotBaseType -public open class AudioStreamPlaybackResampled : AudioStreamPlayback() { +public abstract class AudioStreamPlaybackResampled : AudioStreamPlayback() { public override fun new(scriptIndex: Int): Unit { createNativeObject(92, scriptIndex) } - public open fun _getStreamSamplingRate(): Float { - throw NotImplementedError("_getStreamSamplingRate is not implemented for AudioStreamPlaybackResampled") - } + public abstract fun _getStreamSamplingRate(): Float public final fun beginResample(): Unit { TransferContext.writeArguments() diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/BaseButton.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/BaseButton.kt index c6902a85e..37188745a 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/BaseButton.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/BaseButton.kt @@ -192,14 +192,14 @@ public open class BaseButton : Control() { * [toggleMode] is active), use [_toggled] instead. */ public open fun _pressed(): Unit { - throw NotImplementedError("_pressed is not implemented for BaseButton") + throw NotImplementedError("BaseButton::_pressed is not implemented.") } /** * Called when the button is toggled (only if [toggleMode] is active). */ public open fun _toggled(toggledOn: Boolean): Unit { - throw NotImplementedError("_toggled is not implemented for BaseButton") + throw NotImplementedError("BaseButton::_toggled is not implemented.") } public final fun setPressed(pressed: Boolean): Unit { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/BaseMaterial3D.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/BaseMaterial3D.kt index 456045a7f..aaf040741 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/BaseMaterial3D.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/BaseMaterial3D.kt @@ -13,6 +13,7 @@ import godot.`internal`.memory.TransferContext import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color +import godot.core.RID import godot.core.VariantParser.BOOL import godot.core.VariantParser.COLOR import godot.core.VariantParser.DOUBLE @@ -26,6 +27,7 @@ import kotlin.Double import kotlin.Float import kotlin.Int import kotlin.Long +import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit import kotlin.jvm.JvmName @@ -2591,6 +2593,20 @@ public open class BaseMaterial3D internal constructor() : Material() { return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getShaderRid(): RID { + throw NotImplementedError("BaseMaterial3D::_getShaderRid can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getShaderMode(): Shader.Mode { + throw NotImplementedError("BaseMaterial3D::_getShaderMode can't be called from the JVM.") + } + public enum class TextureParam( id: Long, ) { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/CameraFeed.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/CameraFeed.kt index a472c11a6..483b77c0b 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/CameraFeed.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/CameraFeed.kt @@ -123,14 +123,14 @@ public open class CameraFeed : RefCounted() { * Called when the camera feed is activated. */ public open fun _activateFeed(): Boolean { - throw NotImplementedError("_activateFeed is not implemented for CameraFeed") + throw NotImplementedError("CameraFeed::_activateFeed is not implemented.") } /** * Called when the camera feed is deactivated. */ public open fun _deactivateFeed(): Unit { - throw NotImplementedError("_deactivateFeed is not implemented for CameraFeed") + throw NotImplementedError("CameraFeed::_deactivateFeed is not implemented.") } /** diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/CameraTexture.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/CameraTexture.kt index 45b82a80c..556342eea 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/CameraTexture.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/CameraTexture.kt @@ -16,6 +16,7 @@ import godot.core.VariantParser.NIL import kotlin.Boolean import kotlin.Int import kotlin.Long +import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit import kotlin.jvm.JvmName @@ -98,6 +99,20 @@ public open class CameraTexture : Texture2D() { return (TransferContext.readReturnValue(BOOL) as Boolean) } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getWidth(): Int { + throw NotImplementedError("CameraTexture::_getWidth can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getHeight(): Int { + throw NotImplementedError("CameraTexture::_getHeight can't be called from the JVM.") + } + public companion object public object MethodBindings { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/CanvasItem.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/CanvasItem.kt index 64c898a0b..efe469e6c 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/CanvasItem.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/CanvasItem.kt @@ -377,7 +377,7 @@ public open class CanvasItem internal constructor() : Node() { * Corresponds to the [NOTIFICATION_DRAW] notification in [Object.Notification]. */ public open fun _draw(): Unit { - throw NotImplementedError("_draw is not implemented for CanvasItem") + throw NotImplementedError("CanvasItem::_draw is not implemented.") } /** diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/CanvasItemMaterial.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/CanvasItemMaterial.kt index 73f35a1e7..204f18099 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/CanvasItemMaterial.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/CanvasItemMaterial.kt @@ -10,12 +10,14 @@ import godot.`annotation`.GodotBaseType import godot.`internal`.memory.TransferContext import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr +import godot.core.RID import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import kotlin.Boolean import kotlin.Int import kotlin.Long +import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit import kotlin.jvm.JvmName @@ -179,6 +181,20 @@ public open class CanvasItemMaterial : Material() { return (TransferContext.readReturnValue(BOOL) as Boolean) } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getShaderRid(): RID { + throw NotImplementedError("CanvasItemMaterial::_getShaderRid can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getShaderMode(): Shader.Mode { + throw NotImplementedError("CanvasItemMaterial::_getShaderMode can't be called from the JVM.") + } + public enum class BlendMode( id: Long, ) { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/CanvasTexture.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/CanvasTexture.kt index 119f02bc1..58b7adaf5 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/CanvasTexture.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/CanvasTexture.kt @@ -22,6 +22,7 @@ import kotlin.Double import kotlin.Float import kotlin.Int import kotlin.Long +import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit import kotlin.jvm.JvmName @@ -238,6 +239,20 @@ public open class CanvasTexture : Texture2D() { return CanvasItem.TextureRepeat.from(TransferContext.readReturnValue(LONG) as Long) } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getWidth(): Int { + throw NotImplementedError("CanvasTexture::_getWidth can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getHeight(): Int { + throw NotImplementedError("CanvasTexture::_getHeight can't be called from the JVM.") + } + public companion object public object MethodBindings { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/CodeEdit.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/CodeEdit.kt index a7aae2286..9b234e2f0 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/CodeEdit.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/CodeEdit.kt @@ -347,7 +347,7 @@ public open class CodeEdit : TextEdit() { * `true`, any existing text should be replaced. */ public open fun _confirmCodeCompletion(replace: Boolean): Unit { - throw NotImplementedError("_confirmCodeCompletion is not implemented for CodeEdit") + throw NotImplementedError("CodeEdit::_confirmCodeCompletion is not implemented.") } /** @@ -355,7 +355,7 @@ public open class CodeEdit : TextEdit() { * is `true`, any checks should be bypassed. */ public open fun _requestCodeCompletion(force: Boolean): Unit { - throw NotImplementedError("_requestCodeCompletion is not implemented for CodeEdit") + throw NotImplementedError("CodeEdit::_requestCodeCompletion is not implemented.") } /** @@ -366,7 +366,7 @@ public open class CodeEdit : TextEdit() { */ public open fun _filterCodeCompletionCandidates(candidates: VariantArray>): VariantArray> { - throw NotImplementedError("_filterCodeCompletionCandidates is not implemented for CodeEdit") + throw NotImplementedError("CodeEdit::_filterCodeCompletionCandidates is not implemented.") } public final fun setIndentSize(size: Int): Unit { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/CollisionObject2D.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/CollisionObject2D.kt index a01942b8b..0cc4cd89f 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/CollisionObject2D.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/CollisionObject2D.kt @@ -177,7 +177,7 @@ public open class CollisionObject2D internal constructor() : Node2D() { event: InputEvent?, shapeIdx: Int, ): Unit { - throw NotImplementedError("_inputEvent is not implemented for CollisionObject2D") + throw NotImplementedError("CollisionObject2D::_inputEvent is not implemented.") } /** @@ -186,7 +186,7 @@ public open class CollisionObject2D internal constructor() : Node2D() { * shapes within a single [CollisionObject2D] won't cause this function to be called. */ public open fun _mouseEnter(): Unit { - throw NotImplementedError("_mouseEnter is not implemented for CollisionObject2D") + throw NotImplementedError("CollisionObject2D::_mouseEnter is not implemented.") } /** @@ -195,7 +195,7 @@ public open class CollisionObject2D internal constructor() : Node2D() { * within a single [CollisionObject2D] won't cause this function to be called. */ public open fun _mouseExit(): Unit { - throw NotImplementedError("_mouseExit is not implemented for CollisionObject2D") + throw NotImplementedError("CollisionObject2D::_mouseExit is not implemented.") } /** @@ -204,7 +204,7 @@ public open class CollisionObject2D internal constructor() : Node2D() { * be `true` and at least one [collisionLayer] bit to be called. */ public open fun _mouseShapeEnter(shapeIdx: Int): Unit { - throw NotImplementedError("_mouseShapeEnter is not implemented for CollisionObject2D") + throw NotImplementedError("CollisionObject2D::_mouseShapeEnter is not implemented.") } /** @@ -213,7 +213,7 @@ public open class CollisionObject2D internal constructor() : Node2D() { * bit to be called. */ public open fun _mouseShapeExit(shapeIdx: Int): Unit { - throw NotImplementedError("_mouseShapeExit is not implemented for CollisionObject2D") + throw NotImplementedError("CollisionObject2D::_mouseShapeExit is not implemented.") } /** diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/CollisionObject3D.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/CollisionObject3D.kt index 9dd10d75c..e1c0067bc 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/CollisionObject3D.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/CollisionObject3D.kt @@ -176,7 +176,7 @@ public open class CollisionObject3D internal constructor() : Node3D() { normal: Vector3, shapeIdx: Int, ): Unit { - throw NotImplementedError("_inputEvent is not implemented for CollisionObject3D") + throw NotImplementedError("CollisionObject3D::_inputEvent is not implemented.") } /** @@ -185,7 +185,7 @@ public open class CollisionObject3D internal constructor() : Node3D() { * shapes within a single [CollisionObject3D] won't cause this function to be called. */ public open fun _mouseEnter(): Unit { - throw NotImplementedError("_mouseEnter is not implemented for CollisionObject3D") + throw NotImplementedError("CollisionObject3D::_mouseEnter is not implemented.") } /** @@ -194,7 +194,7 @@ public open class CollisionObject3D internal constructor() : Node3D() { * within a single [CollisionObject3D] won't cause this function to be called. */ public open fun _mouseExit(): Unit { - throw NotImplementedError("_mouseExit is not implemented for CollisionObject3D") + throw NotImplementedError("CollisionObject3D::_mouseExit is not implemented.") } public final fun setCollisionLayer(layer: Long): Unit { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/CompositorEffect.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/CompositorEffect.kt index f0d240603..dae6245a0 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/CompositorEffect.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/CompositorEffect.kt @@ -167,7 +167,7 @@ public open class CompositorEffect : Resource() { * access to the rendering state, it is only valid during rendering and should not be stored. */ public open fun _renderCallback(effectCallbackType: Int, renderData: RenderData?): Unit { - throw NotImplementedError("_renderCallback is not implemented for CompositorEffect") + throw NotImplementedError("CompositorEffect::_renderCallback is not implemented.") } public final fun setEnabled(enabled: Boolean): Unit { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/CompressedTexture2D.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/CompressedTexture2D.kt index 419d4ee63..f9c3066cd 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/CompressedTexture2D.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/CompressedTexture2D.kt @@ -15,6 +15,7 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.STRING import kotlin.Int import kotlin.Long +import kotlin.NotImplementedError import kotlin.String import kotlin.Suppress import kotlin.Unit @@ -72,6 +73,20 @@ public open class CompressedTexture2D : Texture2D() { return (TransferContext.readReturnValue(STRING) as String) } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getWidth(): Int { + throw NotImplementedError("CompressedTexture2D::_getWidth can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getHeight(): Int { + throw NotImplementedError("CompressedTexture2D::_getHeight can't be called from the JVM.") + } + public companion object public object MethodBindings { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/CompressedTexture3D.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/CompressedTexture3D.kt index 220036425..a811b6661 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/CompressedTexture3D.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/CompressedTexture3D.kt @@ -11,10 +11,13 @@ import godot.`internal`.memory.TransferContext import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Error +import godot.core.VariantArray import godot.core.VariantParser.LONG import godot.core.VariantParser.STRING +import kotlin.Boolean import kotlin.Int import kotlin.Long +import kotlin.NotImplementedError import kotlin.String import kotlin.Suppress import kotlin.Unit @@ -60,6 +63,48 @@ public open class CompressedTexture3D : Texture3D() { return (TransferContext.readReturnValue(STRING) as String) } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getFormat(): Image.Format { + throw NotImplementedError("CompressedTexture3D::_getFormat can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getWidth(): Int { + throw NotImplementedError("CompressedTexture3D::_getWidth can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getHeight(): Int { + throw NotImplementedError("CompressedTexture3D::_getHeight can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getDepth(): Int { + throw NotImplementedError("CompressedTexture3D::_getDepth can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _hasMipmaps(): Boolean { + throw NotImplementedError("CompressedTexture3D::_hasMipmaps can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getData(): VariantArray { + throw NotImplementedError("CompressedTexture3D::_getData can't be called from the JVM.") + } + public companion object public object MethodBindings { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/CompressedTextureLayered.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/CompressedTextureLayered.kt index 88be4bb2f..3d8e13e5a 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/CompressedTextureLayered.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/CompressedTextureLayered.kt @@ -13,8 +13,10 @@ import godot.common.interop.VoidPtr import godot.core.Error import godot.core.VariantParser.LONG import godot.core.VariantParser.STRING +import kotlin.Boolean import kotlin.Int import kotlin.Long +import kotlin.NotImplementedError import kotlin.String import kotlin.Suppress import kotlin.Unit @@ -53,6 +55,55 @@ public open class CompressedTextureLayered internal constructor() : TextureLayer return (TransferContext.readReturnValue(STRING) as String) } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getFormat(): Image.Format { + throw NotImplementedError("CompressedTextureLayered::_getFormat can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getLayeredType(): Long { + throw NotImplementedError("CompressedTextureLayered::_getLayeredType can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getWidth(): Int { + throw NotImplementedError("CompressedTextureLayered::_getWidth can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getHeight(): Int { + throw NotImplementedError("CompressedTextureLayered::_getHeight can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getLayers(): Int { + throw NotImplementedError("CompressedTextureLayered::_getLayers can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _hasMipmaps(): Boolean { + throw NotImplementedError("CompressedTextureLayered::_hasMipmaps can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getLayerData(layerIndex: Int): Image? { + throw NotImplementedError("CompressedTextureLayered::_getLayerData can't be called from the JVM.") + } + public companion object public object MethodBindings { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/Container.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/Container.kt index 36eee495c..7c8ff9efd 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/Container.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/Container.kt @@ -51,7 +51,7 @@ public open class Container : Control() { * value is always implicitly allowed. */ public open fun _getAllowedSizeFlagsHorizontal(): PackedInt32Array { - throw NotImplementedError("_getAllowedSizeFlagsHorizontal is not implemented for Container") + throw NotImplementedError("Container::_getAllowedSizeFlagsHorizontal is not implemented.") } /** @@ -63,7 +63,7 @@ public open class Container : Control() { * value is always implicitly allowed. */ public open fun _getAllowedSizeFlagsVertical(): PackedInt32Array { - throw NotImplementedError("_getAllowedSizeFlagsVertical is not implemented for Container") + throw NotImplementedError("Container::_getAllowedSizeFlagsVertical is not implemented.") } /** diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/Control.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/Control.kt index 5b74ae008..80f5370eb 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/Control.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/Control.kt @@ -863,7 +863,7 @@ public open class Control : CanvasItem() { * `Rect2(Vector2.ZERO, size).has_point(point)`. */ public open fun _hasPoint(point: Vector2): Boolean { - throw NotImplementedError("_hasPoint is not implemented for Control") + throw NotImplementedError("Control::_hasPoint is not implemented.") } /** @@ -875,7 +875,7 @@ public open class Control : CanvasItem() { */ public open fun _structuredTextParser(args: VariantArray, text: String): VariantArray { - throw NotImplementedError("_structuredTextParser is not implemented for Control") + throw NotImplementedError("Control::_structuredTextParser is not implemented.") } /** @@ -890,7 +890,7 @@ public open class Control : CanvasItem() { * used with most basic GUI nodes, like [Control], [Container], [Panel] etc. */ public open fun _getMinimumSize(): Vector2 { - throw NotImplementedError("_getMinimumSize is not implemented for Control") + throw NotImplementedError("Control::_getMinimumSize is not implemented.") } /** @@ -902,7 +902,7 @@ public open class Control : CanvasItem() { * no tooltip is displayed. */ public open fun _getTooltip(atPosition: Vector2): String { - throw NotImplementedError("_getTooltip is not implemented for Control") + throw NotImplementedError("Control::_getTooltip is not implemented.") } /** @@ -935,7 +935,7 @@ public open class Control : CanvasItem() { * ``` */ public open fun _getDragData(atPosition: Vector2): Any? { - throw NotImplementedError("_getDragData is not implemented for Control") + throw NotImplementedError("Control::_getDragData is not implemented.") } /** @@ -964,7 +964,7 @@ public open class Control : CanvasItem() { * ``` */ public open fun _canDropData(atPosition: Vector2, `data`: Any?): Boolean { - throw NotImplementedError("_canDropData is not implemented for Control") + throw NotImplementedError("Control::_canDropData is not implemented.") } /** @@ -996,7 +996,7 @@ public open class Control : CanvasItem() { * ``` */ public open fun _dropData(atPosition: Vector2, `data`: Any?): Unit { - throw NotImplementedError("_dropData is not implemented for Control") + throw NotImplementedError("Control::_dropData is not implemented.") } /** @@ -1066,7 +1066,7 @@ public open class Control : CanvasItem() { * ``` */ public open fun _makeCustomTooltip(forText: String): Object? { - throw NotImplementedError("_makeCustomTooltip is not implemented for Control") + throw NotImplementedError("Control::_makeCustomTooltip is not implemented.") } /** @@ -1114,7 +1114,7 @@ public open class Control : CanvasItem() { * **Note:** The [event]'s position is relative to this control's origin. */ public open fun _guiInput(event: InputEvent?): Unit { - throw NotImplementedError("_guiInput is not implemented for Control") + throw NotImplementedError("Control::_guiInput is not implemented.") } /** diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/CurveTexture.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/CurveTexture.kt index 1827886dc..514c3d071 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/CurveTexture.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/CurveTexture.kt @@ -15,6 +15,7 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import kotlin.Int import kotlin.Long +import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit import kotlin.jvm.JvmName @@ -95,6 +96,20 @@ public open class CurveTexture : Texture2D() { return TextureMode.from(TransferContext.readReturnValue(LONG) as Long) } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getWidth(): Int { + throw NotImplementedError("CurveTexture::_getWidth can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getHeight(): Int { + throw NotImplementedError("CurveTexture::_getHeight can't be called from the JVM.") + } + public enum class TextureMode( id: Long, ) { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/CurveXYZTexture.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/CurveXYZTexture.kt index f8e2c6353..b5f51c2de 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/CurveXYZTexture.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/CurveXYZTexture.kt @@ -14,6 +14,7 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import kotlin.Int +import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit import kotlin.jvm.JvmName @@ -116,6 +117,20 @@ public open class CurveXYZTexture : Texture2D() { return (TransferContext.readReturnValue(OBJECT) as Curve?) } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getWidth(): Int { + throw NotImplementedError("CurveXYZTexture::_getWidth can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getHeight(): Int { + throw NotImplementedError("CurveXYZTexture::_getHeight can't be called from the JVM.") + } + public companion object public object MethodBindings { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/EngineProfiler.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/EngineProfiler.kt index 47845bb9a..fb7c5f73f 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/EngineProfiler.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/EngineProfiler.kt @@ -32,14 +32,14 @@ public open class EngineProfiler : RefCounted() { * Called when the profiler is enabled/disabled, along with a set of [options]. */ public open fun _toggle(enable: Boolean, options: VariantArray): Unit { - throw NotImplementedError("_toggle is not implemented for EngineProfiler") + throw NotImplementedError("EngineProfiler::_toggle is not implemented.") } /** * Called when data is added to profiler using [EngineDebugger.profilerAddFrameData]. */ public open fun _addFrame(`data`: VariantArray): Unit { - throw NotImplementedError("_addFrame is not implemented for EngineProfiler") + throw NotImplementedError("EngineProfiler::_addFrame is not implemented.") } /** @@ -53,7 +53,7 @@ public open class EngineProfiler : RefCounted() { physicsTime: Double, physicsFrameTime: Double, ): Unit { - throw NotImplementedError("_tick is not implemented for EngineProfiler") + throw NotImplementedError("EngineProfiler::_tick is not implemented.") } public companion object diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/ExternalTexture.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/ExternalTexture.kt index 2fe9db188..e756bd2fe 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/ExternalTexture.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/ExternalTexture.kt @@ -18,6 +18,7 @@ import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import kotlin.Int import kotlin.Long +import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit import kotlin.jvm.JvmName @@ -105,6 +106,20 @@ public open class ExternalTexture : Texture2D() { TransferContext.callMethod(ptr, MethodBindings.setExternalBufferIdPtr, NIL) } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getWidth(): Int { + throw NotImplementedError("ExternalTexture::_getWidth can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getHeight(): Int { + throw NotImplementedError("ExternalTexture::_getHeight can't be called from the JVM.") + } + public companion object public object MethodBindings { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/FogMaterial.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/FogMaterial.kt index 8a08c1f3f..064c40ba9 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/FogMaterial.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/FogMaterial.kt @@ -13,6 +13,7 @@ import godot.`internal`.memory.TransferContext import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color +import godot.core.RID import godot.core.VariantParser.COLOR import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL @@ -20,6 +21,7 @@ import godot.core.VariantParser.OBJECT import kotlin.Double import kotlin.Float import kotlin.Int +import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit import kotlin.jvm.JvmName @@ -241,6 +243,20 @@ public open class FogMaterial : Material() { return (TransferContext.readReturnValue(OBJECT) as Texture3D?) } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getShaderRid(): RID { + throw NotImplementedError("FogMaterial::_getShaderRid can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getShaderMode(): Shader.Mode { + throw NotImplementedError("FogMaterial::_getShaderMode can't be called from the JVM.") + } + public companion object public object MethodBindings { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/GLTFDocumentExtension.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/GLTFDocumentExtension.kt index c600a89ba..3cc6ab9d7 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/GLTFDocumentExtension.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/GLTFDocumentExtension.kt @@ -47,7 +47,7 @@ public open class GLTFDocumentExtension : Resource() { * instance. If not overridden, [OK] is returned. */ public open fun _importPreflight(state: GLTFState?, extensions: PackedStringArray): Error { - throw NotImplementedError("_importPreflight is not implemented for GLTFDocumentExtension") + throw NotImplementedError("GLTFDocumentExtension::_importPreflight is not implemented.") } /** @@ -58,7 +58,7 @@ public open class GLTFDocumentExtension : Resource() { * used to validate if a glTF file with required extensions can be loaded. */ public open fun _getSupportedExtensions(): PackedStringArray { - throw NotImplementedError("_getSupportedExtensions is not implemented for GLTFDocumentExtension") + throw NotImplementedError("GLTFDocumentExtension::_getSupportedExtensions is not implemented.") } /** @@ -74,7 +74,7 @@ public open class GLTFDocumentExtension : Resource() { gltfNode: GLTFNode?, extensions: Dictionary, ): Error { - throw NotImplementedError("_parseNodeExtensions is not implemented for GLTFDocumentExtension") + throw NotImplementedError("GLTFDocumentExtension::_parseNodeExtensions is not implemented.") } /** @@ -90,7 +90,7 @@ public open class GLTFDocumentExtension : Resource() { mimeType: String, retImage: Image?, ): Error { - throw NotImplementedError("_parseImageData is not implemented for GLTFDocumentExtension") + throw NotImplementedError("GLTFDocumentExtension::_parseImageData is not implemented.") } /** @@ -101,7 +101,7 @@ public open class GLTFDocumentExtension : Resource() { * the image into a PNG file. */ public open fun _getImageFileExtension(): String { - throw NotImplementedError("_getImageFileExtension is not implemented for GLTFDocumentExtension") + throw NotImplementedError("GLTFDocumentExtension::_getImageFileExtension is not implemented.") } /** @@ -116,7 +116,7 @@ public open class GLTFDocumentExtension : Resource() { textureJson: Dictionary, retGltfTexture: GLTFTexture?, ): Error { - throw NotImplementedError("_parseTextureJson is not implemented for GLTFDocumentExtension") + throw NotImplementedError("GLTFDocumentExtension::_parseTextureJson is not implemented.") } /** @@ -143,7 +143,7 @@ public open class GLTFDocumentExtension : Resource() { splitJsonPointer: PackedStringArray, partialPaths: VariantArray, ): GLTFObjectModelProperty? { - throw NotImplementedError("_importObjectModelProperty is not implemented for GLTFDocumentExtension") + throw NotImplementedError("GLTFDocumentExtension::_importObjectModelProperty is not implemented.") } /** @@ -154,7 +154,7 @@ public open class GLTFDocumentExtension : Resource() { * before generating the scene or any of its nodes. */ public open fun _importPostParse(state: GLTFState?): Error { - throw NotImplementedError("_importPostParse is not implemented for GLTFDocumentExtension") + throw NotImplementedError("GLTFDocumentExtension::_importPostParse is not implemented.") } /** @@ -165,7 +165,7 @@ public open class GLTFDocumentExtension : Resource() { * generating the nodes and then running the final per-node import step. */ public open fun _importPreGenerate(state: GLTFState?): Error { - throw NotImplementedError("_importPreGenerate is not implemented for GLTFDocumentExtension") + throw NotImplementedError("GLTFDocumentExtension::_importPreGenerate is not implemented.") } /** @@ -183,7 +183,7 @@ public open class GLTFDocumentExtension : Resource() { gltfNode: GLTFNode?, sceneParent: Node?, ): Node3D? { - throw NotImplementedError("_generateSceneNode is not implemented for GLTFDocumentExtension") + throw NotImplementedError("GLTFDocumentExtension::_generateSceneNode is not implemented.") } /** @@ -198,7 +198,7 @@ public open class GLTFDocumentExtension : Resource() { json: Dictionary, node: Node?, ): Error { - throw NotImplementedError("_importNode is not implemented for GLTFDocumentExtension") + throw NotImplementedError("GLTFDocumentExtension::_importNode is not implemented.") } /** @@ -208,7 +208,7 @@ public open class GLTFDocumentExtension : Resource() { * This method can be used to modify the final Godot scene generated by the import process. */ public open fun _importPost(state: GLTFState?, root: Node?): Error { - throw NotImplementedError("_importPost is not implemented for GLTFDocumentExtension") + throw NotImplementedError("GLTFDocumentExtension::_importPost is not implemented.") } /** @@ -220,7 +220,7 @@ public open class GLTFDocumentExtension : Resource() { * instance. If not overridden, [OK] is returned. */ public open fun _exportPreflight(state: GLTFState?, root: Node?): Error { - throw NotImplementedError("_exportPreflight is not implemented for GLTFDocumentExtension") + throw NotImplementedError("GLTFDocumentExtension::_exportPreflight is not implemented.") } /** @@ -235,7 +235,7 @@ public open class GLTFDocumentExtension : Resource() { gltfNode: GLTFNode?, sceneNode: Node?, ): Unit { - throw NotImplementedError("_convertSceneNode is not implemented for GLTFDocumentExtension") + throw NotImplementedError("GLTFDocumentExtension::_convertSceneNode is not implemented.") } /** @@ -246,7 +246,7 @@ public open class GLTFDocumentExtension : Resource() { * any additional data from the scene tree. */ public open fun _exportPostConvert(state: GLTFState?, root: Node?): Error { - throw NotImplementedError("_exportPostConvert is not implemented for GLTFDocumentExtension") + throw NotImplementedError("GLTFDocumentExtension::_exportPostConvert is not implemented.") } /** @@ -258,7 +258,7 @@ public open class GLTFDocumentExtension : Resource() { * [GLTFDocument.writeToFilesystem]. */ public open fun _exportPreserialize(state: GLTFState?): Error { - throw NotImplementedError("_exportPreserialize is not implemented for GLTFDocumentExtension") + throw NotImplementedError("GLTFDocumentExtension::_exportPreserialize is not implemented.") } /** @@ -287,7 +287,7 @@ public open class GLTFDocumentExtension : Resource() { targetObject: Object?, targetDepth: Int, ): GLTFObjectModelProperty? { - throw NotImplementedError("_exportObjectModelProperty is not implemented for GLTFDocumentExtension") + throw NotImplementedError("GLTFDocumentExtension::_exportObjectModelProperty is not implemented.") } /** @@ -302,7 +302,7 @@ public open class GLTFDocumentExtension : Resource() { * slider will be displayed. */ public open fun _getSaveableImageFormats(): PackedStringArray { - throw NotImplementedError("_getSaveableImageFormats is not implemented for GLTFDocumentExtension") + throw NotImplementedError("GLTFDocumentExtension::_getSaveableImageFormats is not implemented.") } /** @@ -324,7 +324,7 @@ public open class GLTFDocumentExtension : Resource() { imageFormat: String, lossyQuality: Float, ): PackedByteArray { - throw NotImplementedError("_serializeImageToBytes is not implemented for GLTFDocumentExtension") + throw NotImplementedError("GLTFDocumentExtension::_serializeImageToBytes is not implemented.") } /** @@ -342,7 +342,7 @@ public open class GLTFDocumentExtension : Resource() { imageFormat: String, lossyQuality: Float, ): Error { - throw NotImplementedError("_saveImageAtPath is not implemented for GLTFDocumentExtension") + throw NotImplementedError("GLTFDocumentExtension::_saveImageAtPath is not implemented.") } /** @@ -360,7 +360,7 @@ public open class GLTFDocumentExtension : Resource() { gltfTexture: GLTFTexture?, imageFormat: String, ): Error { - throw NotImplementedError("_serializeTextureJson is not implemented for GLTFDocumentExtension") + throw NotImplementedError("GLTFDocumentExtension::_serializeTextureJson is not implemented.") } /** @@ -379,7 +379,7 @@ public open class GLTFDocumentExtension : Resource() { json: Dictionary, node: Node?, ): Error { - throw NotImplementedError("_exportNode is not implemented for GLTFDocumentExtension") + throw NotImplementedError("GLTFDocumentExtension::_exportNode is not implemented.") } /** @@ -389,7 +389,7 @@ public open class GLTFDocumentExtension : Resource() { * This method can be used to modify the final JSON of the generated glTF file. */ public open fun _exportPost(state: GLTFState?): Error { - throw NotImplementedError("_exportPost is not implemented for GLTFDocumentExtension") + throw NotImplementedError("GLTFDocumentExtension::_exportPost is not implemented.") } public companion object diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/GradientTexture1D.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/GradientTexture1D.kt index 9a62aa51e..ee92eeb3e 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/GradientTexture1D.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/GradientTexture1D.kt @@ -16,6 +16,7 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import kotlin.Boolean import kotlin.Int +import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit import kotlin.jvm.JvmName @@ -95,6 +96,20 @@ public open class GradientTexture1D : Texture2D() { return (TransferContext.readReturnValue(BOOL) as Boolean) } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getWidth(): Int { + throw NotImplementedError("GradientTexture1D::_getWidth can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getHeight(): Int { + throw NotImplementedError("GradientTexture1D::_getHeight can't be called from the JVM.") + } + public companion object public object MethodBindings { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/GradientTexture2D.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/GradientTexture2D.kt index 2a8ee5087..601dbf404 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/GradientTexture2D.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/GradientTexture2D.kt @@ -21,6 +21,7 @@ import godot.core.Vector2 import kotlin.Boolean import kotlin.Int import kotlin.Long +import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit import kotlin.jvm.JvmName @@ -264,6 +265,20 @@ public open class GradientTexture2D : Texture2D() { return Repeat.from(TransferContext.readReturnValue(LONG) as Long) } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getWidth(): Int { + throw NotImplementedError("GradientTexture2D::_getWidth can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getHeight(): Int { + throw NotImplementedError("GradientTexture2D::_getHeight can't be called from the JVM.") + } + public enum class Fill( id: Long, ) { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/GraphEdit.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/GraphEdit.kt index 4867f3ed2..d6606240a 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/GraphEdit.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/GraphEdit.kt @@ -548,7 +548,7 @@ public open class GraphEdit : Control() { inPort: Int, mousePosition: Vector2, ): Boolean { - throw NotImplementedError("_isInInputHotzone is not implemented for GraphEdit") + throw NotImplementedError("GraphEdit::_isInInputHotzone is not implemented.") } /** @@ -573,7 +573,7 @@ public open class GraphEdit : Control() { inPort: Int, mousePosition: Vector2, ): Boolean { - throw NotImplementedError("_isInOutputHotzone is not implemented for GraphEdit") + throw NotImplementedError("GraphEdit::_isInOutputHotzone is not implemented.") } /** @@ -581,7 +581,7 @@ public open class GraphEdit : Control() { */ public open fun _getConnectionLine(fromPosition: Vector2, toPosition: Vector2): PackedVector2Array { - throw NotImplementedError("_getConnectionLine is not implemented for GraphEdit") + throw NotImplementedError("GraphEdit::_getConnectionLine is not implemented.") } /** @@ -615,7 +615,7 @@ public open class GraphEdit : Control() { toNode: StringName, toPort: Int, ): Boolean { - throw NotImplementedError("_isNodeHoverValid is not implemented for GraphEdit") + throw NotImplementedError("GraphEdit::_isNodeHoverValid is not implemented.") } /** diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/GraphNode.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/GraphNode.kt index bdd00b833..7ed2b44ab 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/GraphNode.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/GraphNode.kt @@ -92,7 +92,7 @@ public open class GraphNode : GraphElement() { left: Boolean, color: Color, ): Unit { - throw NotImplementedError("_drawPort is not implemented for GraphNode") + throw NotImplementedError("GraphNode::_drawPort is not implemented.") } public final fun setTitle(title: String): Unit { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/ImageFormatLoaderExtension.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/ImageFormatLoaderExtension.kt index dc95e905c..657277b8d 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/ImageFormatLoaderExtension.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/ImageFormatLoaderExtension.kt @@ -37,7 +37,7 @@ public open class ImageFormatLoaderExtension : ImageFormatLoader() { * be treated as image file and loaded using this class. */ public open fun _getRecognizedExtensions(): PackedStringArray { - throw NotImplementedError("_getRecognizedExtensions is not implemented for ImageFormatLoaderExtension") + throw NotImplementedError("ImageFormatLoaderExtension::_getRecognizedExtensions is not implemented.") } /** @@ -49,7 +49,7 @@ public open class ImageFormatLoaderExtension : ImageFormatLoader() { flags: ImageFormatLoader.LoaderFlags, scale: Float, ): Error { - throw NotImplementedError("_loadImage is not implemented for ImageFormatLoaderExtension") + throw NotImplementedError("ImageFormatLoaderExtension::_loadImage is not implemented.") } /** diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/ImageTexture.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/ImageTexture.kt index 903eca025..918aaa7f8 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/ImageTexture.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/ImageTexture.kt @@ -17,6 +17,7 @@ import godot.core.VariantParser.VECTOR2I import godot.core.Vector2i import kotlin.Int import kotlin.Long +import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit import kotlin.jvm.JvmStatic @@ -111,6 +112,20 @@ public open class ImageTexture : Texture2D() { TransferContext.callMethod(ptr, MethodBindings.setSizeOverridePtr, NIL) } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getWidth(): Int { + throw NotImplementedError("ImageTexture::_getWidth can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getHeight(): Int { + throw NotImplementedError("ImageTexture::_getHeight can't be called from the JVM.") + } + public companion object { /** * Creates a new [ImageTexture] and initializes it by allocating and setting the data from an diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/ImageTexture3D.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/ImageTexture3D.kt index e2a280dd7..80ca68da5 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/ImageTexture3D.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/ImageTexture3D.kt @@ -19,6 +19,7 @@ import godot.core.VariantParser.NIL import kotlin.Boolean import kotlin.Int import kotlin.Long +import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit @@ -63,6 +64,48 @@ public open class ImageTexture3D : Texture3D() { TransferContext.callMethod(ptr, MethodBindings.updatePtr, NIL) } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getFormat(): Image.Format { + throw NotImplementedError("ImageTexture3D::_getFormat can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getWidth(): Int { + throw NotImplementedError("ImageTexture3D::_getWidth can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getHeight(): Int { + throw NotImplementedError("ImageTexture3D::_getHeight can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getDepth(): Int { + throw NotImplementedError("ImageTexture3D::_getDepth can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _hasMipmaps(): Boolean { + throw NotImplementedError("ImageTexture3D::_hasMipmaps can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getData(): VariantArray { + throw NotImplementedError("ImageTexture3D::_getData can't be called from the JVM.") + } + public companion object public object MethodBindings { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/ImageTextureLayered.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/ImageTextureLayered.kt index 715c88bcd..34c11203b 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/ImageTextureLayered.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/ImageTextureLayered.kt @@ -16,8 +16,10 @@ import godot.core.VariantParser.ARRAY import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT +import kotlin.Boolean import kotlin.Int import kotlin.Long +import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit @@ -94,6 +96,55 @@ public open class ImageTextureLayered internal constructor() : TextureLayered() TransferContext.callMethod(ptr, MethodBindings.updateLayerPtr, NIL) } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getFormat(): Image.Format { + throw NotImplementedError("ImageTextureLayered::_getFormat can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getLayeredType(): Long { + throw NotImplementedError("ImageTextureLayered::_getLayeredType can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getWidth(): Int { + throw NotImplementedError("ImageTextureLayered::_getWidth can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getHeight(): Int { + throw NotImplementedError("ImageTextureLayered::_getHeight can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getLayers(): Int { + throw NotImplementedError("ImageTextureLayered::_getLayers can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _hasMipmaps(): Boolean { + throw NotImplementedError("ImageTextureLayered::_hasMipmaps can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getLayerData(layerIndex: Int): Image? { + throw NotImplementedError("ImageTextureLayered::_getLayerData can't be called from the JVM.") + } + public companion object public object MethodBindings { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/ImmediateMesh.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/ImmediateMesh.kt index ca27d6be1..9f05cf891 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/ImmediateMesh.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/ImmediateMesh.kt @@ -10,8 +10,12 @@ import godot.`annotation`.GodotBaseType import godot.`internal`.memory.TransferContext import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr +import godot.core.AABB import godot.core.Color +import godot.core.Dictionary import godot.core.Plane +import godot.core.StringName +import godot.core.VariantArray import godot.core.VariantParser.COLOR import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL @@ -21,7 +25,10 @@ import godot.core.VariantParser.VECTOR2 import godot.core.VariantParser.VECTOR3 import godot.core.Vector2 import godot.core.Vector3 +import kotlin.Any import kotlin.Int +import kotlin.Long +import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit import kotlin.jvm.JvmOverloads @@ -142,6 +149,104 @@ public open class ImmediateMesh : Mesh() { TransferContext.callMethod(ptr, MethodBindings.clearSurfacesPtr, NIL) } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getSurfaceCount(): Int { + throw NotImplementedError("ImmediateMesh::_getSurfaceCount can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _surfaceGetArrayLen(index: Int): Int { + throw NotImplementedError("ImmediateMesh::_surfaceGetArrayLen can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _surfaceGetArrayIndexLen(index: Int): Int { + throw NotImplementedError("ImmediateMesh::_surfaceGetArrayIndexLen can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _surfaceGetArrays(index: Int): VariantArray { + throw NotImplementedError("ImmediateMesh::_surfaceGetArrays can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _surfaceGetBlendShapeArrays(index: Int): VariantArray> { + throw NotImplementedError("ImmediateMesh::_surfaceGetBlendShapeArrays can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _surfaceGetLods(index: Int): Dictionary { + throw NotImplementedError("ImmediateMesh::_surfaceGetLods can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _surfaceGetFormat(index: Int): Long { + throw NotImplementedError("ImmediateMesh::_surfaceGetFormat can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _surfaceGetPrimitiveType(index: Int): Long { + throw NotImplementedError("ImmediateMesh::_surfaceGetPrimitiveType can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _surfaceSetMaterial(index: Int, material: Material?): Unit { + throw NotImplementedError("ImmediateMesh::_surfaceSetMaterial can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _surfaceGetMaterial(index: Int): Material? { + throw NotImplementedError("ImmediateMesh::_surfaceGetMaterial can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getBlendShapeCount(): Int { + throw NotImplementedError("ImmediateMesh::_getBlendShapeCount can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getBlendShapeName(index: Int): StringName { + throw NotImplementedError("ImmediateMesh::_getBlendShapeName can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _setBlendShapeName(index: Int, name: StringName): Unit { + throw NotImplementedError("ImmediateMesh::_setBlendShapeName can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getAabb(): AABB { + throw NotImplementedError("ImmediateMesh::_getAabb can't be called from the JVM.") + } + public companion object public object MethodBindings { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/MainLoop.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/MainLoop.kt index 60a114a28..9735d402f 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/MainLoop.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/MainLoop.kt @@ -95,7 +95,7 @@ public open class MainLoop : Object() { * Called once during initialization. */ public open fun _initialize(): Unit { - throw NotImplementedError("_initialize is not implemented for MainLoop") + throw NotImplementedError("MainLoop::_initialize is not implemented.") } /** @@ -113,7 +113,7 @@ public open class MainLoop : Object() { * methods for this purpose instead, such as [Time.getTicksUsec]. */ public open fun _physicsProcess(delta: Double): Boolean { - throw NotImplementedError("_physicsProcess is not implemented for MainLoop") + throw NotImplementedError("MainLoop::_physicsProcess is not implemented.") } /** @@ -131,14 +131,14 @@ public open class MainLoop : Object() { * methods for this purpose instead, such as [Time.getTicksUsec]. */ public open fun _process(delta: Double): Boolean { - throw NotImplementedError("_process is not implemented for MainLoop") + throw NotImplementedError("MainLoop::_process is not implemented.") } /** * Called before the program exits. */ public open fun _finalize(): Unit { - throw NotImplementedError("_finalize is not implemented for MainLoop") + throw NotImplementedError("MainLoop::_finalize is not implemented.") } public companion object { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/Material.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/Material.kt index 1ae7bafbc..951c94fa7 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/Material.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/Material.kt @@ -31,7 +31,7 @@ import kotlin.jvm.JvmName * in GDExtension. */ @GodotBaseType -public open class Material : Resource() { +public abstract class Material : Resource() { /** * Sets the render priority for objects in 3D scenes. Higher priority objects will be sorted in * front of lower priority objects. In other words, all objects with [renderPriority] `1` will render @@ -78,24 +78,20 @@ public open class Material : Resource() { * Only exposed for the purpose of overriding. You cannot call this function directly. Used * internally by various editor tools. Used to access the RID of the [Material]'s [Shader]. */ - public open fun _getShaderRid(): RID { - throw NotImplementedError("_getShaderRid is not implemented for Material") - } + public abstract fun _getShaderRid(): RID /** * Only exposed for the purpose of overriding. You cannot call this function directly. Used * internally by various editor tools. */ - public open fun _getShaderMode(): Shader.Mode { - throw NotImplementedError("_getShaderMode is not implemented for Material") - } + public abstract fun _getShaderMode(): Shader.Mode /** * Only exposed for the purpose of overriding. You cannot call this function directly. Used * internally to determine if [nextPass] should be shown in the editor or not. */ public open fun _canDoNextPass(): Boolean { - throw NotImplementedError("_canDoNextPass is not implemented for Material") + throw NotImplementedError("Material::_canDoNextPass is not implemented.") } /** @@ -103,7 +99,7 @@ public open class Material : Resource() { * internally to determine if [renderPriority] should be shown in the editor or not. */ public open fun _canUseRenderPriority(): Boolean { - throw NotImplementedError("_canUseRenderPriority is not implemented for Material") + throw NotImplementedError("Material::_canUseRenderPriority is not implemented.") } public final fun setNextPass(nextPass: Material?): Unit { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/Mesh.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/Mesh.kt index f58ad2428..c94215bb1 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/Mesh.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/Mesh.kt @@ -31,7 +31,6 @@ import kotlin.Boolean import kotlin.Float import kotlin.Int import kotlin.Long -import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit import kotlin.jvm.JvmField @@ -52,7 +51,7 @@ public infix fun Long.and(other: Mesh.ArrayFormat): Long = this.and(other.flag) * [RenderingServer.MAX_MESH_SURFACES]. */ @GodotBaseType -public open class Mesh : Resource() { +public abstract class Mesh : Resource() { /** * Sets a hint to be used for lightmap resolution. * @@ -99,102 +98,74 @@ public open class Mesh : Resource() { /** * Virtual method to override the surface count for a custom class extending [Mesh]. */ - public open fun _getSurfaceCount(): Int { - throw NotImplementedError("_getSurfaceCount is not implemented for Mesh") - } + public abstract fun _getSurfaceCount(): Int /** * Virtual method to override the surface array length for a custom class extending [Mesh]. */ - public open fun _surfaceGetArrayLen(index: Int): Int { - throw NotImplementedError("_surfaceGetArrayLen is not implemented for Mesh") - } + public abstract fun _surfaceGetArrayLen(index: Int): Int /** * Virtual method to override the surface array index length for a custom class extending [Mesh]. */ - public open fun _surfaceGetArrayIndexLen(index: Int): Int { - throw NotImplementedError("_surfaceGetArrayIndexLen is not implemented for Mesh") - } + public abstract fun _surfaceGetArrayIndexLen(index: Int): Int /** * Virtual method to override the surface arrays for a custom class extending [Mesh]. */ - public open fun _surfaceGetArrays(index: Int): VariantArray { - throw NotImplementedError("_surfaceGetArrays is not implemented for Mesh") - } + public abstract fun _surfaceGetArrays(index: Int): VariantArray /** * Virtual method to override the blend shape arrays for a custom class extending [Mesh]. */ - public open fun _surfaceGetBlendShapeArrays(index: Int): VariantArray> { - throw NotImplementedError("_surfaceGetBlendShapeArrays is not implemented for Mesh") - } + public abstract fun _surfaceGetBlendShapeArrays(index: Int): VariantArray> /** * Virtual method to override the surface LODs for a custom class extending [Mesh]. */ - public open fun _surfaceGetLods(index: Int): Dictionary { - throw NotImplementedError("_surfaceGetLods is not implemented for Mesh") - } + public abstract fun _surfaceGetLods(index: Int): Dictionary /** * Virtual method to override the surface format for a custom class extending [Mesh]. */ - public open fun _surfaceGetFormat(index: Int): Long { - throw NotImplementedError("_surfaceGetFormat is not implemented for Mesh") - } + public abstract fun _surfaceGetFormat(index: Int): Long /** * Virtual method to override the surface primitive type for a custom class extending [Mesh]. */ - public open fun _surfaceGetPrimitiveType(index: Int): Long { - throw NotImplementedError("_surfaceGetPrimitiveType is not implemented for Mesh") - } + public abstract fun _surfaceGetPrimitiveType(index: Int): Long /** * Virtual method to override the setting of a [material] at the given [index] for a custom class * extending [Mesh]. */ - public open fun _surfaceSetMaterial(index: Int, material: Material?): Unit { - throw NotImplementedError("_surfaceSetMaterial is not implemented for Mesh") - } + public abstract fun _surfaceSetMaterial(index: Int, material: Material?): Unit /** * Virtual method to override the surface material for a custom class extending [Mesh]. */ - public open fun _surfaceGetMaterial(index: Int): Material? { - throw NotImplementedError("_surfaceGetMaterial is not implemented for Mesh") - } + public abstract fun _surfaceGetMaterial(index: Int): Material? /** * Virtual method to override the number of blend shapes for a custom class extending [Mesh]. */ - public open fun _getBlendShapeCount(): Int { - throw NotImplementedError("_getBlendShapeCount is not implemented for Mesh") - } + public abstract fun _getBlendShapeCount(): Int /** * Virtual method to override the retrieval of blend shape names for a custom class extending * [Mesh]. */ - public open fun _getBlendShapeName(index: Int): StringName { - throw NotImplementedError("_getBlendShapeName is not implemented for Mesh") - } + public abstract fun _getBlendShapeName(index: Int): StringName /** * Virtual method to override the names of blend shapes for a custom class extending [Mesh]. */ - public open fun _setBlendShapeName(index: Int, name: StringName): Unit { - throw NotImplementedError("_setBlendShapeName is not implemented for Mesh") - } + public abstract fun _setBlendShapeName(index: Int, name: StringName): Unit /** * Virtual method to override the [AABB] for a custom class extending [Mesh]. */ - public open fun _getAabb(): AABB { - throw NotImplementedError("_getAabb is not implemented for Mesh") - } + public abstract fun _getAabb(): AABB public final fun setLightmapSizeHint(size: Vector2i): Unit { TransferContext.writeArguments(VECTOR2I to size) diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/MeshTexture.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/MeshTexture.kt index eee9ecd05..1968bb307 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/MeshTexture.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/MeshTexture.kt @@ -17,6 +17,7 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import kotlin.Int +import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit import kotlin.jvm.JvmName @@ -124,6 +125,20 @@ public open class MeshTexture : Texture2D() { return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getWidth(): Int { + throw NotImplementedError("MeshTexture::_getWidth can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getHeight(): Int { + throw NotImplementedError("MeshTexture::_getHeight can't be called from the JVM.") + } + public companion object public object MethodBindings { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/MovieWriter.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/MovieWriter.kt index b2a335144..9af6d69fc 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/MovieWriter.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/MovieWriter.kt @@ -17,7 +17,6 @@ import godot.core.Vector2i import kotlin.Boolean import kotlin.Int import kotlin.Long -import kotlin.NotImplementedError import kotlin.String import kotlin.Suppress import kotlin.Unit @@ -63,7 +62,7 @@ import kotlin.jvm.JvmStatic * [url=https://www.maartenbaert.be/simplescreenrecorder/]SimpleScreenRecorder[/url] instead. */ @GodotBaseType -public open class MovieWriter : Object() { +public abstract class MovieWriter : Object() { public override fun new(scriptIndex: Int): Unit { createNativeObject(362, scriptIndex) } @@ -73,18 +72,14 @@ public open class MovieWriter : Object() { * value returned must be specified in Hz. Defaults to 48000 Hz if [_getAudioMixRate] is not * overridden. */ - public open fun _getAudioMixRate(): Long { - throw NotImplementedError("_getAudioMixRate is not implemented for MovieWriter") - } + public abstract fun _getAudioMixRate(): Long /** * Called when the audio speaker mode used for recording the audio is requested by the engine. * This can affect the number of output channels in the resulting audio file/stream. Defaults to * [AudioServer.SPEAKER_MODE_STEREO] if [_getAudioSpeakerMode] is not overridden. */ - public open fun _getAudioSpeakerMode(): AudioServer.SpeakerMode { - throw NotImplementedError("_getAudioSpeakerMode is not implemented for MovieWriter") - } + public abstract fun _getAudioSpeakerMode(): AudioServer.SpeakerMode /** * Called when the engine determines whether this [MovieWriter] is able to handle the file at @@ -99,9 +94,7 @@ public open class MovieWriter : Object() { * return path.get_extension().to_lower() == "mkv" * ``` */ - public open fun _handlesFile(path: String): Boolean { - throw NotImplementedError("_handlesFile is not implemented for MovieWriter") - } + public abstract fun _handlesFile(path: String): Boolean /** * Called once before the engine starts writing video and audio data. [movieSize] is the width and @@ -109,13 +102,11 @@ public open class MovieWriter : Object() { * settings or using the `--fixed-fps ` * [url=$DOCS_URL/tutorials/editor/command_line_tutorial.html]command line argument[/url]. */ - public open fun _writeBegin( + public abstract fun _writeBegin( movieSize: Vector2i, fps: Long, basePath: String, - ): Error { - throw NotImplementedError("_writeBegin is not implemented for MovieWriter") - } + ): Error /** * Called when the engine finishes writing. This occurs when the engine quits by pressing the @@ -124,9 +115,7 @@ public open class MovieWriter : Object() { * **Note:** Pressing [kbd]Ctrl + C[/kbd] on the terminal running the editor/project does *not* * result in [_writeEnd] being called. */ - public open fun _writeEnd(): Unit { - throw NotImplementedError("_writeEnd is not implemented for MovieWriter") - } + public abstract fun _writeEnd(): Unit public companion object { /** diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/MultiplayerAPIExtension.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/MultiplayerAPIExtension.kt index 7c0bdcd35..e0a717e9c 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/MultiplayerAPIExtension.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/MultiplayerAPIExtension.kt @@ -110,35 +110,35 @@ public open class MultiplayerAPIExtension : MultiplayerAPI() { * Callback for [MultiplayerAPI.poll]. */ public open fun _poll(): Error { - throw NotImplementedError("_poll is not implemented for MultiplayerAPIExtension") + throw NotImplementedError("MultiplayerAPIExtension::_poll is not implemented.") } /** * Called when the [MultiplayerAPI.multiplayerPeer] is set. */ public open fun _setMultiplayerPeer(multiplayerPeer: MultiplayerPeer?): Unit { - throw NotImplementedError("_setMultiplayerPeer is not implemented for MultiplayerAPIExtension") + throw NotImplementedError("MultiplayerAPIExtension::_setMultiplayerPeer is not implemented.") } /** * Called when the [MultiplayerAPI.multiplayerPeer] is retrieved. */ public open fun _getMultiplayerPeer(): MultiplayerPeer? { - throw NotImplementedError("_getMultiplayerPeer is not implemented for MultiplayerAPIExtension") + throw NotImplementedError("MultiplayerAPIExtension::_getMultiplayerPeer is not implemented.") } /** * Callback for [MultiplayerAPI.getUniqueId]. */ public open fun _getUniqueId(): Int { - throw NotImplementedError("_getUniqueId is not implemented for MultiplayerAPIExtension") + throw NotImplementedError("MultiplayerAPIExtension::_getUniqueId is not implemented.") } /** * Callback for [MultiplayerAPI.getPeers]. */ public open fun _getPeerIds(): PackedInt32Array { - throw NotImplementedError("_getPeerIds is not implemented for MultiplayerAPIExtension") + throw NotImplementedError("MultiplayerAPIExtension::_getPeerIds is not implemented.") } /** @@ -150,28 +150,28 @@ public open class MultiplayerAPIExtension : MultiplayerAPI() { method: StringName, args: VariantArray, ): Error { - throw NotImplementedError("_rpc is not implemented for MultiplayerAPIExtension") + throw NotImplementedError("MultiplayerAPIExtension::_rpc is not implemented.") } /** * Callback for [MultiplayerAPI.getRemoteSenderId]. */ public open fun _getRemoteSenderId(): Int { - throw NotImplementedError("_getRemoteSenderId is not implemented for MultiplayerAPIExtension") + throw NotImplementedError("MultiplayerAPIExtension::_getRemoteSenderId is not implemented.") } /** * Callback for [MultiplayerAPI.objectConfigurationAdd]. */ public open fun _objectConfigurationAdd(`object`: Object?, configuration: Any?): Error { - throw NotImplementedError("_objectConfigurationAdd is not implemented for MultiplayerAPIExtension") + throw NotImplementedError("MultiplayerAPIExtension::_objectConfigurationAdd is not implemented.") } /** * Callback for [MultiplayerAPI.objectConfigurationRemove]. */ public open fun _objectConfigurationRemove(`object`: Object?, configuration: Any?): Error { - throw NotImplementedError("_objectConfigurationRemove is not implemented for MultiplayerAPIExtension") + throw NotImplementedError("MultiplayerAPIExtension::_objectConfigurationRemove is not implemented.") } public companion object diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/MultiplayerPeerExtension.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/MultiplayerPeerExtension.kt index dec686289..e14c0bc0b 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/MultiplayerPeerExtension.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/MultiplayerPeerExtension.kt @@ -21,7 +21,7 @@ import kotlin.Unit * have a working custom multiplayer implementation. See also [MultiplayerAPI]. */ @GodotBaseType -public open class MultiplayerPeerExtension : MultiplayerPeer() { +public abstract class MultiplayerPeerExtension : MultiplayerPeer() { public override fun new(scriptIndex: Int): Unit { createNativeObject(369, scriptIndex) } @@ -29,23 +29,19 @@ public open class MultiplayerPeerExtension : MultiplayerPeer() { /** * Called when the available packet count is internally requested by the [MultiplayerAPI]. */ - public open fun _getAvailablePacketCount(): Int { - throw NotImplementedError("_getAvailablePacketCount is not implemented for MultiplayerPeerExtension") - } + public abstract fun _getAvailablePacketCount(): Int /** * Called when the maximum allowed packet size (in bytes) is requested by the [MultiplayerAPI]. */ - public open fun _getMaxPacketSize(): Int { - throw NotImplementedError("_getMaxPacketSize is not implemented for MultiplayerPeerExtension") - } + public abstract fun _getMaxPacketSize(): Int /** * Called when a packet needs to be received by the [MultiplayerAPI], if [_getPacket] isn't * implemented. Use this when extending this class via GDScript. */ public open fun _getPacketScript(): PackedByteArray { - throw NotImplementedError("_getPacketScript is not implemented for MultiplayerPeerExtension") + throw NotImplementedError("MultiplayerPeerExtension::_getPacketScript is not implemented.") } /** @@ -53,117 +49,91 @@ public open class MultiplayerPeerExtension : MultiplayerPeer() { * implemented. Use this when extending this class via GDScript. */ public open fun _putPacketScript(pBuffer: PackedByteArray): Error { - throw NotImplementedError("_putPacketScript is not implemented for MultiplayerPeerExtension") + throw NotImplementedError("MultiplayerPeerExtension::_putPacketScript is not implemented.") } /** * Called to get the channel over which the next available packet was received. See * [MultiplayerPeer.getPacketChannel]. */ - public open fun _getPacketChannel(): Int { - throw NotImplementedError("_getPacketChannel is not implemented for MultiplayerPeerExtension") - } + public abstract fun _getPacketChannel(): Int /** * Called to get the transfer mode the remote peer used to send the next available packet. See * [MultiplayerPeer.getPacketMode]. */ - public open fun _getPacketMode(): MultiplayerPeer.TransferMode { - throw NotImplementedError("_getPacketMode is not implemented for MultiplayerPeerExtension") - } + public abstract fun _getPacketMode(): MultiplayerPeer.TransferMode /** * Called when the channel to use is set for this [MultiplayerPeer] (see * [MultiplayerPeer.transferChannel]). */ - public open fun _setTransferChannel(pChannel: Int): Unit { - throw NotImplementedError("_setTransferChannel is not implemented for MultiplayerPeerExtension") - } + public abstract fun _setTransferChannel(pChannel: Int): Unit /** * Called when the transfer channel to use is read on this [MultiplayerPeer] (see * [MultiplayerPeer.transferChannel]). */ - public open fun _getTransferChannel(): Int { - throw NotImplementedError("_getTransferChannel is not implemented for MultiplayerPeerExtension") - } + public abstract fun _getTransferChannel(): Int /** * Called when the transfer mode is set on this [MultiplayerPeer] (see * [MultiplayerPeer.transferMode]). */ - public open fun _setTransferMode(pMode: MultiplayerPeer.TransferMode): Unit { - throw NotImplementedError("_setTransferMode is not implemented for MultiplayerPeerExtension") - } + public abstract fun _setTransferMode(pMode: MultiplayerPeer.TransferMode): Unit /** * Called when the transfer mode to use is read on this [MultiplayerPeer] (see * [MultiplayerPeer.transferMode]). */ - public open fun _getTransferMode(): MultiplayerPeer.TransferMode { - throw NotImplementedError("_getTransferMode is not implemented for MultiplayerPeerExtension") - } + public abstract fun _getTransferMode(): MultiplayerPeer.TransferMode /** * Called when the target peer to use is set for this [MultiplayerPeer] (see * [MultiplayerPeer.setTargetPeer]). */ - public open fun _setTargetPeer(pPeer: Int): Unit { - throw NotImplementedError("_setTargetPeer is not implemented for MultiplayerPeerExtension") - } + public abstract fun _setTargetPeer(pPeer: Int): Unit /** * Called when the ID of the [MultiplayerPeer] who sent the most recent packet is requested (see * [MultiplayerPeer.getPacketPeer]). */ - public open fun _getPacketPeer(): Int { - throw NotImplementedError("_getPacketPeer is not implemented for MultiplayerPeerExtension") - } + public abstract fun _getPacketPeer(): Int /** * Called when the "is server" status is requested on the [MultiplayerAPI]. See * [MultiplayerAPI.isServer]. */ - public open fun _isServer(): Boolean { - throw NotImplementedError("_isServer is not implemented for MultiplayerPeerExtension") - } + public abstract fun _isServer(): Boolean /** * Called when the [MultiplayerAPI] is polled. See [MultiplayerAPI.poll]. */ - public open fun _poll(): Unit { - throw NotImplementedError("_poll is not implemented for MultiplayerPeerExtension") - } + public abstract fun _poll(): Unit /** * Called when the multiplayer peer should be immediately closed (see [MultiplayerPeer.close]). */ - public open fun _close(): Unit { - throw NotImplementedError("_close is not implemented for MultiplayerPeerExtension") - } + public abstract fun _close(): Unit /** * Called when the connected [pPeer] should be forcibly disconnected (see * [MultiplayerPeer.disconnectPeer]). */ - public open fun _disconnectPeer(pPeer: Int, pForce: Boolean): Unit { - throw NotImplementedError("_disconnectPeer is not implemented for MultiplayerPeerExtension") - } + public abstract fun _disconnectPeer(pPeer: Int, pForce: Boolean): Unit /** * Called when the unique ID of this [MultiplayerPeer] is requested (see * [MultiplayerPeer.getUniqueId]). The value must be between `1` and `2147483647`. */ - public open fun _getUniqueId(): Int { - throw NotImplementedError("_getUniqueId is not implemented for MultiplayerPeerExtension") - } + public abstract fun _getUniqueId(): Int /** * Called when the "refuse new connections" status is set on this [MultiplayerPeer] (see * [MultiplayerPeer.refuseNewConnections]). */ public open fun _setRefuseNewConnections(pEnable: Boolean): Unit { - throw NotImplementedError("_setRefuseNewConnections is not implemented for MultiplayerPeerExtension") + throw NotImplementedError("MultiplayerPeerExtension::_setRefuseNewConnections is not implemented.") } /** @@ -171,7 +141,7 @@ public open class MultiplayerPeerExtension : MultiplayerPeer() { * [MultiplayerPeer.refuseNewConnections]). */ public open fun _isRefusingNewConnections(): Boolean { - throw NotImplementedError("_isRefusingNewConnections is not implemented for MultiplayerPeerExtension") + throw NotImplementedError("MultiplayerPeerExtension::_isRefusingNewConnections is not implemented.") } /** @@ -179,16 +149,14 @@ public open class MultiplayerPeerExtension : MultiplayerPeer() { * [MultiplayerPeer.isServerRelaySupported]. */ public open fun _isServerRelaySupported(): Boolean { - throw NotImplementedError("_isServerRelaySupported is not implemented for MultiplayerPeerExtension") + throw NotImplementedError("MultiplayerPeerExtension::_isServerRelaySupported is not implemented.") } /** * Called when the connection status is requested on the [MultiplayerPeer] (see * [MultiplayerPeer.getConnectionStatus]). */ - public open fun _getConnectionStatus(): MultiplayerPeer.ConnectionStatus { - throw NotImplementedError("_getConnectionStatus is not implemented for MultiplayerPeerExtension") - } + public abstract fun _getConnectionStatus(): MultiplayerPeer.ConnectionStatus public companion object diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/Node.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/Node.kt index db98c2eed..7f243de6b 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/Node.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/Node.kt @@ -653,7 +653,7 @@ public open class Node : Object() { * methods for this purpose instead, such as [Time.getTicksUsec]. */ public open fun _process(delta: Double): Unit { - throw NotImplementedError("_process is not implemented for Node") + throw NotImplementedError("Node::_process is not implemented.") } /** @@ -681,7 +681,7 @@ public open class Node : Object() { * methods for this purpose instead, such as [Time.getTicksUsec]. */ public open fun _physicsProcess(delta: Double): Unit { - throw NotImplementedError("_physicsProcess is not implemented for Node") + throw NotImplementedError("Node::_physicsProcess is not implemented.") } /** @@ -692,7 +692,7 @@ public open class Node : Object() { * Corresponds to the [NOTIFICATION_ENTER_TREE] notification in [Object.Notification]. */ public open fun _enterTree(): Unit { - throw NotImplementedError("_enterTree is not implemented for Node") + throw NotImplementedError("Node::_enterTree is not implemented.") } /** @@ -705,7 +705,7 @@ public open class Node : Object() { * the [signal tree_exited]. */ public open fun _exitTree(): Unit { - throw NotImplementedError("_exitTree is not implemented for Node") + throw NotImplementedError("Node::_exitTree is not implemented.") } /** @@ -725,7 +725,7 @@ public open class Node : Object() { * adding the node again. */ public open fun _ready(): Unit { - throw NotImplementedError("_ready is not implemented for Node") + throw NotImplementedError("Node::_ready is not implemented.") } /** @@ -750,7 +750,7 @@ public open class Node : Object() { * ``` */ public open fun _getConfigurationWarnings(): PackedStringArray { - throw NotImplementedError("_getConfigurationWarnings is not implemented for Node") + throw NotImplementedError("Node::_getConfigurationWarnings is not implemented.") } /** @@ -770,7 +770,7 @@ public open class Node : Object() { * an orphan). */ public open fun _input(event: InputEvent?): Unit { - throw NotImplementedError("_input is not implemented for Node") + throw NotImplementedError("Node::_input is not implemented.") } /** @@ -791,7 +791,7 @@ public open class Node : Object() { * orphan). */ public open fun _shortcutInput(event: InputEvent?): Unit { - throw NotImplementedError("_shortcutInput is not implemented for Node") + throw NotImplementedError("Node::_shortcutInput is not implemented.") } /** @@ -814,7 +814,7 @@ public open class Node : Object() { * an orphan). */ public open fun _unhandledInput(event: InputEvent?): Unit { - throw NotImplementedError("_unhandledInput is not implemented for Node") + throw NotImplementedError("Node::_unhandledInput is not implemented.") } /** @@ -840,7 +840,7 @@ public open class Node : Object() { * an orphan). */ public open fun _unhandledKeyInput(event: InputEvent?): Unit { - throw NotImplementedError("_unhandledKeyInput is not implemented for Node") + throw NotImplementedError("Node::_unhandledKeyInput is not implemented.") } /** diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/NoiseTexture2D.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/NoiseTexture2D.kt index 68a52d90b..1eb2e2a10 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/NoiseTexture2D.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/NoiseTexture2D.kt @@ -19,6 +19,7 @@ import kotlin.Boolean import kotlin.Double import kotlin.Float import kotlin.Int +import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit import kotlin.jvm.JvmName @@ -321,6 +322,20 @@ public open class NoiseTexture2D : Texture2D() { return (TransferContext.readReturnValue(OBJECT) as Noise?) } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getWidth(): Int { + throw NotImplementedError("NoiseTexture2D::_getWidth can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getHeight(): Int { + throw NotImplementedError("NoiseTexture2D::_getHeight can't be called from the JVM.") + } + public companion object public object MethodBindings { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/NoiseTexture3D.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/NoiseTexture3D.kt index a46a50734..bb02d2a80 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/NoiseTexture3D.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/NoiseTexture3D.kt @@ -10,6 +10,7 @@ import godot.`annotation`.GodotBaseType import godot.`internal`.memory.TransferContext import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr +import godot.core.VariantArray import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG @@ -19,6 +20,7 @@ import kotlin.Boolean import kotlin.Double import kotlin.Float import kotlin.Int +import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit import kotlin.jvm.JvmName @@ -241,6 +243,48 @@ public open class NoiseTexture3D : Texture3D() { return (TransferContext.readReturnValue(OBJECT) as Noise?) } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getFormat(): Image.Format { + throw NotImplementedError("NoiseTexture3D::_getFormat can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getWidth(): Int { + throw NotImplementedError("NoiseTexture3D::_getWidth can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getHeight(): Int { + throw NotImplementedError("NoiseTexture3D::_getHeight can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getDepth(): Int { + throw NotImplementedError("NoiseTexture3D::_getDepth can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _hasMipmaps(): Boolean { + throw NotImplementedError("NoiseTexture3D::_hasMipmaps can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getData(): VariantArray { + throw NotImplementedError("NoiseTexture3D::_getData can't be called from the JVM.") + } + public companion object public object MethodBindings { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/OpenXRActionBindingModifier.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/OpenXRActionBindingModifier.kt index 5d2d4b2bb..2c022221c 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/OpenXRActionBindingModifier.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/OpenXRActionBindingModifier.kt @@ -7,7 +7,10 @@ package godot.api import godot.`annotation`.GodotBaseType +import godot.core.PackedByteArray import kotlin.Int +import kotlin.NotImplementedError +import kotlin.String import kotlin.Suppress import kotlin.Unit @@ -20,6 +23,20 @@ public open class OpenXRActionBindingModifier : OpenXRBindingModifier() { createNativeObject(412, scriptIndex) } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getDescription(): String { + throw NotImplementedError("OpenXRActionBindingModifier::_getDescription can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getIpModification(): PackedByteArray { + throw NotImplementedError("OpenXRActionBindingModifier::_getIpModification can't be called from the JVM.") + } + public companion object public object MethodBindings diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/OpenXRBindingModifier.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/OpenXRBindingModifier.kt index 3369d1cd5..9200e3bbe 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/OpenXRBindingModifier.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/OpenXRBindingModifier.kt @@ -9,7 +9,6 @@ package godot.api import godot.`annotation`.GodotBaseType import godot.core.PackedByteArray import kotlin.Int -import kotlin.NotImplementedError import kotlin.String import kotlin.Suppress import kotlin.Unit @@ -19,7 +18,7 @@ import kotlin.Unit * runtime processes inputs. */ @GodotBaseType -public open class OpenXRBindingModifier internal constructor() : Resource() { +public abstract class OpenXRBindingModifier internal constructor() : Resource() { public override fun new(scriptIndex: Int): Unit { createNativeObject(416, scriptIndex) } @@ -28,9 +27,7 @@ public open class OpenXRBindingModifier internal constructor() : Resource() { * Return the description of this class that is used for the title bar of the binding modifier * editor. */ - public open fun _getDescription(): String { - throw NotImplementedError("_getDescription is not implemented for OpenXRBindingModifier") - } + public abstract fun _getDescription(): String /** * Returns the data that is sent to OpenXR when submitting the suggested interacting bindings this @@ -38,9 +35,7 @@ public open class OpenXRBindingModifier internal constructor() : Resource() { * * **Note:** This must be data compatible with a `XrBindingModificationBaseHeaderKHR` structure. */ - public open fun _getIpModification(): PackedByteArray { - throw NotImplementedError("_getIpModification is not implemented for OpenXRBindingModifier") - } + public abstract fun _getIpModification(): PackedByteArray public companion object diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/OpenXRExtensionWrapperExtension.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/OpenXRExtensionWrapperExtension.kt index a4e15ca12..8db97fc36 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/OpenXRExtensionWrapperExtension.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/OpenXRExtensionWrapperExtension.kt @@ -43,7 +43,7 @@ public open class OpenXRExtensionWrapperExtension : Object() { * is enabled. */ public open fun _getRequestedExtensions(): Dictionary { - throw NotImplementedError("_getRequestedExtensions is not implemented for OpenXRExtensionWrapperExtension") + throw NotImplementedError("OpenXRExtensionWrapperExtension::_getRequestedExtensions is not implemented.") } /** @@ -54,7 +54,7 @@ public open class OpenXRExtensionWrapperExtension : Object() { * [OpenXRAPIExtension.registerCompositionLayerProvider]. */ public open fun _getCompositionLayerCount(): Int { - throw NotImplementedError("_getCompositionLayerCount is not implemented for OpenXRExtensionWrapperExtension") + throw NotImplementedError("OpenXRExtensionWrapperExtension::_getCompositionLayerCount is not implemented.") } /** @@ -65,7 +65,7 @@ public open class OpenXRExtensionWrapperExtension : Object() { * [OpenXRAPIExtension.registerCompositionLayerProvider]. */ public open fun _getCompositionLayer(index: Int): Long { - throw NotImplementedError("_getCompositionLayer is not implemented for OpenXRExtensionWrapperExtension") + throw NotImplementedError("OpenXRExtensionWrapperExtension::_getCompositionLayer is not implemented.") } /** @@ -78,7 +78,7 @@ public open class OpenXRExtensionWrapperExtension : Object() { * [OpenXRAPIExtension.registerCompositionLayerProvider]. */ public open fun _getCompositionLayerOrder(index: Int): Int { - throw NotImplementedError("_getCompositionLayerOrder is not implemented for OpenXRExtensionWrapperExtension") + throw NotImplementedError("OpenXRExtensionWrapperExtension::_getCompositionLayerOrder is not implemented.") } /** @@ -86,7 +86,7 @@ public open class OpenXRExtensionWrapperExtension : Object() { * wrapper. */ public open fun _getSuggestedTrackerNames(): PackedStringArray { - throw NotImplementedError("_getSuggestedTrackerNames is not implemented for OpenXRExtensionWrapperExtension") + throw NotImplementedError("OpenXRExtensionWrapperExtension::_getSuggestedTrackerNames is not implemented.") } /** @@ -98,35 +98,35 @@ public open class OpenXRExtensionWrapperExtension : Object() { * relevant hardware. */ public open fun _onRegisterMetadata(): Unit { - throw NotImplementedError("_onRegisterMetadata is not implemented for OpenXRExtensionWrapperExtension") + throw NotImplementedError("OpenXRExtensionWrapperExtension::_onRegisterMetadata is not implemented.") } /** * Called before the OpenXR instance is created. */ public open fun _onBeforeInstanceCreated(): Unit { - throw NotImplementedError("_onBeforeInstanceCreated is not implemented for OpenXRExtensionWrapperExtension") + throw NotImplementedError("OpenXRExtensionWrapperExtension::_onBeforeInstanceCreated is not implemented.") } /** * Called right after the OpenXR instance is created. */ public open fun _onInstanceCreated(instance: Long): Unit { - throw NotImplementedError("_onInstanceCreated is not implemented for OpenXRExtensionWrapperExtension") + throw NotImplementedError("OpenXRExtensionWrapperExtension::_onInstanceCreated is not implemented.") } /** * Called right before the OpenXR instance is destroyed. */ public open fun _onInstanceDestroyed(): Unit { - throw NotImplementedError("_onInstanceDestroyed is not implemented for OpenXRExtensionWrapperExtension") + throw NotImplementedError("OpenXRExtensionWrapperExtension::_onInstanceDestroyed is not implemented.") } /** * Called right after the OpenXR session is created. */ public open fun _onSessionCreated(session: Long): Unit { - throw NotImplementedError("_onSessionCreated is not implemented for OpenXRExtensionWrapperExtension") + throw NotImplementedError("OpenXRExtensionWrapperExtension::_onSessionCreated is not implemented.") } /** @@ -135,28 +135,28 @@ public open class OpenXRExtensionWrapperExtension : Object() { * to game logic. */ public open fun _onProcess(): Unit { - throw NotImplementedError("_onProcess is not implemented for OpenXRExtensionWrapperExtension") + throw NotImplementedError("OpenXRExtensionWrapperExtension::_onProcess is not implemented.") } /** * Called right before the XR viewports begin their rendering step. */ public open fun _onPreRender(): Unit { - throw NotImplementedError("_onPreRender is not implemented for OpenXRExtensionWrapperExtension") + throw NotImplementedError("OpenXRExtensionWrapperExtension::_onPreRender is not implemented.") } /** * Called right after the main swapchains are (re)created. */ public open fun _onMainSwapchainsCreated(): Unit { - throw NotImplementedError("_onMainSwapchainsCreated is not implemented for OpenXRExtensionWrapperExtension") + throw NotImplementedError("OpenXRExtensionWrapperExtension::_onMainSwapchainsCreated is not implemented.") } /** * Called right before the given viewport is rendered. */ public open fun _onPreDrawViewport(viewport: RID): Unit { - throw NotImplementedError("_onPreDrawViewport is not implemented for OpenXRExtensionWrapperExtension") + throw NotImplementedError("OpenXRExtensionWrapperExtension::_onPreDrawViewport is not implemented.") } /** @@ -165,21 +165,21 @@ public open class OpenXRExtensionWrapperExtension : Object() { * **Note:** The draw commands might only be queued at this point, not executed. */ public open fun _onPostDrawViewport(viewport: RID): Unit { - throw NotImplementedError("_onPostDrawViewport is not implemented for OpenXRExtensionWrapperExtension") + throw NotImplementedError("OpenXRExtensionWrapperExtension::_onPostDrawViewport is not implemented.") } /** * Called right before the OpenXR session is destroyed. */ public open fun _onSessionDestroyed(): Unit { - throw NotImplementedError("_onSessionDestroyed is not implemented for OpenXRExtensionWrapperExtension") + throw NotImplementedError("OpenXRExtensionWrapperExtension::_onSessionDestroyed is not implemented.") } /** * Called when the OpenXR session state is changed to idle. */ public open fun _onStateIdle(): Unit { - throw NotImplementedError("_onStateIdle is not implemented for OpenXRExtensionWrapperExtension") + throw NotImplementedError("OpenXRExtensionWrapperExtension::_onStateIdle is not implemented.") } /** @@ -187,7 +187,7 @@ public open class OpenXRExtensionWrapperExtension : Object() { * the session. */ public open fun _onStateReady(): Unit { - throw NotImplementedError("_onStateReady is not implemented for OpenXRExtensionWrapperExtension") + throw NotImplementedError("OpenXRExtensionWrapperExtension::_onStateReady is not implemented.") } /** @@ -195,7 +195,7 @@ public open class OpenXRExtensionWrapperExtension : Object() { * state when the application loses focus. */ public open fun _onStateSynchronized(): Unit { - throw NotImplementedError("_onStateSynchronized is not implemented for OpenXRExtensionWrapperExtension") + throw NotImplementedError("OpenXRExtensionWrapperExtension::_onStateSynchronized is not implemented.") } /** @@ -203,7 +203,7 @@ public open class OpenXRExtensionWrapperExtension : Object() { * receive frames. */ public open fun _onStateVisible(): Unit { - throw NotImplementedError("_onStateVisible is not implemented for OpenXRExtensionWrapperExtension") + throw NotImplementedError("OpenXRExtensionWrapperExtension::_onStateVisible is not implemented.") } /** @@ -211,28 +211,28 @@ public open class OpenXRExtensionWrapperExtension : Object() { * the game runs. */ public open fun _onStateFocused(): Unit { - throw NotImplementedError("_onStateFocused is not implemented for OpenXRExtensionWrapperExtension") + throw NotImplementedError("OpenXRExtensionWrapperExtension::_onStateFocused is not implemented.") } /** * Called when the OpenXR session state is changed to stopping. */ public open fun _onStateStopping(): Unit { - throw NotImplementedError("_onStateStopping is not implemented for OpenXRExtensionWrapperExtension") + throw NotImplementedError("OpenXRExtensionWrapperExtension::_onStateStopping is not implemented.") } /** * Called when the OpenXR session state is changed to loss pending. */ public open fun _onStateLossPending(): Unit { - throw NotImplementedError("_onStateLossPending is not implemented for OpenXRExtensionWrapperExtension") + throw NotImplementedError("OpenXRExtensionWrapperExtension::_onStateLossPending is not implemented.") } /** * Called when the OpenXR session state is changed to exiting. */ public open fun _onStateExiting(): Unit { - throw NotImplementedError("_onStateExiting is not implemented for OpenXRExtensionWrapperExtension") + throw NotImplementedError("OpenXRExtensionWrapperExtension::_onStateExiting is not implemented.") } /** @@ -241,7 +241,7 @@ public open class OpenXRExtensionWrapperExtension : Object() { */ public open fun _getViewportCompositionLayerExtensionProperties(): VariantArray> { - throw NotImplementedError("_getViewportCompositionLayerExtensionProperties is not implemented for OpenXRExtensionWrapperExtension") + throw NotImplementedError("OpenXRExtensionWrapperExtension::_getViewportCompositionLayerExtensionProperties is not implemented.") } /** @@ -249,7 +249,7 @@ public open class OpenXRExtensionWrapperExtension : Object() { * [_getViewportCompositionLayerExtensionProperties]. */ public open fun _getViewportCompositionLayerExtensionPropertyDefaults(): Dictionary { - throw NotImplementedError("_getViewportCompositionLayerExtensionPropertyDefaults is not implemented for OpenXRExtensionWrapperExtension") + throw NotImplementedError("OpenXRExtensionWrapperExtension::_getViewportCompositionLayerExtensionPropertyDefaults is not implemented.") } /** diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/OpenXRIPBindingModifier.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/OpenXRIPBindingModifier.kt index a652a1e3b..eb6f93b9e 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/OpenXRIPBindingModifier.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/OpenXRIPBindingModifier.kt @@ -7,7 +7,10 @@ package godot.api import godot.`annotation`.GodotBaseType +import godot.core.PackedByteArray import kotlin.Int +import kotlin.NotImplementedError +import kotlin.String import kotlin.Suppress import kotlin.Unit @@ -20,6 +23,20 @@ public open class OpenXRIPBindingModifier : OpenXRBindingModifier() { createNativeObject(427, scriptIndex) } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getDescription(): String { + throw NotImplementedError("OpenXRIPBindingModifier::_getDescription can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getIpModification(): PackedByteArray { + throw NotImplementedError("OpenXRIPBindingModifier::_getIpModification can't be called from the JVM.") + } + public companion object public object MethodBindings diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/PacketPeerExtension.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/PacketPeerExtension.kt index dc6b243dc..a0f57d66d 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/PacketPeerExtension.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/PacketPeerExtension.kt @@ -8,23 +8,18 @@ package godot.api import godot.`annotation`.GodotBaseType import kotlin.Int -import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit @GodotBaseType -public open class PacketPeerExtension : PacketPeer() { +public abstract class PacketPeerExtension : PacketPeer() { public override fun new(scriptIndex: Int): Unit { createNativeObject(440, scriptIndex) } - public open fun _getAvailablePacketCount(): Int { - throw NotImplementedError("_getAvailablePacketCount is not implemented for PacketPeerExtension") - } + public abstract fun _getAvailablePacketCount(): Int - public open fun _getMaxPacketSize(): Int { - throw NotImplementedError("_getMaxPacketSize is not implemented for PacketPeerExtension") - } + public abstract fun _getMaxPacketSize(): Int public companion object diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/PanoramaSkyMaterial.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/PanoramaSkyMaterial.kt index b71aa1bab..b03ff1083 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/PanoramaSkyMaterial.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/PanoramaSkyMaterial.kt @@ -10,6 +10,7 @@ import godot.`annotation`.GodotBaseType import godot.`internal`.memory.TransferContext import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr +import godot.core.RID import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL @@ -18,6 +19,7 @@ import kotlin.Boolean import kotlin.Double import kotlin.Float import kotlin.Int +import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit import kotlin.jvm.JvmName @@ -106,6 +108,20 @@ public open class PanoramaSkyMaterial : Material() { return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getShaderRid(): RID { + throw NotImplementedError("PanoramaSkyMaterial::_getShaderRid can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getShaderMode(): Shader.Mode { + throw NotImplementedError("PanoramaSkyMaterial::_getShaderMode can't be called from the JVM.") + } + public companion object public object MethodBindings { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/ParticleProcessMaterial.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/ParticleProcessMaterial.kt index 2abd680b6..5e9688141 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/ParticleProcessMaterial.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/ParticleProcessMaterial.kt @@ -13,6 +13,7 @@ import godot.`internal`.memory.TransferContext import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color +import godot.core.RID import godot.core.Signal0 import godot.core.VariantParser.BOOL import godot.core.VariantParser.COLOR @@ -29,6 +30,7 @@ import kotlin.Double import kotlin.Float import kotlin.Int import kotlin.Long +import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit import kotlin.jvm.JvmName @@ -2733,6 +2735,20 @@ public open class ParticleProcessMaterial : Material() { return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getShaderRid(): RID { + throw NotImplementedError("ParticleProcessMaterial::_getShaderRid can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getShaderMode(): Shader.Mode { + throw NotImplementedError("ParticleProcessMaterial::_getShaderMode can't be called from the JVM.") + } + public enum class Parameter( id: Long, ) { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/PhysicalBone3D.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/PhysicalBone3D.kt index f47bc8b13..6c4481c91 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/PhysicalBone3D.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/PhysicalBone3D.kt @@ -392,7 +392,7 @@ public open class PhysicalBone3D : PhysicsBody3D() { * custom force integration for a body. */ public open fun _integrateForces(state: PhysicsDirectBodyState3D?): Unit { - throw NotImplementedError("_integrateForces is not implemented for PhysicalBone3D") + throw NotImplementedError("PhysicalBone3D::_integrateForces is not implemented.") } /** diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/PhysicalSkyMaterial.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/PhysicalSkyMaterial.kt index 39340ae48..63c630d2a 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/PhysicalSkyMaterial.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/PhysicalSkyMaterial.kt @@ -13,6 +13,7 @@ import godot.`internal`.memory.TransferContext import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color +import godot.core.RID import godot.core.VariantParser.BOOL import godot.core.VariantParser.COLOR import godot.core.VariantParser.DOUBLE @@ -22,6 +23,7 @@ import kotlin.Boolean import kotlin.Double import kotlin.Float import kotlin.Int +import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit import kotlin.jvm.JvmName @@ -382,6 +384,20 @@ public open class PhysicalSkyMaterial : Material() { return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getShaderRid(): RID { + throw NotImplementedError("PhysicalSkyMaterial::_getShaderRid can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getShaderMode(): Shader.Mode { + throw NotImplementedError("PhysicalSkyMaterial::_getShaderMode can't be called from the JVM.") + } + public companion object public object MethodBindings { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/PhysicsDirectBodyState2DExtension.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/PhysicsDirectBodyState2DExtension.kt index c73b2a093..0d415b153 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/PhysicsDirectBodyState2DExtension.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/PhysicsDirectBodyState2DExtension.kt @@ -14,7 +14,6 @@ import kotlin.Boolean import kotlin.Float import kotlin.Int import kotlin.Long -import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit @@ -26,7 +25,7 @@ import kotlin.Unit * Intended for use with GDExtension to create custom implementations of [PhysicsDirectBodyState2D]. */ @GodotBaseType -public open class PhysicsDirectBodyState2DExtension : PhysicsDirectBodyState2D() { +public abstract class PhysicsDirectBodyState2DExtension : PhysicsDirectBodyState2D() { public override fun new(scriptIndex: Int): Unit { createNativeObject(462, scriptIndex) } @@ -35,325 +34,237 @@ public open class PhysicsDirectBodyState2DExtension : PhysicsDirectBodyState2D() * Implement to override the behavior of [PhysicsDirectBodyState2D.totalGravity] and its * respective getter. */ - public open fun _getTotalGravity(): Vector2 { - throw NotImplementedError("_getTotalGravity is not implemented for PhysicsDirectBodyState2DExtension") - } + public abstract fun _getTotalGravity(): Vector2 /** * Implement to override the behavior of [PhysicsDirectBodyState2D.totalLinearDamp] and its * respective getter. */ - public open fun _getTotalLinearDamp(): Float { - throw NotImplementedError("_getTotalLinearDamp is not implemented for PhysicsDirectBodyState2DExtension") - } + public abstract fun _getTotalLinearDamp(): Float /** * Implement to override the behavior of [PhysicsDirectBodyState2D.totalAngularDamp] and its * respective getter. */ - public open fun _getTotalAngularDamp(): Float { - throw NotImplementedError("_getTotalAngularDamp is not implemented for PhysicsDirectBodyState2DExtension") - } + public abstract fun _getTotalAngularDamp(): Float /** * Implement to override the behavior of [PhysicsDirectBodyState2D.centerOfMass] and its * respective getter. */ - public open fun _getCenterOfMass(): Vector2 { - throw NotImplementedError("_getCenterOfMass is not implemented for PhysicsDirectBodyState2DExtension") - } + public abstract fun _getCenterOfMass(): Vector2 /** * Implement to override the behavior of [PhysicsDirectBodyState2D.centerOfMassLocal] and its * respective getter. */ - public open fun _getCenterOfMassLocal(): Vector2 { - throw NotImplementedError("_getCenterOfMassLocal is not implemented for PhysicsDirectBodyState2DExtension") - } + public abstract fun _getCenterOfMassLocal(): Vector2 /** * Implement to override the behavior of [PhysicsDirectBodyState2D.inverseMass] and its respective * getter. */ - public open fun _getInverseMass(): Float { - throw NotImplementedError("_getInverseMass is not implemented for PhysicsDirectBodyState2DExtension") - } + public abstract fun _getInverseMass(): Float /** * Implement to override the behavior of [PhysicsDirectBodyState2D.inverseInertia] and its * respective getter. */ - public open fun _getInverseInertia(): Float { - throw NotImplementedError("_getInverseInertia is not implemented for PhysicsDirectBodyState2DExtension") - } + public abstract fun _getInverseInertia(): Float /** * Implement to override the behavior of [PhysicsDirectBodyState2D.linearVelocity] and its * respective setter. */ - public open fun _setLinearVelocity(velocity: Vector2): Unit { - throw NotImplementedError("_setLinearVelocity is not implemented for PhysicsDirectBodyState2DExtension") - } + public abstract fun _setLinearVelocity(velocity: Vector2): Unit /** * Implement to override the behavior of [PhysicsDirectBodyState2D.linearVelocity] and its * respective getter. */ - public open fun _getLinearVelocity(): Vector2 { - throw NotImplementedError("_getLinearVelocity is not implemented for PhysicsDirectBodyState2DExtension") - } + public abstract fun _getLinearVelocity(): Vector2 /** * Implement to override the behavior of [PhysicsDirectBodyState2D.angularVelocity] and its * respective setter. */ - public open fun _setAngularVelocity(velocity: Float): Unit { - throw NotImplementedError("_setAngularVelocity is not implemented for PhysicsDirectBodyState2DExtension") - } + public abstract fun _setAngularVelocity(velocity: Float): Unit /** * Implement to override the behavior of [PhysicsDirectBodyState2D.angularVelocity] and its * respective getter. */ - public open fun _getAngularVelocity(): Float { - throw NotImplementedError("_getAngularVelocity is not implemented for PhysicsDirectBodyState2DExtension") - } + public abstract fun _getAngularVelocity(): Float /** * Implement to override the behavior of [PhysicsDirectBodyState2D.transform] and its respective * setter. */ - public open fun _setTransform(transform: Transform2D): Unit { - throw NotImplementedError("_setTransform is not implemented for PhysicsDirectBodyState2DExtension") - } + public abstract fun _setTransform(transform: Transform2D): Unit /** * Implement to override the behavior of [PhysicsDirectBodyState2D.transform] and its respective * getter. */ - public open fun _getTransform(): Transform2D { - throw NotImplementedError("_getTransform is not implemented for PhysicsDirectBodyState2DExtension") - } + public abstract fun _getTransform(): Transform2D /** * Overridable version of [PhysicsDirectBodyState2D.getVelocityAtLocalPosition]. */ - public open fun _getVelocityAtLocalPosition(localPosition: Vector2): Vector2 { - throw NotImplementedError("_getVelocityAtLocalPosition is not implemented for PhysicsDirectBodyState2DExtension") - } + public abstract fun _getVelocityAtLocalPosition(localPosition: Vector2): Vector2 /** * Overridable version of [PhysicsDirectBodyState2D.applyCentralImpulse]. */ - public open fun _applyCentralImpulse(impulse: Vector2): Unit { - throw NotImplementedError("_applyCentralImpulse is not implemented for PhysicsDirectBodyState2DExtension") - } + public abstract fun _applyCentralImpulse(impulse: Vector2): Unit /** * Overridable version of [PhysicsDirectBodyState2D.applyImpulse]. */ - public open fun _applyImpulse(impulse: Vector2, position: Vector2): Unit { - throw NotImplementedError("_applyImpulse is not implemented for PhysicsDirectBodyState2DExtension") - } + public abstract fun _applyImpulse(impulse: Vector2, position: Vector2): Unit /** * Overridable version of [PhysicsDirectBodyState2D.applyTorqueImpulse]. */ - public open fun _applyTorqueImpulse(impulse: Float): Unit { - throw NotImplementedError("_applyTorqueImpulse is not implemented for PhysicsDirectBodyState2DExtension") - } + public abstract fun _applyTorqueImpulse(impulse: Float): Unit /** * Overridable version of [PhysicsDirectBodyState2D.applyCentralForce]. */ - public open fun _applyCentralForce(force: Vector2): Unit { - throw NotImplementedError("_applyCentralForce is not implemented for PhysicsDirectBodyState2DExtension") - } + public abstract fun _applyCentralForce(force: Vector2): Unit /** * Overridable version of [PhysicsDirectBodyState2D.applyForce]. */ - public open fun _applyForce(force: Vector2, position: Vector2): Unit { - throw NotImplementedError("_applyForce is not implemented for PhysicsDirectBodyState2DExtension") - } + public abstract fun _applyForce(force: Vector2, position: Vector2): Unit /** * Overridable version of [PhysicsDirectBodyState2D.applyTorque]. */ - public open fun _applyTorque(torque: Float): Unit { - throw NotImplementedError("_applyTorque is not implemented for PhysicsDirectBodyState2DExtension") - } + public abstract fun _applyTorque(torque: Float): Unit /** * Overridable version of [PhysicsDirectBodyState2D.addConstantCentralForce]. */ - public open fun _addConstantCentralForce(force: Vector2): Unit { - throw NotImplementedError("_addConstantCentralForce is not implemented for PhysicsDirectBodyState2DExtension") - } + public abstract fun _addConstantCentralForce(force: Vector2): Unit /** * Overridable version of [PhysicsDirectBodyState2D.addConstantForce]. */ - public open fun _addConstantForce(force: Vector2, position: Vector2): Unit { - throw NotImplementedError("_addConstantForce is not implemented for PhysicsDirectBodyState2DExtension") - } + public abstract fun _addConstantForce(force: Vector2, position: Vector2): Unit /** * Overridable version of [PhysicsDirectBodyState2D.addConstantTorque]. */ - public open fun _addConstantTorque(torque: Float): Unit { - throw NotImplementedError("_addConstantTorque is not implemented for PhysicsDirectBodyState2DExtension") - } + public abstract fun _addConstantTorque(torque: Float): Unit /** * Overridable version of [PhysicsDirectBodyState2D.setConstantForce]. */ - public open fun _setConstantForce(force: Vector2): Unit { - throw NotImplementedError("_setConstantForce is not implemented for PhysicsDirectBodyState2DExtension") - } + public abstract fun _setConstantForce(force: Vector2): Unit /** * Overridable version of [PhysicsDirectBodyState2D.getConstantForce]. */ - public open fun _getConstantForce(): Vector2 { - throw NotImplementedError("_getConstantForce is not implemented for PhysicsDirectBodyState2DExtension") - } + public abstract fun _getConstantForce(): Vector2 /** * Overridable version of [PhysicsDirectBodyState2D.setConstantTorque]. */ - public open fun _setConstantTorque(torque: Float): Unit { - throw NotImplementedError("_setConstantTorque is not implemented for PhysicsDirectBodyState2DExtension") - } + public abstract fun _setConstantTorque(torque: Float): Unit /** * Overridable version of [PhysicsDirectBodyState2D.getConstantTorque]. */ - public open fun _getConstantTorque(): Float { - throw NotImplementedError("_getConstantTorque is not implemented for PhysicsDirectBodyState2DExtension") - } + public abstract fun _getConstantTorque(): Float /** * Implement to override the behavior of [PhysicsDirectBodyState2D.sleeping] and its respective * setter. */ - public open fun _setSleepState(enabled: Boolean): Unit { - throw NotImplementedError("_setSleepState is not implemented for PhysicsDirectBodyState2DExtension") - } + public abstract fun _setSleepState(enabled: Boolean): Unit /** * Implement to override the behavior of [PhysicsDirectBodyState2D.sleeping] and its respective * getter. */ - public open fun _isSleeping(): Boolean { - throw NotImplementedError("_isSleeping is not implemented for PhysicsDirectBodyState2DExtension") - } + public abstract fun _isSleeping(): Boolean /** * Overridable version of [PhysicsDirectBodyState2D.getContactCount]. */ - public open fun _getContactCount(): Int { - throw NotImplementedError("_getContactCount is not implemented for PhysicsDirectBodyState2DExtension") - } + public abstract fun _getContactCount(): Int /** * Overridable version of [PhysicsDirectBodyState2D.getContactLocalPosition]. */ - public open fun _getContactLocalPosition(contactIdx: Int): Vector2 { - throw NotImplementedError("_getContactLocalPosition is not implemented for PhysicsDirectBodyState2DExtension") - } + public abstract fun _getContactLocalPosition(contactIdx: Int): Vector2 /** * Overridable version of [PhysicsDirectBodyState2D.getContactLocalNormal]. */ - public open fun _getContactLocalNormal(contactIdx: Int): Vector2 { - throw NotImplementedError("_getContactLocalNormal is not implemented for PhysicsDirectBodyState2DExtension") - } + public abstract fun _getContactLocalNormal(contactIdx: Int): Vector2 /** * Overridable version of [PhysicsDirectBodyState2D.getContactLocalShape]. */ - public open fun _getContactLocalShape(contactIdx: Int): Int { - throw NotImplementedError("_getContactLocalShape is not implemented for PhysicsDirectBodyState2DExtension") - } + public abstract fun _getContactLocalShape(contactIdx: Int): Int /** * Overridable version of [PhysicsDirectBodyState2D.getContactLocalVelocityAtPosition]. */ - public open fun _getContactLocalVelocityAtPosition(contactIdx: Int): Vector2 { - throw NotImplementedError("_getContactLocalVelocityAtPosition is not implemented for PhysicsDirectBodyState2DExtension") - } + public abstract fun _getContactLocalVelocityAtPosition(contactIdx: Int): Vector2 /** * Overridable version of [PhysicsDirectBodyState2D.getContactCollider]. */ - public open fun _getContactCollider(contactIdx: Int): RID { - throw NotImplementedError("_getContactCollider is not implemented for PhysicsDirectBodyState2DExtension") - } + public abstract fun _getContactCollider(contactIdx: Int): RID /** * Overridable version of [PhysicsDirectBodyState2D.getContactColliderPosition]. */ - public open fun _getContactColliderPosition(contactIdx: Int): Vector2 { - throw NotImplementedError("_getContactColliderPosition is not implemented for PhysicsDirectBodyState2DExtension") - } + public abstract fun _getContactColliderPosition(contactIdx: Int): Vector2 /** * Overridable version of [PhysicsDirectBodyState2D.getContactColliderId]. */ - public open fun _getContactColliderId(contactIdx: Int): Long { - throw NotImplementedError("_getContactColliderId is not implemented for PhysicsDirectBodyState2DExtension") - } + public abstract fun _getContactColliderId(contactIdx: Int): Long /** * Overridable version of [PhysicsDirectBodyState2D.getContactColliderObject]. */ - public open fun _getContactColliderObject(contactIdx: Int): Object? { - throw NotImplementedError("_getContactColliderObject is not implemented for PhysicsDirectBodyState2DExtension") - } + public abstract fun _getContactColliderObject(contactIdx: Int): Object? /** * Overridable version of [PhysicsDirectBodyState2D.getContactColliderShape]. */ - public open fun _getContactColliderShape(contactIdx: Int): Int { - throw NotImplementedError("_getContactColliderShape is not implemented for PhysicsDirectBodyState2DExtension") - } + public abstract fun _getContactColliderShape(contactIdx: Int): Int /** * Overridable version of [PhysicsDirectBodyState2D.getContactColliderVelocityAtPosition]. */ - public open fun _getContactColliderVelocityAtPosition(contactIdx: Int): Vector2 { - throw NotImplementedError("_getContactColliderVelocityAtPosition is not implemented for PhysicsDirectBodyState2DExtension") - } + public abstract fun _getContactColliderVelocityAtPosition(contactIdx: Int): Vector2 /** * Overridable version of [PhysicsDirectBodyState2D.getContactImpulse]. */ - public open fun _getContactImpulse(contactIdx: Int): Vector2 { - throw NotImplementedError("_getContactImpulse is not implemented for PhysicsDirectBodyState2DExtension") - } + public abstract fun _getContactImpulse(contactIdx: Int): Vector2 /** * Implement to override the behavior of [PhysicsDirectBodyState2D.step] and its respective * getter. */ - public open fun _getStep(): Float { - throw NotImplementedError("_getStep is not implemented for PhysicsDirectBodyState2DExtension") - } + public abstract fun _getStep(): Float /** * Overridable version of [PhysicsDirectBodyState2D.integrateForces]. */ - public open fun _integrateForces(): Unit { - throw NotImplementedError("_integrateForces is not implemented for PhysicsDirectBodyState2DExtension") - } + public abstract fun _integrateForces(): Unit /** * Overridable version of [PhysicsDirectBodyState2D.getSpaceState]. */ - public open fun _getSpaceState(): PhysicsDirectSpaceState2D? { - throw NotImplementedError("_getSpaceState is not implemented for PhysicsDirectBodyState2DExtension") - } + public abstract fun _getSpaceState(): PhysicsDirectSpaceState2D? public companion object diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/PhysicsDirectBodyState3DExtension.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/PhysicsDirectBodyState3DExtension.kt index 00b551b4a..c10084c6d 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/PhysicsDirectBodyState3DExtension.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/PhysicsDirectBodyState3DExtension.kt @@ -15,7 +15,6 @@ import kotlin.Boolean import kotlin.Float import kotlin.Int import kotlin.Long -import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit @@ -27,194 +26,102 @@ import kotlin.Unit * Intended for use with GDExtension to create custom implementations of [PhysicsDirectBodyState3D]. */ @GodotBaseType -public open class PhysicsDirectBodyState3DExtension : PhysicsDirectBodyState3D() { +public abstract class PhysicsDirectBodyState3DExtension : PhysicsDirectBodyState3D() { public override fun new(scriptIndex: Int): Unit { createNativeObject(464, scriptIndex) } - public open fun _getTotalGravity(): Vector3 { - throw NotImplementedError("_getTotalGravity is not implemented for PhysicsDirectBodyState3DExtension") - } + public abstract fun _getTotalGravity(): Vector3 - public open fun _getTotalLinearDamp(): Float { - throw NotImplementedError("_getTotalLinearDamp is not implemented for PhysicsDirectBodyState3DExtension") - } + public abstract fun _getTotalLinearDamp(): Float - public open fun _getTotalAngularDamp(): Float { - throw NotImplementedError("_getTotalAngularDamp is not implemented for PhysicsDirectBodyState3DExtension") - } + public abstract fun _getTotalAngularDamp(): Float - public open fun _getCenterOfMass(): Vector3 { - throw NotImplementedError("_getCenterOfMass is not implemented for PhysicsDirectBodyState3DExtension") - } + public abstract fun _getCenterOfMass(): Vector3 - public open fun _getCenterOfMassLocal(): Vector3 { - throw NotImplementedError("_getCenterOfMassLocal is not implemented for PhysicsDirectBodyState3DExtension") - } + public abstract fun _getCenterOfMassLocal(): Vector3 - public open fun _getPrincipalInertiaAxes(): Basis { - throw NotImplementedError("_getPrincipalInertiaAxes is not implemented for PhysicsDirectBodyState3DExtension") - } + public abstract fun _getPrincipalInertiaAxes(): Basis - public open fun _getInverseMass(): Float { - throw NotImplementedError("_getInverseMass is not implemented for PhysicsDirectBodyState3DExtension") - } + public abstract fun _getInverseMass(): Float - public open fun _getInverseInertia(): Vector3 { - throw NotImplementedError("_getInverseInertia is not implemented for PhysicsDirectBodyState3DExtension") - } + public abstract fun _getInverseInertia(): Vector3 - public open fun _getInverseInertiaTensor(): Basis { - throw NotImplementedError("_getInverseInertiaTensor is not implemented for PhysicsDirectBodyState3DExtension") - } + public abstract fun _getInverseInertiaTensor(): Basis - public open fun _setLinearVelocity(velocity: Vector3): Unit { - throw NotImplementedError("_setLinearVelocity is not implemented for PhysicsDirectBodyState3DExtension") - } + public abstract fun _setLinearVelocity(velocity: Vector3): Unit - public open fun _getLinearVelocity(): Vector3 { - throw NotImplementedError("_getLinearVelocity is not implemented for PhysicsDirectBodyState3DExtension") - } + public abstract fun _getLinearVelocity(): Vector3 - public open fun _setAngularVelocity(velocity: Vector3): Unit { - throw NotImplementedError("_setAngularVelocity is not implemented for PhysicsDirectBodyState3DExtension") - } + public abstract fun _setAngularVelocity(velocity: Vector3): Unit - public open fun _getAngularVelocity(): Vector3 { - throw NotImplementedError("_getAngularVelocity is not implemented for PhysicsDirectBodyState3DExtension") - } + public abstract fun _getAngularVelocity(): Vector3 - public open fun _setTransform(transform: Transform3D): Unit { - throw NotImplementedError("_setTransform is not implemented for PhysicsDirectBodyState3DExtension") - } + public abstract fun _setTransform(transform: Transform3D): Unit - public open fun _getTransform(): Transform3D { - throw NotImplementedError("_getTransform is not implemented for PhysicsDirectBodyState3DExtension") - } + public abstract fun _getTransform(): Transform3D - public open fun _getVelocityAtLocalPosition(localPosition: Vector3): Vector3 { - throw NotImplementedError("_getVelocityAtLocalPosition is not implemented for PhysicsDirectBodyState3DExtension") - } + public abstract fun _getVelocityAtLocalPosition(localPosition: Vector3): Vector3 - public open fun _applyCentralImpulse(impulse: Vector3): Unit { - throw NotImplementedError("_applyCentralImpulse is not implemented for PhysicsDirectBodyState3DExtension") - } + public abstract fun _applyCentralImpulse(impulse: Vector3): Unit - public open fun _applyImpulse(impulse: Vector3, position: Vector3): Unit { - throw NotImplementedError("_applyImpulse is not implemented for PhysicsDirectBodyState3DExtension") - } + public abstract fun _applyImpulse(impulse: Vector3, position: Vector3): Unit - public open fun _applyTorqueImpulse(impulse: Vector3): Unit { - throw NotImplementedError("_applyTorqueImpulse is not implemented for PhysicsDirectBodyState3DExtension") - } + public abstract fun _applyTorqueImpulse(impulse: Vector3): Unit - public open fun _applyCentralForce(force: Vector3): Unit { - throw NotImplementedError("_applyCentralForce is not implemented for PhysicsDirectBodyState3DExtension") - } + public abstract fun _applyCentralForce(force: Vector3): Unit - public open fun _applyForce(force: Vector3, position: Vector3): Unit { - throw NotImplementedError("_applyForce is not implemented for PhysicsDirectBodyState3DExtension") - } + public abstract fun _applyForce(force: Vector3, position: Vector3): Unit - public open fun _applyTorque(torque: Vector3): Unit { - throw NotImplementedError("_applyTorque is not implemented for PhysicsDirectBodyState3DExtension") - } + public abstract fun _applyTorque(torque: Vector3): Unit - public open fun _addConstantCentralForce(force: Vector3): Unit { - throw NotImplementedError("_addConstantCentralForce is not implemented for PhysicsDirectBodyState3DExtension") - } + public abstract fun _addConstantCentralForce(force: Vector3): Unit - public open fun _addConstantForce(force: Vector3, position: Vector3): Unit { - throw NotImplementedError("_addConstantForce is not implemented for PhysicsDirectBodyState3DExtension") - } + public abstract fun _addConstantForce(force: Vector3, position: Vector3): Unit - public open fun _addConstantTorque(torque: Vector3): Unit { - throw NotImplementedError("_addConstantTorque is not implemented for PhysicsDirectBodyState3DExtension") - } + public abstract fun _addConstantTorque(torque: Vector3): Unit - public open fun _setConstantForce(force: Vector3): Unit { - throw NotImplementedError("_setConstantForce is not implemented for PhysicsDirectBodyState3DExtension") - } + public abstract fun _setConstantForce(force: Vector3): Unit - public open fun _getConstantForce(): Vector3 { - throw NotImplementedError("_getConstantForce is not implemented for PhysicsDirectBodyState3DExtension") - } + public abstract fun _getConstantForce(): Vector3 - public open fun _setConstantTorque(torque: Vector3): Unit { - throw NotImplementedError("_setConstantTorque is not implemented for PhysicsDirectBodyState3DExtension") - } + public abstract fun _setConstantTorque(torque: Vector3): Unit - public open fun _getConstantTorque(): Vector3 { - throw NotImplementedError("_getConstantTorque is not implemented for PhysicsDirectBodyState3DExtension") - } + public abstract fun _getConstantTorque(): Vector3 - public open fun _setSleepState(enabled: Boolean): Unit { - throw NotImplementedError("_setSleepState is not implemented for PhysicsDirectBodyState3DExtension") - } + public abstract fun _setSleepState(enabled: Boolean): Unit - public open fun _isSleeping(): Boolean { - throw NotImplementedError("_isSleeping is not implemented for PhysicsDirectBodyState3DExtension") - } + public abstract fun _isSleeping(): Boolean - public open fun _getContactCount(): Int { - throw NotImplementedError("_getContactCount is not implemented for PhysicsDirectBodyState3DExtension") - } + public abstract fun _getContactCount(): Int - public open fun _getContactLocalPosition(contactIdx: Int): Vector3 { - throw NotImplementedError("_getContactLocalPosition is not implemented for PhysicsDirectBodyState3DExtension") - } + public abstract fun _getContactLocalPosition(contactIdx: Int): Vector3 - public open fun _getContactLocalNormal(contactIdx: Int): Vector3 { - throw NotImplementedError("_getContactLocalNormal is not implemented for PhysicsDirectBodyState3DExtension") - } + public abstract fun _getContactLocalNormal(contactIdx: Int): Vector3 - public open fun _getContactImpulse(contactIdx: Int): Vector3 { - throw NotImplementedError("_getContactImpulse is not implemented for PhysicsDirectBodyState3DExtension") - } + public abstract fun _getContactImpulse(contactIdx: Int): Vector3 - public open fun _getContactLocalShape(contactIdx: Int): Int { - throw NotImplementedError("_getContactLocalShape is not implemented for PhysicsDirectBodyState3DExtension") - } + public abstract fun _getContactLocalShape(contactIdx: Int): Int - public open fun _getContactLocalVelocityAtPosition(contactIdx: Int): Vector3 { - throw NotImplementedError("_getContactLocalVelocityAtPosition is not implemented for PhysicsDirectBodyState3DExtension") - } + public abstract fun _getContactLocalVelocityAtPosition(contactIdx: Int): Vector3 - public open fun _getContactCollider(contactIdx: Int): RID { - throw NotImplementedError("_getContactCollider is not implemented for PhysicsDirectBodyState3DExtension") - } + public abstract fun _getContactCollider(contactIdx: Int): RID - public open fun _getContactColliderPosition(contactIdx: Int): Vector3 { - throw NotImplementedError("_getContactColliderPosition is not implemented for PhysicsDirectBodyState3DExtension") - } + public abstract fun _getContactColliderPosition(contactIdx: Int): Vector3 - public open fun _getContactColliderId(contactIdx: Int): Long { - throw NotImplementedError("_getContactColliderId is not implemented for PhysicsDirectBodyState3DExtension") - } + public abstract fun _getContactColliderId(contactIdx: Int): Long - public open fun _getContactColliderObject(contactIdx: Int): Object? { - throw NotImplementedError("_getContactColliderObject is not implemented for PhysicsDirectBodyState3DExtension") - } + public abstract fun _getContactColliderObject(contactIdx: Int): Object? - public open fun _getContactColliderShape(contactIdx: Int): Int { - throw NotImplementedError("_getContactColliderShape is not implemented for PhysicsDirectBodyState3DExtension") - } + public abstract fun _getContactColliderShape(contactIdx: Int): Int - public open fun _getContactColliderVelocityAtPosition(contactIdx: Int): Vector3 { - throw NotImplementedError("_getContactColliderVelocityAtPosition is not implemented for PhysicsDirectBodyState3DExtension") - } + public abstract fun _getContactColliderVelocityAtPosition(contactIdx: Int): Vector3 - public open fun _getStep(): Float { - throw NotImplementedError("_getStep is not implemented for PhysicsDirectBodyState3DExtension") - } + public abstract fun _getStep(): Float - public open fun _integrateForces(): Unit { - throw NotImplementedError("_integrateForces is not implemented for PhysicsDirectBodyState3DExtension") - } + public abstract fun _integrateForces(): Unit - public open fun _getSpaceState(): PhysicsDirectSpaceState3D? { - throw NotImplementedError("_getSpaceState is not implemented for PhysicsDirectBodyState3DExtension") - } + public abstract fun _getSpaceState(): PhysicsDirectSpaceState3D? public companion object diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/PhysicsDirectSpaceState2DExtension.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/PhysicsDirectSpaceState2DExtension.kt index e0ff83fc2..0f60be6f5 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/PhysicsDirectSpaceState2DExtension.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/PhysicsDirectSpaceState2DExtension.kt @@ -27,7 +27,7 @@ import kotlin.Unit * [PhysicsDirectSpaceState2D]. */ @GodotBaseType -public open class PhysicsDirectSpaceState2DExtension : PhysicsDirectSpaceState2D() { +public abstract class PhysicsDirectSpaceState2DExtension : PhysicsDirectSpaceState2D() { public override fun new(scriptIndex: Int): Unit { createNativeObject(466, scriptIndex) } diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/PhysicsDirectSpaceState3DExtension.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/PhysicsDirectSpaceState3DExtension.kt index 9de8cba88..784bc5ac1 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/PhysicsDirectSpaceState3DExtension.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/PhysicsDirectSpaceState3DExtension.kt @@ -16,7 +16,6 @@ import godot.core.VariantParser._RID import godot.core.Vector3 import kotlin.Boolean import kotlin.Int -import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit @@ -29,14 +28,12 @@ import kotlin.Unit * [PhysicsDirectSpaceState3D]. */ @GodotBaseType -public open class PhysicsDirectSpaceState3DExtension : PhysicsDirectSpaceState3D() { +public abstract class PhysicsDirectSpaceState3DExtension : PhysicsDirectSpaceState3D() { public override fun new(scriptIndex: Int): Unit { createNativeObject(468, scriptIndex) } - public open fun _getClosestPointToObjectVolume(`object`: RID, point: Vector3): Vector3 { - throw NotImplementedError("_getClosestPointToObjectVolume is not implemented for PhysicsDirectSpaceState3DExtension") - } + public abstract fun _getClosestPointToObjectVolume(`object`: RID, point: Vector3): Vector3 public final fun isBodyExcludedFromQuery(body: RID): Boolean { TransferContext.writeArguments(_RID to body) diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/PhysicsServer3DRenderingServerHandler.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/PhysicsServer3DRenderingServerHandler.kt index 4eb2d6444..ee14ed124 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/PhysicsServer3DRenderingServerHandler.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/PhysicsServer3DRenderingServerHandler.kt @@ -16,12 +16,11 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 import kotlin.Int -import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit @GodotBaseType -public open class PhysicsServer3DRenderingServerHandler : Object() { +public abstract class PhysicsServer3DRenderingServerHandler : Object() { public override fun new(scriptIndex: Int): Unit { createNativeObject(478, scriptIndex) } @@ -32,9 +31,7 @@ public open class PhysicsServer3DRenderingServerHandler : Object() { * * **Note:** The [vertex] parameter used to be of type `const void*` prior to Godot 4.2. */ - public open fun _setVertex(vertexId: Int, vertex: Vector3): Unit { - throw NotImplementedError("_setVertex is not implemented for PhysicsServer3DRenderingServerHandler") - } + public abstract fun _setVertex(vertexId: Int, vertex: Vector3): Unit /** * Called by the [PhysicsServer3D] to set the normal for the [SoftBody3D] vertex at the index @@ -42,16 +39,12 @@ public open class PhysicsServer3DRenderingServerHandler : Object() { * * **Note:** The [normal] parameter used to be of type `const void*` prior to Godot 4.2. */ - public open fun _setNormal(vertexId: Int, normal: Vector3): Unit { - throw NotImplementedError("_setNormal is not implemented for PhysicsServer3DRenderingServerHandler") - } + public abstract fun _setNormal(vertexId: Int, normal: Vector3): Unit /** * Called by the [PhysicsServer3D] to set the bounding box for the [SoftBody3D]. */ - public open fun _setAabb(aabb: AABB): Unit { - throw NotImplementedError("_setAabb is not implemented for PhysicsServer3DRenderingServerHandler") - } + public abstract fun _setAabb(aabb: AABB): Unit /** * Sets the position for the [SoftBody3D] vertex at the index specified by [vertexId]. diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/PlaceholderMaterial.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/PlaceholderMaterial.kt index aa6a9583f..0f7ea7320 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/PlaceholderMaterial.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/PlaceholderMaterial.kt @@ -7,7 +7,9 @@ package godot.api import godot.`annotation`.GodotBaseType +import godot.core.RID import kotlin.Int +import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit @@ -27,6 +29,20 @@ public open class PlaceholderMaterial : Material() { createNativeObject(489, scriptIndex) } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getShaderRid(): RID { + throw NotImplementedError("PlaceholderMaterial::_getShaderRid can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getShaderMode(): Shader.Mode { + throw NotImplementedError("PlaceholderMaterial::_getShaderMode can't be called from the JVM.") + } + public companion object public object MethodBindings diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/PlaceholderMesh.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/PlaceholderMesh.kt index b5fb6a21c..592e27e21 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/PlaceholderMesh.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/PlaceholderMesh.kt @@ -13,8 +13,14 @@ import godot.`internal`.memory.TransferContext import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.AABB +import godot.core.Dictionary +import godot.core.StringName +import godot.core.VariantArray import godot.core.VariantParser.NIL +import kotlin.Any import kotlin.Int +import kotlin.Long +import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit import kotlin.jvm.JvmName @@ -78,6 +84,104 @@ public open class PlaceholderMesh : Mesh() { TransferContext.callMethod(ptr, MethodBindings.setAabbPtr, NIL) } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getSurfaceCount(): Int { + throw NotImplementedError("PlaceholderMesh::_getSurfaceCount can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _surfaceGetArrayLen(index: Int): Int { + throw NotImplementedError("PlaceholderMesh::_surfaceGetArrayLen can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _surfaceGetArrayIndexLen(index: Int): Int { + throw NotImplementedError("PlaceholderMesh::_surfaceGetArrayIndexLen can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _surfaceGetArrays(index: Int): VariantArray { + throw NotImplementedError("PlaceholderMesh::_surfaceGetArrays can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _surfaceGetBlendShapeArrays(index: Int): VariantArray> { + throw NotImplementedError("PlaceholderMesh::_surfaceGetBlendShapeArrays can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _surfaceGetLods(index: Int): Dictionary { + throw NotImplementedError("PlaceholderMesh::_surfaceGetLods can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _surfaceGetFormat(index: Int): Long { + throw NotImplementedError("PlaceholderMesh::_surfaceGetFormat can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _surfaceGetPrimitiveType(index: Int): Long { + throw NotImplementedError("PlaceholderMesh::_surfaceGetPrimitiveType can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _surfaceSetMaterial(index: Int, material: Material?): Unit { + throw NotImplementedError("PlaceholderMesh::_surfaceSetMaterial can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _surfaceGetMaterial(index: Int): Material? { + throw NotImplementedError("PlaceholderMesh::_surfaceGetMaterial can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getBlendShapeCount(): Int { + throw NotImplementedError("PlaceholderMesh::_getBlendShapeCount can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getBlendShapeName(index: Int): StringName { + throw NotImplementedError("PlaceholderMesh::_getBlendShapeName can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _setBlendShapeName(index: Int, name: StringName): Unit { + throw NotImplementedError("PlaceholderMesh::_setBlendShapeName can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getAabb(): AABB { + throw NotImplementedError("PlaceholderMesh::_getAabb can't be called from the JVM.") + } + public companion object public object MethodBindings { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/PlaceholderTexture2D.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/PlaceholderTexture2D.kt index c766b4d08..935640399 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/PlaceholderTexture2D.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/PlaceholderTexture2D.kt @@ -16,6 +16,7 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import kotlin.Int +import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit import kotlin.jvm.JvmName @@ -82,6 +83,20 @@ public open class PlaceholderTexture2D : Texture2D() { TransferContext.callMethod(ptr, MethodBindings.setSizePtr, NIL) } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getWidth(): Int { + throw NotImplementedError("PlaceholderTexture2D::_getWidth can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getHeight(): Int { + throw NotImplementedError("PlaceholderTexture2D::_getHeight can't be called from the JVM.") + } + public companion object public object MethodBindings { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/PlaceholderTexture3D.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/PlaceholderTexture3D.kt index 36661073c..c95c72a86 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/PlaceholderTexture3D.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/PlaceholderTexture3D.kt @@ -12,10 +12,13 @@ import godot.`annotation`.GodotBaseType import godot.`internal`.memory.TransferContext import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr +import godot.core.VariantArray import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR3I import godot.core.Vector3i +import kotlin.Boolean import kotlin.Int +import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit import kotlin.jvm.JvmName @@ -88,6 +91,48 @@ public open class PlaceholderTexture3D : Texture3D() { return (TransferContext.readReturnValue(VECTOR3I) as Vector3i) } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getFormat(): Image.Format { + throw NotImplementedError("PlaceholderTexture3D::_getFormat can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getWidth(): Int { + throw NotImplementedError("PlaceholderTexture3D::_getWidth can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getHeight(): Int { + throw NotImplementedError("PlaceholderTexture3D::_getHeight can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getDepth(): Int { + throw NotImplementedError("PlaceholderTexture3D::_getDepth can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _hasMipmaps(): Boolean { + throw NotImplementedError("PlaceholderTexture3D::_hasMipmaps can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getData(): VariantArray { + throw NotImplementedError("PlaceholderTexture3D::_getData can't be called from the JVM.") + } + public companion object public object MethodBindings { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/PlaceholderTextureLayered.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/PlaceholderTextureLayered.kt index ef7d10ee5..ee66d8575 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/PlaceholderTextureLayered.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/PlaceholderTextureLayered.kt @@ -16,7 +16,10 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR2I import godot.core.Vector2i +import kotlin.Boolean import kotlin.Int +import kotlin.Long +import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit import kotlin.jvm.JvmName @@ -105,6 +108,55 @@ public open class PlaceholderTextureLayered internal constructor() : TextureLaye TransferContext.callMethod(ptr, MethodBindings.setLayersPtr, NIL) } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getFormat(): Image.Format { + throw NotImplementedError("PlaceholderTextureLayered::_getFormat can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getLayeredType(): Long { + throw NotImplementedError("PlaceholderTextureLayered::_getLayeredType can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getWidth(): Int { + throw NotImplementedError("PlaceholderTextureLayered::_getWidth can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getHeight(): Int { + throw NotImplementedError("PlaceholderTextureLayered::_getHeight can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getLayers(): Int { + throw NotImplementedError("PlaceholderTextureLayered::_getLayers can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _hasMipmaps(): Boolean { + throw NotImplementedError("PlaceholderTextureLayered::_hasMipmaps can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getLayerData(layerIndex: Int): Image? { + throw NotImplementedError("PlaceholderTextureLayered::_getLayerData can't be called from the JVM.") + } + public companion object public object MethodBindings { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/PortableCompressedTexture2D.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/PortableCompressedTexture2D.kt index 92c500951..d37d09090 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/PortableCompressedTexture2D.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/PortableCompressedTexture2D.kt @@ -23,6 +23,7 @@ import kotlin.Boolean import kotlin.Float import kotlin.Int import kotlin.Long +import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit import kotlin.jvm.JvmName @@ -162,6 +163,20 @@ public open class PortableCompressedTexture2D : Texture2D() { return (TransferContext.readReturnValue(BOOL) as Boolean) } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getWidth(): Int { + throw NotImplementedError("PortableCompressedTexture2D::_getWidth can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getHeight(): Int { + throw NotImplementedError("PortableCompressedTexture2D::_getHeight can't be called from the JVM.") + } + public enum class CompressionMode( id: Long, ) { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/PrimitiveMesh.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/PrimitiveMesh.kt index abeef71e3..83ef8e551 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/PrimitiveMesh.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/PrimitiveMesh.kt @@ -13,6 +13,8 @@ import godot.`internal`.memory.TransferContext import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.AABB +import godot.core.Dictionary +import godot.core.StringName import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL @@ -24,6 +26,7 @@ import kotlin.Boolean import kotlin.Double import kotlin.Float import kotlin.Int +import kotlin.Long import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit @@ -138,7 +141,7 @@ public open class PrimitiveMesh : Mesh() { * [Mesh.ArrayType] constants). */ public open fun _createMeshArray(): VariantArray { - throw NotImplementedError("_createMeshArray is not implemented for PrimitiveMesh") + throw NotImplementedError("PrimitiveMesh::_createMeshArray is not implemented.") } public final fun setMaterial(material: Material?): Unit { @@ -229,6 +232,104 @@ public open class PrimitiveMesh : Mesh() { TransferContext.callMethod(ptr, MethodBindings.requestUpdatePtr, NIL) } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getSurfaceCount(): Int { + throw NotImplementedError("PrimitiveMesh::_getSurfaceCount can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _surfaceGetArrayLen(index: Int): Int { + throw NotImplementedError("PrimitiveMesh::_surfaceGetArrayLen can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _surfaceGetArrayIndexLen(index: Int): Int { + throw NotImplementedError("PrimitiveMesh::_surfaceGetArrayIndexLen can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _surfaceGetArrays(index: Int): VariantArray { + throw NotImplementedError("PrimitiveMesh::_surfaceGetArrays can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _surfaceGetBlendShapeArrays(index: Int): VariantArray> { + throw NotImplementedError("PrimitiveMesh::_surfaceGetBlendShapeArrays can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _surfaceGetLods(index: Int): Dictionary { + throw NotImplementedError("PrimitiveMesh::_surfaceGetLods can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _surfaceGetFormat(index: Int): Long { + throw NotImplementedError("PrimitiveMesh::_surfaceGetFormat can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _surfaceGetPrimitiveType(index: Int): Long { + throw NotImplementedError("PrimitiveMesh::_surfaceGetPrimitiveType can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _surfaceSetMaterial(index: Int, material: Material?): Unit { + throw NotImplementedError("PrimitiveMesh::_surfaceSetMaterial can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _surfaceGetMaterial(index: Int): Material? { + throw NotImplementedError("PrimitiveMesh::_surfaceGetMaterial can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getBlendShapeCount(): Int { + throw NotImplementedError("PrimitiveMesh::_getBlendShapeCount can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getBlendShapeName(index: Int): StringName { + throw NotImplementedError("PrimitiveMesh::_getBlendShapeName can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _setBlendShapeName(index: Int, name: StringName): Unit { + throw NotImplementedError("PrimitiveMesh::_setBlendShapeName can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getAabb(): AABB { + throw NotImplementedError("PrimitiveMesh::_getAabb can't be called from the JVM.") + } + public companion object public object MethodBindings { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/ProceduralSkyMaterial.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/ProceduralSkyMaterial.kt index c3f5a63e0..fffe8b77f 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/ProceduralSkyMaterial.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/ProceduralSkyMaterial.kt @@ -13,6 +13,7 @@ import godot.`internal`.memory.TransferContext import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color +import godot.core.RID import godot.core.VariantParser.BOOL import godot.core.VariantParser.COLOR import godot.core.VariantParser.DOUBLE @@ -22,6 +23,7 @@ import kotlin.Boolean import kotlin.Double import kotlin.Float import kotlin.Int +import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit import kotlin.jvm.JvmName @@ -502,6 +504,20 @@ public open class ProceduralSkyMaterial : Material() { return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getShaderRid(): RID { + throw NotImplementedError("ProceduralSkyMaterial::_getShaderRid can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getShaderMode(): Shader.Mode { + throw NotImplementedError("ProceduralSkyMaterial::_getShaderMode can't be called from the JVM.") + } + public companion object public object MethodBindings { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/Range.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/Range.kt index 79cd0e967..5213d9ae9 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/Range.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/Range.kt @@ -171,7 +171,7 @@ public open class Range : Control() { * value_changed]). */ public open fun _valueChanged(newValue: Double): Unit { - throw NotImplementedError("_valueChanged is not implemented for Range") + throw NotImplementedError("Range::_valueChanged is not implemented.") } public final fun getValue(): Double { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/RenderDataExtension.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/RenderDataExtension.kt index c8ebbffc2..458cdae7c 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/RenderDataExtension.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/RenderDataExtension.kt @@ -26,21 +26,21 @@ public open class RenderDataExtension : RenderData() { * Implement this in GDExtension to return the implementation's [RenderSceneBuffers] object. */ public open fun _getRenderSceneBuffers(): RenderSceneBuffers? { - throw NotImplementedError("_getRenderSceneBuffers is not implemented for RenderDataExtension") + throw NotImplementedError("RenderDataExtension::_getRenderSceneBuffers is not implemented.") } /** * Implement this in GDExtension to return the implementation's [RenderSceneDataExtension] object. */ public open fun _getRenderSceneData(): RenderSceneData? { - throw NotImplementedError("_getRenderSceneData is not implemented for RenderDataExtension") + throw NotImplementedError("RenderDataExtension::_getRenderSceneData is not implemented.") } /** * Implement this in GDExtension to return the [RID] of the implementation's environment object. */ public open fun _getEnvironment(): RID { - throw NotImplementedError("_getEnvironment is not implemented for RenderDataExtension") + throw NotImplementedError("RenderDataExtension::_getEnvironment is not implemented.") } /** @@ -48,7 +48,7 @@ public open class RenderDataExtension : RenderData() { * object. */ public open fun _getCameraAttributes(): RID { - throw NotImplementedError("_getCameraAttributes is not implemented for RenderDataExtension") + throw NotImplementedError("RenderDataExtension::_getCameraAttributes is not implemented.") } public companion object diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/RenderSceneBuffersExtension.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/RenderSceneBuffersExtension.kt index 3e3ad1361..6b90e1148 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/RenderSceneBuffersExtension.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/RenderSceneBuffersExtension.kt @@ -27,35 +27,35 @@ public open class RenderSceneBuffersExtension : RenderSceneBuffers() { * Implement this in GDExtension to handle the (re)sizing of a viewport. */ public open fun _configure(config: RenderSceneBuffersConfiguration?): Unit { - throw NotImplementedError("_configure is not implemented for RenderSceneBuffersExtension") + throw NotImplementedError("RenderSceneBuffersExtension::_configure is not implemented.") } /** * Implement this in GDExtension to record a new FSR sharpness value. */ public open fun _setFsrSharpness(fsrSharpness: Float): Unit { - throw NotImplementedError("_setFsrSharpness is not implemented for RenderSceneBuffersExtension") + throw NotImplementedError("RenderSceneBuffersExtension::_setFsrSharpness is not implemented.") } /** * Implement this in GDExtension to change the texture mipmap bias. */ public open fun _setTextureMipmapBias(textureMipmapBias: Float): Unit { - throw NotImplementedError("_setTextureMipmapBias is not implemented for RenderSceneBuffersExtension") + throw NotImplementedError("RenderSceneBuffersExtension::_setTextureMipmapBias is not implemented.") } /** * Implement this in GDExtension to change the anisotropic filtering level. */ public open fun _setAnisotropicFilteringLevel(anisotropicFilteringLevel: Int): Unit { - throw NotImplementedError("_setAnisotropicFilteringLevel is not implemented for RenderSceneBuffersExtension") + throw NotImplementedError("RenderSceneBuffersExtension::_setAnisotropicFilteringLevel is not implemented.") } /** * Implement this in GDExtension to react to the debanding flag changing. */ public open fun _setUseDebanding(useDebanding: Boolean): Unit { - throw NotImplementedError("_setUseDebanding is not implemented for RenderSceneBuffersExtension") + throw NotImplementedError("RenderSceneBuffersExtension::_setUseDebanding is not implemented.") } public companion object diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/RenderSceneDataExtension.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/RenderSceneDataExtension.kt index f1691b405..ea221615d 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/RenderSceneDataExtension.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/RenderSceneDataExtension.kt @@ -30,35 +30,35 @@ public open class RenderSceneDataExtension : RenderSceneData() { * Implement this in GDExtension to return the camera [Transform3D]. */ public open fun _getCamTransform(): Transform3D { - throw NotImplementedError("_getCamTransform is not implemented for RenderSceneDataExtension") + throw NotImplementedError("RenderSceneDataExtension::_getCamTransform is not implemented.") } /** * Implement this in GDExtension to return the camera [Projection]. */ public open fun _getCamProjection(): Projection { - throw NotImplementedError("_getCamProjection is not implemented for RenderSceneDataExtension") + throw NotImplementedError("RenderSceneDataExtension::_getCamProjection is not implemented.") } /** * Implement this in GDExtension to return the view count. */ public open fun _getViewCount(): Long { - throw NotImplementedError("_getViewCount is not implemented for RenderSceneDataExtension") + throw NotImplementedError("RenderSceneDataExtension::_getViewCount is not implemented.") } /** * Implement this in GDExtension to return the eye offset for the given [view]. */ public open fun _getViewEyeOffset(view: Long): Vector3 { - throw NotImplementedError("_getViewEyeOffset is not implemented for RenderSceneDataExtension") + throw NotImplementedError("RenderSceneDataExtension::_getViewEyeOffset is not implemented.") } /** * Implement this in GDExtension to return the view [Projection] for the given [view]. */ public open fun _getViewProjection(view: Long): Projection { - throw NotImplementedError("_getViewProjection is not implemented for RenderSceneDataExtension") + throw NotImplementedError("RenderSceneDataExtension::_getViewProjection is not implemented.") } /** @@ -66,7 +66,7 @@ public open class RenderSceneDataExtension : RenderSceneData() { * data as a UBO. */ public open fun _getUniformBuffer(): RID { - throw NotImplementedError("_getUniformBuffer is not implemented for RenderSceneDataExtension") + throw NotImplementedError("RenderSceneDataExtension::_getUniformBuffer is not implemented.") } public companion object diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/Resource.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/Resource.kt index 177b834c0..3703a1839 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/Resource.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/Resource.kt @@ -153,14 +153,14 @@ public open class Resource : RefCounted() { * ``` */ public open fun _setupLocalToScene(): Unit { - throw NotImplementedError("_setupLocalToScene is not implemented for Resource") + throw NotImplementedError("Resource::_setupLocalToScene is not implemented.") } /** * Override this method to return a custom [RID] when [getRid] is called. */ public open fun _getRid(): RID { - throw NotImplementedError("_getRid is not implemented for Resource") + throw NotImplementedError("Resource::_getRid is not implemented.") } /** @@ -169,14 +169,14 @@ public open class Resource : RefCounted() { * state. */ public open fun _resetState(): Unit { - throw NotImplementedError("_resetState is not implemented for Resource") + throw NotImplementedError("Resource::_resetState is not implemented.") } /** * Sets the resource's path to [path] without involving the resource cache. */ public open fun _setPathCache(path: String): Unit { - throw NotImplementedError("_setPathCache is not implemented for Resource") + throw NotImplementedError("Resource::_setPathCache is not implemented.") } public final fun setPath(path: String): Unit { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/ResourceFormatLoader.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/ResourceFormatLoader.kt index f5c029c06..6b6cba3b4 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/ResourceFormatLoader.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/ResourceFormatLoader.kt @@ -46,7 +46,7 @@ public open class ResourceFormatLoader : RefCounted() { * Gets the list of extensions for files this loader is able to read. */ public open fun _getRecognizedExtensions(): PackedStringArray { - throw NotImplementedError("_getRecognizedExtensions is not implemented for ResourceFormatLoader") + throw NotImplementedError("ResourceFormatLoader::_getRecognizedExtensions is not implemented.") } /** @@ -58,7 +58,7 @@ public open class ResourceFormatLoader : RefCounted() { * [_getResourceType]. */ public open fun _recognizePath(path: String, type: StringName): Boolean { - throw NotImplementedError("_recognizePath is not implemented for ResourceFormatLoader") + throw NotImplementedError("ResourceFormatLoader::_recognizePath is not implemented.") } /** @@ -68,7 +68,7 @@ public open class ResourceFormatLoader : RefCounted() { * just handle `"Resource"` for them. */ public open fun _handlesType(type: StringName): Boolean { - throw NotImplementedError("_handlesType is not implemented for ResourceFormatLoader") + throw NotImplementedError("ResourceFormatLoader::_handlesType is not implemented.") } /** @@ -79,7 +79,7 @@ public open class ResourceFormatLoader : RefCounted() { * just return `"Resource"` for them. */ public open fun _getResourceType(path: String): String { - throw NotImplementedError("_getResourceType is not implemented for ResourceFormatLoader") + throw NotImplementedError("ResourceFormatLoader::_getResourceType is not implemented.") } /** @@ -87,7 +87,7 @@ public open class ResourceFormatLoader : RefCounted() { * resource has no script or the script isn't a named class, it should return `""`. */ public open fun _getResourceScriptClass(path: String): String { - throw NotImplementedError("_getResourceScriptClass is not implemented for ResourceFormatLoader") + throw NotImplementedError("ResourceFormatLoader::_getResourceScriptClass is not implemented.") } /** @@ -95,7 +95,7 @@ public open class ResourceFormatLoader : RefCounted() { * not overridden, a `.uid` file is generated along with the resource file, containing the unique ID. */ public open fun _getResourceUid(path: String): Long { - throw NotImplementedError("_getResourceUid is not implemented for ResourceFormatLoader") + throw NotImplementedError("ResourceFormatLoader::_getResourceUid is not implemented.") } /** @@ -106,7 +106,7 @@ public open class ResourceFormatLoader : RefCounted() { * just return `"Resource"` for them. */ public open fun _getDependencies(path: String, addTypes: Boolean): PackedStringArray { - throw NotImplementedError("_getDependencies is not implemented for ResourceFormatLoader") + throw NotImplementedError("ResourceFormatLoader::_getDependencies is not implemented.") } /** @@ -116,15 +116,15 @@ public open class ResourceFormatLoader : RefCounted() { * Returns [OK] on success, or an [Error] constant in case of failure. */ public open fun _renameDependencies(path: String, renames: Dictionary): Error { - throw NotImplementedError("_renameDependencies is not implemented for ResourceFormatLoader") + throw NotImplementedError("ResourceFormatLoader::_renameDependencies is not implemented.") } public open fun _exists(path: String): Boolean { - throw NotImplementedError("_exists is not implemented for ResourceFormatLoader") + throw NotImplementedError("ResourceFormatLoader::_exists is not implemented.") } public open fun _getClassesUsed(path: String): PackedStringArray { - throw NotImplementedError("_getClassesUsed is not implemented for ResourceFormatLoader") + throw NotImplementedError("ResourceFormatLoader::_getClassesUsed is not implemented.") } /** @@ -141,7 +141,7 @@ public open class ResourceFormatLoader : RefCounted() { useSubThreads: Boolean, cacheMode: Int, ): Any? { - throw NotImplementedError("_load is not implemented for ResourceFormatLoader") + throw NotImplementedError("ResourceFormatLoader::_load is not implemented.") } public enum class CacheMode( diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/ResourceFormatSaver.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/ResourceFormatSaver.kt index fbbf2f113..8d4ed5a3b 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/ResourceFormatSaver.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/ResourceFormatSaver.kt @@ -45,7 +45,7 @@ public open class ResourceFormatSaver : RefCounted() { path: String, flags: Long, ): Error { - throw NotImplementedError("_save is not implemented for ResourceFormatSaver") + throw NotImplementedError("ResourceFormatSaver::_save is not implemented.") } /** @@ -53,14 +53,14 @@ public open class ResourceFormatSaver : RefCounted() { * constant in case of failure. */ public open fun _setUid(path: String, uid: Long): Error { - throw NotImplementedError("_setUid is not implemented for ResourceFormatSaver") + throw NotImplementedError("ResourceFormatSaver::_setUid is not implemented.") } /** * Returns whether the given resource object can be saved by this saver. */ public open fun _recognize(resource: Resource?): Boolean { - throw NotImplementedError("_recognize is not implemented for ResourceFormatSaver") + throw NotImplementedError("ResourceFormatSaver::_recognize is not implemented.") } /** @@ -68,7 +68,7 @@ public open class ResourceFormatSaver : RefCounted() { * recognized (see [_recognize]). */ public open fun _getRecognizedExtensions(resource: Resource?): PackedStringArray { - throw NotImplementedError("_getRecognizedExtensions is not implemented for ResourceFormatSaver") + throw NotImplementedError("ResourceFormatSaver::_getRecognizedExtensions is not implemented.") } /** @@ -78,7 +78,7 @@ public open class ResourceFormatSaver : RefCounted() { * within the ones provided by [_getRecognizedExtensions]. */ public open fun _recognizePath(resource: Resource?, path: String): Boolean { - throw NotImplementedError("_recognizePath is not implemented for ResourceFormatSaver") + throw NotImplementedError("ResourceFormatSaver::_recognizePath is not implemented.") } public companion object diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/RichTextEffect.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/RichTextEffect.kt index 492286259..e2657dc5e 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/RichTextEffect.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/RichTextEffect.kt @@ -48,7 +48,7 @@ public open class RichTextEffect : Resource() { * transformation to avoid displaying broken text. */ public open fun _processCustomFx(charFx: CharFXTransform?): Boolean { - throw NotImplementedError("_processCustomFx is not implemented for RichTextEffect") + throw NotImplementedError("RichTextEffect::_processCustomFx is not implemented.") } public companion object diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/RigidBody2D.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/RigidBody2D.kt index 522632a33..8917d4a73 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/RigidBody2D.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/RigidBody2D.kt @@ -566,7 +566,7 @@ public open class RigidBody2D : PhysicsBody2D() { * custom force integration for a body. */ public open fun _integrateForces(state: PhysicsDirectBodyState2D?): Unit { - throw NotImplementedError("_integrateForces is not implemented for RigidBody2D") + throw NotImplementedError("RigidBody2D::_integrateForces is not implemented.") } public final fun setMass(mass: Float): Unit { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/RigidBody3D.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/RigidBody3D.kt index 52730fed7..0395b8d0a 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/RigidBody3D.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/RigidBody3D.kt @@ -684,7 +684,7 @@ public open class RigidBody3D : PhysicsBody3D() { * custom force integration for a body. */ public open fun _integrateForces(state: PhysicsDirectBodyState3D?): Unit { - throw NotImplementedError("_integrateForces is not implemented for RigidBody3D") + throw NotImplementedError("RigidBody3D::_integrateForces is not implemented.") } public final fun setMass(mass: Float): Unit { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/ScriptExtension.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/ScriptExtension.kt index 6b95758e6..5a1892585 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/ScriptExtension.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/ScriptExtension.kt @@ -20,154 +20,92 @@ import kotlin.Suppress import kotlin.Unit @GodotBaseType -public open class ScriptExtension : Script() { +public abstract class ScriptExtension : Script() { public override fun new(scriptIndex: Int): Unit { createNativeObject(573, scriptIndex) } - public open fun _editorCanReloadFromFile(): Boolean { - throw NotImplementedError("_editorCanReloadFromFile is not implemented for ScriptExtension") - } + public abstract fun _editorCanReloadFromFile(): Boolean - public open fun _canInstantiate(): Boolean { - throw NotImplementedError("_canInstantiate is not implemented for ScriptExtension") - } + public abstract fun _canInstantiate(): Boolean - public open fun _getBaseScript(): Script? { - throw NotImplementedError("_getBaseScript is not implemented for ScriptExtension") - } + public abstract fun _getBaseScript(): Script? - public open fun _getGlobalName(): StringName { - throw NotImplementedError("_getGlobalName is not implemented for ScriptExtension") - } + public abstract fun _getGlobalName(): StringName - public open fun _inheritsScript(script: Script?): Boolean { - throw NotImplementedError("_inheritsScript is not implemented for ScriptExtension") - } + public abstract fun _inheritsScript(script: Script?): Boolean - public open fun _getInstanceBaseType(): StringName { - throw NotImplementedError("_getInstanceBaseType is not implemented for ScriptExtension") - } + public abstract fun _getInstanceBaseType(): StringName - public open fun _instanceHas(`object`: Object?): Boolean { - throw NotImplementedError("_instanceHas is not implemented for ScriptExtension") - } + public abstract fun _instanceHas(`object`: Object?): Boolean - public open fun _hasSourceCode(): Boolean { - throw NotImplementedError("_hasSourceCode is not implemented for ScriptExtension") - } + public abstract fun _hasSourceCode(): Boolean - public open fun _getSourceCode(): String { - throw NotImplementedError("_getSourceCode is not implemented for ScriptExtension") - } + public abstract fun _getSourceCode(): String - public open fun _setSourceCode(code: String): Unit { - throw NotImplementedError("_setSourceCode is not implemented for ScriptExtension") - } + public abstract fun _setSourceCode(code: String): Unit - public open fun _reload(keepState: Boolean): Error { - throw NotImplementedError("_reload is not implemented for ScriptExtension") - } + public abstract fun _reload(keepState: Boolean): Error - public open fun _getDocClassName(): StringName { - throw NotImplementedError("_getDocClassName is not implemented for ScriptExtension") - } + public abstract fun _getDocClassName(): StringName - public open fun _getDocumentation(): VariantArray> { - throw NotImplementedError("_getDocumentation is not implemented for ScriptExtension") - } + public abstract fun _getDocumentation(): VariantArray> public open fun _getClassIconPath(): String { - throw NotImplementedError("_getClassIconPath is not implemented for ScriptExtension") + throw NotImplementedError("ScriptExtension::_getClassIconPath is not implemented.") } - public open fun _hasMethod(method: StringName): Boolean { - throw NotImplementedError("_hasMethod is not implemented for ScriptExtension") - } + public abstract fun _hasMethod(method: StringName): Boolean - public open fun _hasStaticMethod(method: StringName): Boolean { - throw NotImplementedError("_hasStaticMethod is not implemented for ScriptExtension") - } + public abstract fun _hasStaticMethod(method: StringName): Boolean /** * Return the expected argument count for the given [method], or `null` if it can't be determined * (which will then fall back to the default behavior). */ public open fun _getScriptMethodArgumentCount(method: StringName): Any? { - throw NotImplementedError("_getScriptMethodArgumentCount is not implemented for ScriptExtension") + throw NotImplementedError("ScriptExtension::_getScriptMethodArgumentCount is not implemented.") } - public open fun _getMethodInfo(method: StringName): Dictionary { - throw NotImplementedError("_getMethodInfo is not implemented for ScriptExtension") - } + public abstract fun _getMethodInfo(method: StringName): Dictionary - public open fun _isTool(): Boolean { - throw NotImplementedError("_isTool is not implemented for ScriptExtension") - } + public abstract fun _isTool(): Boolean - public open fun _isValid(): Boolean { - throw NotImplementedError("_isValid is not implemented for ScriptExtension") - } + public abstract fun _isValid(): Boolean /** * Returns `true` if the script is an abstract script. An abstract script does not have a * constructor and cannot be instantiated. */ public open fun _isAbstract(): Boolean { - throw NotImplementedError("_isAbstract is not implemented for ScriptExtension") + throw NotImplementedError("ScriptExtension::_isAbstract is not implemented.") } - public open fun _getLanguage(): ScriptLanguage? { - throw NotImplementedError("_getLanguage is not implemented for ScriptExtension") - } + public abstract fun _getLanguage(): ScriptLanguage? - public open fun _hasScriptSignal(signal: StringName): Boolean { - throw NotImplementedError("_hasScriptSignal is not implemented for ScriptExtension") - } + public abstract fun _hasScriptSignal(signal: StringName): Boolean - public open fun _getScriptSignalList(): VariantArray> { - throw NotImplementedError("_getScriptSignalList is not implemented for ScriptExtension") - } + public abstract fun _getScriptSignalList(): VariantArray> - public open fun _hasPropertyDefaultValue(`property`: StringName): Boolean { - throw NotImplementedError("_hasPropertyDefaultValue is not implemented for ScriptExtension") - } + public abstract fun _hasPropertyDefaultValue(`property`: StringName): Boolean - public open fun _getPropertyDefaultValue(`property`: StringName): Any? { - throw NotImplementedError("_getPropertyDefaultValue is not implemented for ScriptExtension") - } + public abstract fun _getPropertyDefaultValue(`property`: StringName): Any? - public open fun _updateExports(): Unit { - throw NotImplementedError("_updateExports is not implemented for ScriptExtension") - } + public abstract fun _updateExports(): Unit - public open fun _getScriptMethodList(): VariantArray> { - throw NotImplementedError("_getScriptMethodList is not implemented for ScriptExtension") - } + public abstract fun _getScriptMethodList(): VariantArray> - public open fun _getScriptPropertyList(): VariantArray> { - throw NotImplementedError("_getScriptPropertyList is not implemented for ScriptExtension") - } + public abstract fun _getScriptPropertyList(): VariantArray> - public open fun _getMemberLine(member: StringName): Int { - throw NotImplementedError("_getMemberLine is not implemented for ScriptExtension") - } + public abstract fun _getMemberLine(member: StringName): Int - public open fun _getConstants(): Dictionary { - throw NotImplementedError("_getConstants is not implemented for ScriptExtension") - } + public abstract fun _getConstants(): Dictionary - public open fun _getMembers(): VariantArray { - throw NotImplementedError("_getMembers is not implemented for ScriptExtension") - } + public abstract fun _getMembers(): VariantArray - public open fun _isPlaceholderFallbackEnabled(): Boolean { - throw NotImplementedError("_isPlaceholderFallbackEnabled is not implemented for ScriptExtension") - } + public abstract fun _isPlaceholderFallbackEnabled(): Boolean - public open fun _getRpcConfig(): Any? { - throw NotImplementedError("_getRpcConfig is not implemented for ScriptExtension") - } + public abstract fun _getRpcConfig(): Any? public companion object diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/ScriptLanguageExtension.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/ScriptLanguageExtension.kt index d34ea43ec..5cd9a56ec 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/ScriptLanguageExtension.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/ScriptLanguageExtension.kt @@ -22,290 +22,181 @@ import kotlin.Suppress import kotlin.Unit @GodotBaseType -public open class ScriptLanguageExtension : ScriptLanguage() { +public abstract class ScriptLanguageExtension : ScriptLanguage() { public override fun new(scriptIndex: Int): Unit { createNativeObject(575, scriptIndex) } - public open fun _getName(): String { - throw NotImplementedError("_getName is not implemented for ScriptLanguageExtension") - } + public abstract fun _getName(): String - public open fun _init(): Unit { - throw NotImplementedError("_init is not implemented for ScriptLanguageExtension") - } + public abstract fun _init(): Unit - public open fun _getType(): String { - throw NotImplementedError("_getType is not implemented for ScriptLanguageExtension") - } + public abstract fun _getType(): String - public open fun _getExtension(): String { - throw NotImplementedError("_getExtension is not implemented for ScriptLanguageExtension") - } + public abstract fun _getExtension(): String - public open fun _finish(): Unit { - throw NotImplementedError("_finish is not implemented for ScriptLanguageExtension") - } + public abstract fun _finish(): Unit - public open fun _getReservedWords(): PackedStringArray { - throw NotImplementedError("_getReservedWords is not implemented for ScriptLanguageExtension") - } + public abstract fun _getReservedWords(): PackedStringArray - public open fun _isControlFlowKeyword(keyword: String): Boolean { - throw NotImplementedError("_isControlFlowKeyword is not implemented for ScriptLanguageExtension") - } + public abstract fun _isControlFlowKeyword(keyword: String): Boolean - public open fun _getCommentDelimiters(): PackedStringArray { - throw NotImplementedError("_getCommentDelimiters is not implemented for ScriptLanguageExtension") - } + public abstract fun _getCommentDelimiters(): PackedStringArray public open fun _getDocCommentDelimiters(): PackedStringArray { - throw NotImplementedError("_getDocCommentDelimiters is not implemented for ScriptLanguageExtension") + throw NotImplementedError("ScriptLanguageExtension::_getDocCommentDelimiters is not implemented.") } - public open fun _getStringDelimiters(): PackedStringArray { - throw NotImplementedError("_getStringDelimiters is not implemented for ScriptLanguageExtension") - } + public abstract fun _getStringDelimiters(): PackedStringArray - public open fun _makeTemplate( + public abstract fun _makeTemplate( template: String, className: String, baseClassName: String, - ): Script? { - throw NotImplementedError("_makeTemplate is not implemented for ScriptLanguageExtension") - } + ): Script? - public open fun _getBuiltInTemplates(`object`: StringName): VariantArray> { - throw NotImplementedError("_getBuiltInTemplates is not implemented for ScriptLanguageExtension") - } + public abstract fun _getBuiltInTemplates(`object`: StringName): + VariantArray> - public open fun _isUsingTemplates(): Boolean { - throw NotImplementedError("_isUsingTemplates is not implemented for ScriptLanguageExtension") - } + public abstract fun _isUsingTemplates(): Boolean - public open fun _validate( + public abstract fun _validate( script: String, path: String, validateFunctions: Boolean, validateErrors: Boolean, validateWarnings: Boolean, validateSafeLines: Boolean, - ): Dictionary { - throw NotImplementedError("_validate is not implemented for ScriptLanguageExtension") - } + ): Dictionary - public open fun _validatePath(path: String): String { - throw NotImplementedError("_validatePath is not implemented for ScriptLanguageExtension") - } + public abstract fun _validatePath(path: String): String - public open fun _createScript(): Object? { - throw NotImplementedError("_createScript is not implemented for ScriptLanguageExtension") - } + public abstract fun _createScript(): Object? - public open fun _hasNamedClasses(): Boolean { - throw NotImplementedError("_hasNamedClasses is not implemented for ScriptLanguageExtension") - } + public abstract fun _hasNamedClasses(): Boolean - public open fun _supportsBuiltinMode(): Boolean { - throw NotImplementedError("_supportsBuiltinMode is not implemented for ScriptLanguageExtension") - } + public abstract fun _supportsBuiltinMode(): Boolean - public open fun _supportsDocumentation(): Boolean { - throw NotImplementedError("_supportsDocumentation is not implemented for ScriptLanguageExtension") - } + public abstract fun _supportsDocumentation(): Boolean - public open fun _canInheritFromFile(): Boolean { - throw NotImplementedError("_canInheritFromFile is not implemented for ScriptLanguageExtension") - } + public abstract fun _canInheritFromFile(): Boolean /** * Returns the line where the function is defined in the code, or `-1` if the function is not * present. */ - public open fun _findFunction(function: String, code: String): Int { - throw NotImplementedError("_findFunction is not implemented for ScriptLanguageExtension") - } + public abstract fun _findFunction(function: String, code: String): Int - public open fun _makeFunction( + public abstract fun _makeFunction( className: String, functionName: String, functionArgs: PackedStringArray, - ): String { - throw NotImplementedError("_makeFunction is not implemented for ScriptLanguageExtension") - } + ): String - public open fun _canMakeFunction(): Boolean { - throw NotImplementedError("_canMakeFunction is not implemented for ScriptLanguageExtension") - } + public abstract fun _canMakeFunction(): Boolean - public open fun _openInExternalEditor( + public abstract fun _openInExternalEditor( script: Script?, line: Int, column: Int, - ): Error { - throw NotImplementedError("_openInExternalEditor is not implemented for ScriptLanguageExtension") - } + ): Error - public open fun _overridesExternalEditor(): Boolean { - throw NotImplementedError("_overridesExternalEditor is not implemented for ScriptLanguageExtension") - } + public abstract fun _overridesExternalEditor(): Boolean public open fun _preferredFileNameCasing(): ScriptLanguage.ScriptNameCasing { - throw NotImplementedError("_preferredFileNameCasing is not implemented for ScriptLanguageExtension") + throw NotImplementedError("ScriptLanguageExtension::_preferredFileNameCasing is not implemented.") } - public open fun _completeCode( + public abstract fun _completeCode( code: String, path: String, owner: Object?, - ): Dictionary { - throw NotImplementedError("_completeCode is not implemented for ScriptLanguageExtension") - } + ): Dictionary - public open fun _lookupCode( + public abstract fun _lookupCode( code: String, symbol: String, path: String, owner: Object?, - ): Dictionary { - throw NotImplementedError("_lookupCode is not implemented for ScriptLanguageExtension") - } + ): Dictionary - public open fun _autoIndentCode( + public abstract fun _autoIndentCode( code: String, fromLine: Int, toLine: Int, - ): String { - throw NotImplementedError("_autoIndentCode is not implemented for ScriptLanguageExtension") - } + ): String - public open fun _addGlobalConstant(name: StringName, `value`: Any?): Unit { - throw NotImplementedError("_addGlobalConstant is not implemented for ScriptLanguageExtension") - } + public abstract fun _addGlobalConstant(name: StringName, `value`: Any?): Unit - public open fun _addNamedGlobalConstant(name: StringName, `value`: Any?): Unit { - throw NotImplementedError("_addNamedGlobalConstant is not implemented for ScriptLanguageExtension") - } + public abstract fun _addNamedGlobalConstant(name: StringName, `value`: Any?): Unit - public open fun _removeNamedGlobalConstant(name: StringName): Unit { - throw NotImplementedError("_removeNamedGlobalConstant is not implemented for ScriptLanguageExtension") - } + public abstract fun _removeNamedGlobalConstant(name: StringName): Unit - public open fun _threadEnter(): Unit { - throw NotImplementedError("_threadEnter is not implemented for ScriptLanguageExtension") - } + public abstract fun _threadEnter(): Unit - public open fun _threadExit(): Unit { - throw NotImplementedError("_threadExit is not implemented for ScriptLanguageExtension") - } + public abstract fun _threadExit(): Unit - public open fun _debugGetError(): String { - throw NotImplementedError("_debugGetError is not implemented for ScriptLanguageExtension") - } + public abstract fun _debugGetError(): String - public open fun _debugGetStackLevelCount(): Int { - throw NotImplementedError("_debugGetStackLevelCount is not implemented for ScriptLanguageExtension") - } + public abstract fun _debugGetStackLevelCount(): Int - public open fun _debugGetStackLevelLine(level: Int): Int { - throw NotImplementedError("_debugGetStackLevelLine is not implemented for ScriptLanguageExtension") - } + public abstract fun _debugGetStackLevelLine(level: Int): Int - public open fun _debugGetStackLevelFunction(level: Int): String { - throw NotImplementedError("_debugGetStackLevelFunction is not implemented for ScriptLanguageExtension") - } + public abstract fun _debugGetStackLevelFunction(level: Int): String /** * Returns the source associated with a given debug stack position. */ - public open fun _debugGetStackLevelSource(level: Int): String { - throw NotImplementedError("_debugGetStackLevelSource is not implemented for ScriptLanguageExtension") - } + public abstract fun _debugGetStackLevelSource(level: Int): String - public open fun _debugGetStackLevelLocals( + public abstract fun _debugGetStackLevelLocals( level: Int, maxSubitems: Int, maxDepth: Int, - ): Dictionary { - throw NotImplementedError("_debugGetStackLevelLocals is not implemented for ScriptLanguageExtension") - } + ): Dictionary - public open fun _debugGetStackLevelMembers( + public abstract fun _debugGetStackLevelMembers( level: Int, maxSubitems: Int, maxDepth: Int, - ): Dictionary { - throw NotImplementedError("_debugGetStackLevelMembers is not implemented for ScriptLanguageExtension") - } + ): Dictionary - public open fun _debugGetGlobals(maxSubitems: Int, maxDepth: Int): Dictionary { - throw NotImplementedError("_debugGetGlobals is not implemented for ScriptLanguageExtension") - } + public abstract fun _debugGetGlobals(maxSubitems: Int, maxDepth: Int): Dictionary - public open fun _debugParseStackLevelExpression( + public abstract fun _debugParseStackLevelExpression( level: Int, expression: String, maxSubitems: Int, maxDepth: Int, - ): String { - throw NotImplementedError("_debugParseStackLevelExpression is not implemented for ScriptLanguageExtension") - } + ): String - public open fun _debugGetCurrentStackInfo(): VariantArray> { - throw NotImplementedError("_debugGetCurrentStackInfo is not implemented for ScriptLanguageExtension") - } + public abstract fun _debugGetCurrentStackInfo(): VariantArray> - public open fun _reloadAllScripts(): Unit { - throw NotImplementedError("_reloadAllScripts is not implemented for ScriptLanguageExtension") - } + public abstract fun _reloadAllScripts(): Unit - public open fun _reloadScripts(scripts: VariantArray, softReload: Boolean): Unit { - throw NotImplementedError("_reloadScripts is not implemented for ScriptLanguageExtension") - } + public abstract fun _reloadScripts(scripts: VariantArray, softReload: Boolean): Unit - public open fun _reloadToolScript(script: Script?, softReload: Boolean): Unit { - throw NotImplementedError("_reloadToolScript is not implemented for ScriptLanguageExtension") - } + public abstract fun _reloadToolScript(script: Script?, softReload: Boolean): Unit - public open fun _getRecognizedExtensions(): PackedStringArray { - throw NotImplementedError("_getRecognizedExtensions is not implemented for ScriptLanguageExtension") - } + public abstract fun _getRecognizedExtensions(): PackedStringArray - public open fun _getPublicFunctions(): VariantArray> { - throw NotImplementedError("_getPublicFunctions is not implemented for ScriptLanguageExtension") - } + public abstract fun _getPublicFunctions(): VariantArray> - public open fun _getPublicConstants(): Dictionary { - throw NotImplementedError("_getPublicConstants is not implemented for ScriptLanguageExtension") - } + public abstract fun _getPublicConstants(): Dictionary - public open fun _getPublicAnnotations(): VariantArray> { - throw NotImplementedError("_getPublicAnnotations is not implemented for ScriptLanguageExtension") - } + public abstract fun _getPublicAnnotations(): VariantArray> - public open fun _profilingStart(): Unit { - throw NotImplementedError("_profilingStart is not implemented for ScriptLanguageExtension") - } + public abstract fun _profilingStart(): Unit - public open fun _profilingStop(): Unit { - throw NotImplementedError("_profilingStop is not implemented for ScriptLanguageExtension") - } + public abstract fun _profilingStop(): Unit - public open fun _profilingSetSaveNativeCalls(enable: Boolean): Unit { - throw NotImplementedError("_profilingSetSaveNativeCalls is not implemented for ScriptLanguageExtension") - } + public abstract fun _profilingSetSaveNativeCalls(enable: Boolean): Unit - public open fun _frame(): Unit { - throw NotImplementedError("_frame is not implemented for ScriptLanguageExtension") - } + public abstract fun _frame(): Unit - public open fun _handlesGlobalClassType(type: String): Boolean { - throw NotImplementedError("_handlesGlobalClassType is not implemented for ScriptLanguageExtension") - } + public abstract fun _handlesGlobalClassType(type: String): Boolean - public open fun _getGlobalClassName(path: String): Dictionary { - throw NotImplementedError("_getGlobalClassName is not implemented for ScriptLanguageExtension") - } + public abstract fun _getGlobalClassName(path: String): Dictionary public enum class LookupResultType( id: Long, diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/ShaderMaterial.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/ShaderMaterial.kt index 799bc1971..3a04fd29c 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/ShaderMaterial.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/ShaderMaterial.kt @@ -10,6 +10,7 @@ import godot.`annotation`.GodotBaseType import godot.`internal`.memory.TransferContext import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr +import godot.core.RID import godot.core.StringName import godot.core.VariantCaster.ANY import godot.core.VariantParser.NIL @@ -18,6 +19,7 @@ import godot.core.VariantParser.STRING_NAME import godot.core.asCachedStringName import kotlin.Any import kotlin.Int +import kotlin.NotImplementedError import kotlin.String import kotlin.Suppress import kotlin.Unit @@ -89,6 +91,20 @@ public open class ShaderMaterial : Material() { return (TransferContext.readReturnValue(ANY) as Any?) } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getShaderRid(): RID { + throw NotImplementedError("ShaderMaterial::_getShaderRid can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getShaderMode(): Shader.Mode { + throw NotImplementedError("ShaderMaterial::_getShaderMode can't be called from the JVM.") + } + /** * Changes the value set for this material of a uniform in the shader. * diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/SkeletonModification2D.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/SkeletonModification2D.kt index ec88fc125..e2d657cb9 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/SkeletonModification2D.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/SkeletonModification2D.kt @@ -67,14 +67,14 @@ public open class SkeletonModification2D : Resource() { * is designed to do. */ public open fun _execute(delta: Double): Unit { - throw NotImplementedError("_execute is not implemented for SkeletonModification2D") + throw NotImplementedError("SkeletonModification2D::_execute is not implemented.") } /** * Called when the modification is setup. This is where the modification performs initialization. */ public open fun _setupModification(modificationStack: SkeletonModificationStack2D?): Unit { - throw NotImplementedError("_setupModification is not implemented for SkeletonModification2D") + throw NotImplementedError("SkeletonModification2D::_setupModification is not implemented.") } /** @@ -85,7 +85,7 @@ public open class SkeletonModification2D : Resource() { * and it's draw functions, as the [SkeletonModification2D] resource cannot draw on its own. */ public open fun _drawEditorGizmo(): Unit { - throw NotImplementedError("_drawEditorGizmo is not implemented for SkeletonModification2D") + throw NotImplementedError("SkeletonModification2D::_drawEditorGizmo is not implemented.") } public final fun setEnabled(enabled: Boolean): Unit { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/SkeletonModifier3D.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/SkeletonModifier3D.kt index 6de2d35d3..cd65f33b9 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/SkeletonModifier3D.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/SkeletonModifier3D.kt @@ -80,7 +80,7 @@ public open class SkeletonModifier3D : Node3D() { * automatically applies influence to all bone poses set by the modifier. */ public open fun _processModification(): Unit { - throw NotImplementedError("_processModification is not implemented for SkeletonModifier3D") + throw NotImplementedError("SkeletonModifier3D::_processModification is not implemented.") } /** diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/StreamPeerExtension.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/StreamPeerExtension.kt index 118819324..50be88c36 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/StreamPeerExtension.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/StreamPeerExtension.kt @@ -8,19 +8,16 @@ package godot.api import godot.`annotation`.GodotBaseType import kotlin.Int -import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit @GodotBaseType -public open class StreamPeerExtension : StreamPeer() { +public abstract class StreamPeerExtension : StreamPeer() { public override fun new(scriptIndex: Int): Unit { createNativeObject(636, scriptIndex) } - public open fun _getAvailableBytes(): Int { - throw NotImplementedError("_getAvailableBytes is not implemented for StreamPeerExtension") - } + public abstract fun _getAvailableBytes(): Int public companion object diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/StyleBox.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/StyleBox.kt index 34f1c11bf..c4b42c27b 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/StyleBox.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/StyleBox.kt @@ -42,7 +42,7 @@ import kotlin.jvm.JvmName * across different nodes. */ @GodotBaseType -public open class StyleBox : Resource() { +public abstract class StyleBox : Resource() { /** * The left margin for the contents of this style box. Increasing this value reduces the space * available to the contents from the left. @@ -110,12 +110,10 @@ public open class StyleBox : Resource() { createNativeObject(640, scriptIndex) } - public open fun _draw(toCanvasItem: RID, rect: Rect2): Unit { - throw NotImplementedError("_draw is not implemented for StyleBox") - } + public abstract fun _draw(toCanvasItem: RID, rect: Rect2): Unit public open fun _getDrawRect(rect: Rect2): Rect2 { - throw NotImplementedError("_getDrawRect is not implemented for StyleBox") + throw NotImplementedError("StyleBox::_getDrawRect is not implemented.") } /** @@ -125,11 +123,11 @@ public open class StyleBox : Resource() { * behavior and the output of this method will be used, to account for both sizes. */ public open fun _getMinimumSize(): Vector2 { - throw NotImplementedError("_getMinimumSize is not implemented for StyleBox") + throw NotImplementedError("StyleBox::_getMinimumSize is not implemented.") } public open fun _testMask(point: Vector2, rect: Rect2): Boolean { - throw NotImplementedError("_testMask is not implemented for StyleBox") + throw NotImplementedError("StyleBox::_testMask is not implemented.") } /** diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/StyleBoxEmpty.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/StyleBoxEmpty.kt index 94f3d0f37..988c8fe1c 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/StyleBoxEmpty.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/StyleBoxEmpty.kt @@ -7,7 +7,10 @@ package godot.api import godot.`annotation`.GodotBaseType +import godot.core.RID +import godot.core.Rect2 import kotlin.Int +import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit @@ -21,6 +24,13 @@ public open class StyleBoxEmpty : StyleBox() { createNativeObject(641, scriptIndex) } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _draw(toCanvasItem: RID, rect: Rect2): Unit { + throw NotImplementedError("StyleBoxEmpty::_draw can't be called from the JVM.") + } + public companion object public object MethodBindings diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/StyleBoxFlat.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/StyleBoxFlat.kt index 5fdfd0aab..dd8b254bb 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/StyleBoxFlat.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/StyleBoxFlat.kt @@ -14,6 +14,8 @@ import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color import godot.core.Corner +import godot.core.RID +import godot.core.Rect2 import godot.core.Side import godot.core.VariantParser.BOOL import godot.core.VariantParser.COLOR @@ -27,6 +29,7 @@ import kotlin.Double import kotlin.Float import kotlin.Int import kotlin.Long +import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit import kotlin.jvm.JvmName @@ -708,6 +711,13 @@ public open class StyleBoxFlat : StyleBox() { return (TransferContext.readReturnValue(LONG) as Long).toInt() } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _draw(toCanvasItem: RID, rect: Rect2): Unit { + throw NotImplementedError("StyleBoxFlat::_draw can't be called from the JVM.") + } + public companion object public object MethodBindings { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/StyleBoxLine.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/StyleBoxLine.kt index 10bbc8f40..b58a1d4ae 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/StyleBoxLine.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/StyleBoxLine.kt @@ -13,6 +13,8 @@ import godot.`internal`.memory.TransferContext import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color +import godot.core.RID +import godot.core.Rect2 import godot.core.VariantParser.BOOL import godot.core.VariantParser.COLOR import godot.core.VariantParser.DOUBLE @@ -23,6 +25,7 @@ import kotlin.Double import kotlin.Float import kotlin.Int import kotlin.Long +import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit import kotlin.jvm.JvmName @@ -176,6 +179,13 @@ public open class StyleBoxLine : StyleBox() { return (TransferContext.readReturnValue(BOOL) as Boolean) } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _draw(toCanvasItem: RID, rect: Rect2): Unit { + throw NotImplementedError("StyleBoxLine::_draw can't be called from the JVM.") + } + public companion object public object MethodBindings { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/StyleBoxTexture.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/StyleBoxTexture.kt index dcac546c6..0eaa61c1b 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/StyleBoxTexture.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/StyleBoxTexture.kt @@ -13,6 +13,7 @@ import godot.`internal`.memory.TransferContext import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color +import godot.core.RID import godot.core.Rect2 import godot.core.Side import godot.core.VariantParser.BOOL @@ -27,6 +28,7 @@ import kotlin.Double import kotlin.Float import kotlin.Int import kotlin.Long +import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit import kotlin.jvm.JvmName @@ -400,6 +402,13 @@ public open class StyleBoxTexture : StyleBox() { return AxisStretchMode.from(TransferContext.readReturnValue(LONG) as Long) } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _draw(toCanvasItem: RID, rect: Rect2): Unit { + throw NotImplementedError("StyleBoxTexture::_draw can't be called from the JVM.") + } + public enum class AxisStretchMode( id: Long, ) { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/SubViewportContainer.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/SubViewportContainer.kt index 7165241f6..5a200988e 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/SubViewportContainer.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/SubViewportContainer.kt @@ -91,7 +91,7 @@ public open class SubViewportContainer : Container() { * not implemented, all events are propagated to SubViewports. */ public open fun _propagateInputEvent(event: InputEvent?): Boolean { - throw NotImplementedError("_propagateInputEvent is not implemented for SubViewportContainer") + throw NotImplementedError("SubViewportContainer::_propagateInputEvent is not implemented.") } public final fun setStretch(enable: Boolean): Unit { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/SyntaxHighlighter.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/SyntaxHighlighter.kt index e79f8ff78..19af07aac 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/SyntaxHighlighter.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/SyntaxHighlighter.kt @@ -39,21 +39,21 @@ public open class SyntaxHighlighter : Resource() { * See [getLineSyntaxHighlighting] for more details. */ public open fun _getLineSyntaxHighlighting(line: Int): Dictionary { - throw NotImplementedError("_getLineSyntaxHighlighting is not implemented for SyntaxHighlighter") + throw NotImplementedError("SyntaxHighlighter::_getLineSyntaxHighlighting is not implemented.") } /** * Virtual method which can be overridden to clear any local caches. */ public open fun _clearHighlightingCache(): Unit { - throw NotImplementedError("_clearHighlightingCache is not implemented for SyntaxHighlighter") + throw NotImplementedError("SyntaxHighlighter::_clearHighlightingCache is not implemented.") } /** * Virtual method which can be overridden to update any local caches. */ public open fun _updateCache(): Unit { - throw NotImplementedError("_updateCache is not implemented for SyntaxHighlighter") + throw NotImplementedError("SyntaxHighlighter::_updateCache is not implemented.") } /** diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/TextEdit.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/TextEdit.kt index 0ac3ac241..05f5a0661 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/TextEdit.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/TextEdit.kt @@ -625,35 +625,35 @@ public open class TextEdit : Control() { * [unicodeChar]. */ public open fun _handleUnicodeInput(unicodeChar: Int, caretIndex: Int): Unit { - throw NotImplementedError("_handleUnicodeInput is not implemented for TextEdit") + throw NotImplementedError("TextEdit::_handleUnicodeInput is not implemented.") } /** * Override this method to define what happens when the user presses the backspace key. */ public open fun _backspace(caretIndex: Int): Unit { - throw NotImplementedError("_backspace is not implemented for TextEdit") + throw NotImplementedError("TextEdit::_backspace is not implemented.") } /** * Override this method to define what happens when the user performs a cut operation. */ public open fun _cut(caretIndex: Int): Unit { - throw NotImplementedError("_cut is not implemented for TextEdit") + throw NotImplementedError("TextEdit::_cut is not implemented.") } /** * Override this method to define what happens when the user performs a copy operation. */ public open fun _copy(caretIndex: Int): Unit { - throw NotImplementedError("_copy is not implemented for TextEdit") + throw NotImplementedError("TextEdit::_copy is not implemented.") } /** * Override this method to define what happens when the user performs a paste operation. */ public open fun _paste(caretIndex: Int): Unit { - throw NotImplementedError("_paste is not implemented for TextEdit") + throw NotImplementedError("TextEdit::_paste is not implemented.") } /** @@ -663,7 +663,7 @@ public open class TextEdit : Control() { * **Note:** This method is only implemented on Linux. */ public open fun _pastePrimaryClipboard(caretIndex: Int): Unit { - throw NotImplementedError("_pastePrimaryClipboard is not implemented for TextEdit") + throw NotImplementedError("TextEdit::_pastePrimaryClipboard is not implemented.") } /** diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/TextServerAdvanced.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/TextServerAdvanced.kt index 4121aad15..f4d392f9b 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/TextServerAdvanced.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/TextServerAdvanced.kt @@ -7,7 +7,22 @@ package godot.api import godot.`annotation`.GodotBaseType +import godot.core.Color +import godot.core.Dictionary +import godot.core.InlineAlignment +import godot.core.PackedInt32Array +import godot.core.RID +import godot.core.Rect2 +import godot.core.VariantArray +import godot.core.Vector2 +import godot.core.Vector2i +import kotlin.Any +import kotlin.Boolean +import kotlin.Double import kotlin.Int +import kotlin.Long +import kotlin.NotImplementedError +import kotlin.String import kotlin.Suppress import kotlin.Unit @@ -22,6 +37,699 @@ public open class TextServerAdvanced : TextServerExtension() { createNativeObject(660, scriptIndex) } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _hasFeature(feature: TextServer.Feature): Boolean { + throw NotImplementedError("TextServerAdvanced::_hasFeature can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getName(): String { + throw NotImplementedError("TextServerAdvanced::_getName can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getFeatures(): Long { + throw NotImplementedError("TextServerAdvanced::_getFeatures can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _freeRid(rid: RID): Unit { + throw NotImplementedError("TextServerAdvanced::_freeRid can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _has(rid: RID): Boolean { + throw NotImplementedError("TextServerAdvanced::_has can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _createFont(): RID { + throw NotImplementedError("TextServerAdvanced::_createFont can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontSetFixedSize(fontRid: RID, fixedSize: Long): Unit { + throw NotImplementedError("TextServerAdvanced::_fontSetFixedSize can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontGetFixedSize(fontRid: RID): Long { + throw NotImplementedError("TextServerAdvanced::_fontGetFixedSize can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontSetFixedSizeScaleMode(fontRid: RID, + fixedSizeScaleMode: TextServer.FixedSizeScaleMode): Unit { + throw NotImplementedError("TextServerAdvanced::_fontSetFixedSizeScaleMode can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontGetFixedSizeScaleMode(fontRid: RID): TextServer.FixedSizeScaleMode { + throw NotImplementedError("TextServerAdvanced::_fontGetFixedSizeScaleMode can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontGetSizeCacheList(fontRid: RID): VariantArray { + throw NotImplementedError("TextServerAdvanced::_fontGetSizeCacheList can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontClearSizeCache(fontRid: RID): Unit { + throw NotImplementedError("TextServerAdvanced::_fontClearSizeCache can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontRemoveSizeCache(fontRid: RID, size: Vector2i): Unit { + throw NotImplementedError("TextServerAdvanced::_fontRemoveSizeCache can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontSetAscent( + fontRid: RID, + size: Long, + ascent: Double, + ): Unit { + throw NotImplementedError("TextServerAdvanced::_fontSetAscent can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontGetAscent(fontRid: RID, size: Long): Double { + throw NotImplementedError("TextServerAdvanced::_fontGetAscent can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontSetDescent( + fontRid: RID, + size: Long, + descent: Double, + ): Unit { + throw NotImplementedError("TextServerAdvanced::_fontSetDescent can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontGetDescent(fontRid: RID, size: Long): Double { + throw NotImplementedError("TextServerAdvanced::_fontGetDescent can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontSetUnderlinePosition( + fontRid: RID, + size: Long, + underlinePosition: Double, + ): Unit { + throw NotImplementedError("TextServerAdvanced::_fontSetUnderlinePosition can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontGetUnderlinePosition(fontRid: RID, size: Long): Double { + throw NotImplementedError("TextServerAdvanced::_fontGetUnderlinePosition can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontSetUnderlineThickness( + fontRid: RID, + size: Long, + underlineThickness: Double, + ): Unit { + throw NotImplementedError("TextServerAdvanced::_fontSetUnderlineThickness can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontGetUnderlineThickness(fontRid: RID, size: Long): Double { + throw NotImplementedError("TextServerAdvanced::_fontGetUnderlineThickness can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontSetScale( + fontRid: RID, + size: Long, + scale: Double, + ): Unit { + throw NotImplementedError("TextServerAdvanced::_fontSetScale can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontGetScale(fontRid: RID, size: Long): Double { + throw NotImplementedError("TextServerAdvanced::_fontGetScale can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontGetTextureCount(fontRid: RID, size: Vector2i): Long { + throw NotImplementedError("TextServerAdvanced::_fontGetTextureCount can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontClearTextures(fontRid: RID, size: Vector2i): Unit { + throw NotImplementedError("TextServerAdvanced::_fontClearTextures can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontRemoveTexture( + fontRid: RID, + size: Vector2i, + textureIndex: Long, + ): Unit { + throw NotImplementedError("TextServerAdvanced::_fontRemoveTexture can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontSetTextureImage( + fontRid: RID, + size: Vector2i, + textureIndex: Long, + image: Image?, + ): Unit { + throw NotImplementedError("TextServerAdvanced::_fontSetTextureImage can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontGetTextureImage( + fontRid: RID, + size: Vector2i, + textureIndex: Long, + ): Image? { + throw NotImplementedError("TextServerAdvanced::_fontGetTextureImage can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontGetGlyphList(fontRid: RID, size: Vector2i): PackedInt32Array { + throw NotImplementedError("TextServerAdvanced::_fontGetGlyphList can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontClearGlyphs(fontRid: RID, size: Vector2i): Unit { + throw NotImplementedError("TextServerAdvanced::_fontClearGlyphs can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontRemoveGlyph( + fontRid: RID, + size: Vector2i, + glyph: Long, + ): Unit { + throw NotImplementedError("TextServerAdvanced::_fontRemoveGlyph can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontGetGlyphAdvance( + fontRid: RID, + size: Long, + glyph: Long, + ): Vector2 { + throw NotImplementedError("TextServerAdvanced::_fontGetGlyphAdvance can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontSetGlyphAdvance( + fontRid: RID, + size: Long, + glyph: Long, + advance: Vector2, + ): Unit { + throw NotImplementedError("TextServerAdvanced::_fontSetGlyphAdvance can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontGetGlyphOffset( + fontRid: RID, + size: Vector2i, + glyph: Long, + ): Vector2 { + throw NotImplementedError("TextServerAdvanced::_fontGetGlyphOffset can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontSetGlyphOffset( + fontRid: RID, + size: Vector2i, + glyph: Long, + offset: Vector2, + ): Unit { + throw NotImplementedError("TextServerAdvanced::_fontSetGlyphOffset can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontGetGlyphSize( + fontRid: RID, + size: Vector2i, + glyph: Long, + ): Vector2 { + throw NotImplementedError("TextServerAdvanced::_fontGetGlyphSize can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontSetGlyphSize( + fontRid: RID, + size: Vector2i, + glyph: Long, + glSize: Vector2, + ): Unit { + throw NotImplementedError("TextServerAdvanced::_fontSetGlyphSize can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontGetGlyphUvRect( + fontRid: RID, + size: Vector2i, + glyph: Long, + ): Rect2 { + throw NotImplementedError("TextServerAdvanced::_fontGetGlyphUvRect can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontSetGlyphUvRect( + fontRid: RID, + size: Vector2i, + glyph: Long, + uvRect: Rect2, + ): Unit { + throw NotImplementedError("TextServerAdvanced::_fontSetGlyphUvRect can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontGetGlyphTextureIdx( + fontRid: RID, + size: Vector2i, + glyph: Long, + ): Long { + throw NotImplementedError("TextServerAdvanced::_fontGetGlyphTextureIdx can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontSetGlyphTextureIdx( + fontRid: RID, + size: Vector2i, + glyph: Long, + textureIdx: Long, + ): Unit { + throw NotImplementedError("TextServerAdvanced::_fontSetGlyphTextureIdx can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontGetGlyphTextureRid( + fontRid: RID, + size: Vector2i, + glyph: Long, + ): RID { + throw NotImplementedError("TextServerAdvanced::_fontGetGlyphTextureRid can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontGetGlyphTextureSize( + fontRid: RID, + size: Vector2i, + glyph: Long, + ): Vector2 { + throw NotImplementedError("TextServerAdvanced::_fontGetGlyphTextureSize can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontGetGlyphIndex( + fontRid: RID, + size: Long, + char: Long, + variationSelector: Long, + ): Long { + throw NotImplementedError("TextServerAdvanced::_fontGetGlyphIndex can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontGetCharFromGlyphIndex( + fontRid: RID, + size: Long, + glyphIndex: Long, + ): Long { + throw NotImplementedError("TextServerAdvanced::_fontGetCharFromGlyphIndex can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontHasChar(fontRid: RID, char: Long): Boolean { + throw NotImplementedError("TextServerAdvanced::_fontHasChar can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontGetSupportedChars(fontRid: RID): String { + throw NotImplementedError("TextServerAdvanced::_fontGetSupportedChars can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontGetSupportedGlyphs(fontRid: RID): PackedInt32Array { + throw NotImplementedError("TextServerAdvanced::_fontGetSupportedGlyphs can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontDrawGlyph( + fontRid: RID, + canvas: RID, + size: Long, + pos: Vector2, + index: Long, + color: Color, + ): Unit { + throw NotImplementedError("TextServerAdvanced::_fontDrawGlyph can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontDrawGlyphOutline( + fontRid: RID, + canvas: RID, + size: Long, + outlineSize: Long, + pos: Vector2, + index: Long, + color: Color, + ): Unit { + throw NotImplementedError("TextServerAdvanced::_fontDrawGlyphOutline can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _createShapedText(direction: TextServer.Direction, + orientation: TextServer.Orientation): RID { + throw NotImplementedError("TextServerAdvanced::_createShapedText can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _shapedTextClear(shaped: RID): Unit { + throw NotImplementedError("TextServerAdvanced::_shapedTextClear can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _shapedTextAddString( + shaped: RID, + text: String, + fonts: VariantArray, + size: Long, + opentypeFeatures: Dictionary, + language: String, + meta: Any?, + ): Boolean { + throw NotImplementedError("TextServerAdvanced::_shapedTextAddString can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _shapedTextAddObject( + shaped: RID, + key: Any?, + size: Vector2, + inlineAlign: InlineAlignment, + length: Long, + baseline: Double, + ): Boolean { + throw NotImplementedError("TextServerAdvanced::_shapedTextAddObject can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _shapedTextResizeObject( + shaped: RID, + key: Any?, + size: Vector2, + inlineAlign: InlineAlignment, + baseline: Double, + ): Boolean { + throw NotImplementedError("TextServerAdvanced::_shapedTextResizeObject can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _shapedGetSpanCount(shaped: RID): Long { + throw NotImplementedError("TextServerAdvanced::_shapedGetSpanCount can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _shapedGetSpanMeta(shaped: RID, index: Long): Any? { + throw NotImplementedError("TextServerAdvanced::_shapedGetSpanMeta can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _shapedGetSpanEmbeddedObject(shaped: RID, index: Long): Any? { + throw NotImplementedError("TextServerAdvanced::_shapedGetSpanEmbeddedObject can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _shapedSetSpanUpdateFont( + shaped: RID, + index: Long, + fonts: VariantArray, + size: Long, + opentypeFeatures: Dictionary, + ): Unit { + throw NotImplementedError("TextServerAdvanced::_shapedSetSpanUpdateFont can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _shapedTextSubstr( + shaped: RID, + start: Long, + length: Long, + ): RID { + throw NotImplementedError("TextServerAdvanced::_shapedTextSubstr can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _shapedTextGetParent(shaped: RID): RID { + throw NotImplementedError("TextServerAdvanced::_shapedTextGetParent can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _shapedTextShape(shaped: RID): Boolean { + throw NotImplementedError("TextServerAdvanced::_shapedTextShape can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _shapedTextIsReady(shaped: RID): Boolean { + throw NotImplementedError("TextServerAdvanced::_shapedTextIsReady can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _shapedTextGetGlyphCount(shaped: RID): Long { + throw NotImplementedError("TextServerAdvanced::_shapedTextGetGlyphCount can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _shapedTextGetRange(shaped: RID): Vector2i { + throw NotImplementedError("TextServerAdvanced::_shapedTextGetRange can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _shapedTextGetTrimPos(shaped: RID): Long { + throw NotImplementedError("TextServerAdvanced::_shapedTextGetTrimPos can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _shapedTextGetEllipsisPos(shaped: RID): Long { + throw NotImplementedError("TextServerAdvanced::_shapedTextGetEllipsisPos can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _shapedTextGetEllipsisGlyphCount(shaped: RID): Long { + throw NotImplementedError("TextServerAdvanced::_shapedTextGetEllipsisGlyphCount can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _shapedTextGetObjects(shaped: RID): VariantArray { + throw NotImplementedError("TextServerAdvanced::_shapedTextGetObjects can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _shapedTextGetObjectRect(shaped: RID, key: Any?): Rect2 { + throw NotImplementedError("TextServerAdvanced::_shapedTextGetObjectRect can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _shapedTextGetObjectRange(shaped: RID, key: Any?): Vector2i { + throw NotImplementedError("TextServerAdvanced::_shapedTextGetObjectRange can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _shapedTextGetObjectGlyph(shaped: RID, key: Any?): Long { + throw NotImplementedError("TextServerAdvanced::_shapedTextGetObjectGlyph can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _shapedTextGetSize(shaped: RID): Vector2 { + throw NotImplementedError("TextServerAdvanced::_shapedTextGetSize can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _shapedTextGetAscent(shaped: RID): Double { + throw NotImplementedError("TextServerAdvanced::_shapedTextGetAscent can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _shapedTextGetDescent(shaped: RID): Double { + throw NotImplementedError("TextServerAdvanced::_shapedTextGetDescent can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _shapedTextGetWidth(shaped: RID): Double { + throw NotImplementedError("TextServerAdvanced::_shapedTextGetWidth can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _shapedTextGetUnderlinePosition(shaped: RID): Double { + throw NotImplementedError("TextServerAdvanced::_shapedTextGetUnderlinePosition can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _shapedTextGetUnderlineThickness(shaped: RID): Double { + throw NotImplementedError("TextServerAdvanced::_shapedTextGetUnderlineThickness can't be called from the JVM.") + } + public companion object public object MethodBindings diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/TextServerDummy.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/TextServerDummy.kt index 74a05b0df..98dba2860 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/TextServerDummy.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/TextServerDummy.kt @@ -7,7 +7,22 @@ package godot.api import godot.`annotation`.GodotBaseType +import godot.core.Color +import godot.core.Dictionary +import godot.core.InlineAlignment +import godot.core.PackedInt32Array +import godot.core.RID +import godot.core.Rect2 +import godot.core.VariantArray +import godot.core.Vector2 +import godot.core.Vector2i +import kotlin.Any +import kotlin.Boolean +import kotlin.Double import kotlin.Int +import kotlin.Long +import kotlin.NotImplementedError +import kotlin.String import kotlin.Suppress import kotlin.Unit @@ -38,6 +53,699 @@ public open class TextServerDummy : TextServerExtension() { createNativeObject(661, scriptIndex) } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _hasFeature(feature: TextServer.Feature): Boolean { + throw NotImplementedError("TextServerDummy::_hasFeature can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getName(): String { + throw NotImplementedError("TextServerDummy::_getName can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getFeatures(): Long { + throw NotImplementedError("TextServerDummy::_getFeatures can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _freeRid(rid: RID): Unit { + throw NotImplementedError("TextServerDummy::_freeRid can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _has(rid: RID): Boolean { + throw NotImplementedError("TextServerDummy::_has can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _createFont(): RID { + throw NotImplementedError("TextServerDummy::_createFont can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontSetFixedSize(fontRid: RID, fixedSize: Long): Unit { + throw NotImplementedError("TextServerDummy::_fontSetFixedSize can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontGetFixedSize(fontRid: RID): Long { + throw NotImplementedError("TextServerDummy::_fontGetFixedSize can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontSetFixedSizeScaleMode(fontRid: RID, + fixedSizeScaleMode: TextServer.FixedSizeScaleMode): Unit { + throw NotImplementedError("TextServerDummy::_fontSetFixedSizeScaleMode can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontGetFixedSizeScaleMode(fontRid: RID): TextServer.FixedSizeScaleMode { + throw NotImplementedError("TextServerDummy::_fontGetFixedSizeScaleMode can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontGetSizeCacheList(fontRid: RID): VariantArray { + throw NotImplementedError("TextServerDummy::_fontGetSizeCacheList can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontClearSizeCache(fontRid: RID): Unit { + throw NotImplementedError("TextServerDummy::_fontClearSizeCache can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontRemoveSizeCache(fontRid: RID, size: Vector2i): Unit { + throw NotImplementedError("TextServerDummy::_fontRemoveSizeCache can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontSetAscent( + fontRid: RID, + size: Long, + ascent: Double, + ): Unit { + throw NotImplementedError("TextServerDummy::_fontSetAscent can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontGetAscent(fontRid: RID, size: Long): Double { + throw NotImplementedError("TextServerDummy::_fontGetAscent can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontSetDescent( + fontRid: RID, + size: Long, + descent: Double, + ): Unit { + throw NotImplementedError("TextServerDummy::_fontSetDescent can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontGetDescent(fontRid: RID, size: Long): Double { + throw NotImplementedError("TextServerDummy::_fontGetDescent can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontSetUnderlinePosition( + fontRid: RID, + size: Long, + underlinePosition: Double, + ): Unit { + throw NotImplementedError("TextServerDummy::_fontSetUnderlinePosition can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontGetUnderlinePosition(fontRid: RID, size: Long): Double { + throw NotImplementedError("TextServerDummy::_fontGetUnderlinePosition can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontSetUnderlineThickness( + fontRid: RID, + size: Long, + underlineThickness: Double, + ): Unit { + throw NotImplementedError("TextServerDummy::_fontSetUnderlineThickness can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontGetUnderlineThickness(fontRid: RID, size: Long): Double { + throw NotImplementedError("TextServerDummy::_fontGetUnderlineThickness can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontSetScale( + fontRid: RID, + size: Long, + scale: Double, + ): Unit { + throw NotImplementedError("TextServerDummy::_fontSetScale can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontGetScale(fontRid: RID, size: Long): Double { + throw NotImplementedError("TextServerDummy::_fontGetScale can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontGetTextureCount(fontRid: RID, size: Vector2i): Long { + throw NotImplementedError("TextServerDummy::_fontGetTextureCount can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontClearTextures(fontRid: RID, size: Vector2i): Unit { + throw NotImplementedError("TextServerDummy::_fontClearTextures can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontRemoveTexture( + fontRid: RID, + size: Vector2i, + textureIndex: Long, + ): Unit { + throw NotImplementedError("TextServerDummy::_fontRemoveTexture can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontSetTextureImage( + fontRid: RID, + size: Vector2i, + textureIndex: Long, + image: Image?, + ): Unit { + throw NotImplementedError("TextServerDummy::_fontSetTextureImage can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontGetTextureImage( + fontRid: RID, + size: Vector2i, + textureIndex: Long, + ): Image? { + throw NotImplementedError("TextServerDummy::_fontGetTextureImage can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontGetGlyphList(fontRid: RID, size: Vector2i): PackedInt32Array { + throw NotImplementedError("TextServerDummy::_fontGetGlyphList can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontClearGlyphs(fontRid: RID, size: Vector2i): Unit { + throw NotImplementedError("TextServerDummy::_fontClearGlyphs can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontRemoveGlyph( + fontRid: RID, + size: Vector2i, + glyph: Long, + ): Unit { + throw NotImplementedError("TextServerDummy::_fontRemoveGlyph can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontGetGlyphAdvance( + fontRid: RID, + size: Long, + glyph: Long, + ): Vector2 { + throw NotImplementedError("TextServerDummy::_fontGetGlyphAdvance can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontSetGlyphAdvance( + fontRid: RID, + size: Long, + glyph: Long, + advance: Vector2, + ): Unit { + throw NotImplementedError("TextServerDummy::_fontSetGlyphAdvance can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontGetGlyphOffset( + fontRid: RID, + size: Vector2i, + glyph: Long, + ): Vector2 { + throw NotImplementedError("TextServerDummy::_fontGetGlyphOffset can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontSetGlyphOffset( + fontRid: RID, + size: Vector2i, + glyph: Long, + offset: Vector2, + ): Unit { + throw NotImplementedError("TextServerDummy::_fontSetGlyphOffset can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontGetGlyphSize( + fontRid: RID, + size: Vector2i, + glyph: Long, + ): Vector2 { + throw NotImplementedError("TextServerDummy::_fontGetGlyphSize can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontSetGlyphSize( + fontRid: RID, + size: Vector2i, + glyph: Long, + glSize: Vector2, + ): Unit { + throw NotImplementedError("TextServerDummy::_fontSetGlyphSize can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontGetGlyphUvRect( + fontRid: RID, + size: Vector2i, + glyph: Long, + ): Rect2 { + throw NotImplementedError("TextServerDummy::_fontGetGlyphUvRect can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontSetGlyphUvRect( + fontRid: RID, + size: Vector2i, + glyph: Long, + uvRect: Rect2, + ): Unit { + throw NotImplementedError("TextServerDummy::_fontSetGlyphUvRect can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontGetGlyphTextureIdx( + fontRid: RID, + size: Vector2i, + glyph: Long, + ): Long { + throw NotImplementedError("TextServerDummy::_fontGetGlyphTextureIdx can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontSetGlyphTextureIdx( + fontRid: RID, + size: Vector2i, + glyph: Long, + textureIdx: Long, + ): Unit { + throw NotImplementedError("TextServerDummy::_fontSetGlyphTextureIdx can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontGetGlyphTextureRid( + fontRid: RID, + size: Vector2i, + glyph: Long, + ): RID { + throw NotImplementedError("TextServerDummy::_fontGetGlyphTextureRid can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontGetGlyphTextureSize( + fontRid: RID, + size: Vector2i, + glyph: Long, + ): Vector2 { + throw NotImplementedError("TextServerDummy::_fontGetGlyphTextureSize can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontGetGlyphIndex( + fontRid: RID, + size: Long, + char: Long, + variationSelector: Long, + ): Long { + throw NotImplementedError("TextServerDummy::_fontGetGlyphIndex can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontGetCharFromGlyphIndex( + fontRid: RID, + size: Long, + glyphIndex: Long, + ): Long { + throw NotImplementedError("TextServerDummy::_fontGetCharFromGlyphIndex can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontHasChar(fontRid: RID, char: Long): Boolean { + throw NotImplementedError("TextServerDummy::_fontHasChar can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontGetSupportedChars(fontRid: RID): String { + throw NotImplementedError("TextServerDummy::_fontGetSupportedChars can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontGetSupportedGlyphs(fontRid: RID): PackedInt32Array { + throw NotImplementedError("TextServerDummy::_fontGetSupportedGlyphs can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontDrawGlyph( + fontRid: RID, + canvas: RID, + size: Long, + pos: Vector2, + index: Long, + color: Color, + ): Unit { + throw NotImplementedError("TextServerDummy::_fontDrawGlyph can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _fontDrawGlyphOutline( + fontRid: RID, + canvas: RID, + size: Long, + outlineSize: Long, + pos: Vector2, + index: Long, + color: Color, + ): Unit { + throw NotImplementedError("TextServerDummy::_fontDrawGlyphOutline can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _createShapedText(direction: TextServer.Direction, + orientation: TextServer.Orientation): RID { + throw NotImplementedError("TextServerDummy::_createShapedText can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _shapedTextClear(shaped: RID): Unit { + throw NotImplementedError("TextServerDummy::_shapedTextClear can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _shapedTextAddString( + shaped: RID, + text: String, + fonts: VariantArray, + size: Long, + opentypeFeatures: Dictionary, + language: String, + meta: Any?, + ): Boolean { + throw NotImplementedError("TextServerDummy::_shapedTextAddString can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _shapedTextAddObject( + shaped: RID, + key: Any?, + size: Vector2, + inlineAlign: InlineAlignment, + length: Long, + baseline: Double, + ): Boolean { + throw NotImplementedError("TextServerDummy::_shapedTextAddObject can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _shapedTextResizeObject( + shaped: RID, + key: Any?, + size: Vector2, + inlineAlign: InlineAlignment, + baseline: Double, + ): Boolean { + throw NotImplementedError("TextServerDummy::_shapedTextResizeObject can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _shapedGetSpanCount(shaped: RID): Long { + throw NotImplementedError("TextServerDummy::_shapedGetSpanCount can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _shapedGetSpanMeta(shaped: RID, index: Long): Any? { + throw NotImplementedError("TextServerDummy::_shapedGetSpanMeta can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _shapedGetSpanEmbeddedObject(shaped: RID, index: Long): Any? { + throw NotImplementedError("TextServerDummy::_shapedGetSpanEmbeddedObject can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _shapedSetSpanUpdateFont( + shaped: RID, + index: Long, + fonts: VariantArray, + size: Long, + opentypeFeatures: Dictionary, + ): Unit { + throw NotImplementedError("TextServerDummy::_shapedSetSpanUpdateFont can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _shapedTextSubstr( + shaped: RID, + start: Long, + length: Long, + ): RID { + throw NotImplementedError("TextServerDummy::_shapedTextSubstr can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _shapedTextGetParent(shaped: RID): RID { + throw NotImplementedError("TextServerDummy::_shapedTextGetParent can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _shapedTextShape(shaped: RID): Boolean { + throw NotImplementedError("TextServerDummy::_shapedTextShape can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _shapedTextIsReady(shaped: RID): Boolean { + throw NotImplementedError("TextServerDummy::_shapedTextIsReady can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _shapedTextGetGlyphCount(shaped: RID): Long { + throw NotImplementedError("TextServerDummy::_shapedTextGetGlyphCount can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _shapedTextGetRange(shaped: RID): Vector2i { + throw NotImplementedError("TextServerDummy::_shapedTextGetRange can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _shapedTextGetTrimPos(shaped: RID): Long { + throw NotImplementedError("TextServerDummy::_shapedTextGetTrimPos can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _shapedTextGetEllipsisPos(shaped: RID): Long { + throw NotImplementedError("TextServerDummy::_shapedTextGetEllipsisPos can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _shapedTextGetEllipsisGlyphCount(shaped: RID): Long { + throw NotImplementedError("TextServerDummy::_shapedTextGetEllipsisGlyphCount can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _shapedTextGetObjects(shaped: RID): VariantArray { + throw NotImplementedError("TextServerDummy::_shapedTextGetObjects can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _shapedTextGetObjectRect(shaped: RID, key: Any?): Rect2 { + throw NotImplementedError("TextServerDummy::_shapedTextGetObjectRect can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _shapedTextGetObjectRange(shaped: RID, key: Any?): Vector2i { + throw NotImplementedError("TextServerDummy::_shapedTextGetObjectRange can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _shapedTextGetObjectGlyph(shaped: RID, key: Any?): Long { + throw NotImplementedError("TextServerDummy::_shapedTextGetObjectGlyph can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _shapedTextGetSize(shaped: RID): Vector2 { + throw NotImplementedError("TextServerDummy::_shapedTextGetSize can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _shapedTextGetAscent(shaped: RID): Double { + throw NotImplementedError("TextServerDummy::_shapedTextGetAscent can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _shapedTextGetDescent(shaped: RID): Double { + throw NotImplementedError("TextServerDummy::_shapedTextGetDescent can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _shapedTextGetWidth(shaped: RID): Double { + throw NotImplementedError("TextServerDummy::_shapedTextGetWidth can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _shapedTextGetUnderlinePosition(shaped: RID): Double { + throw NotImplementedError("TextServerDummy::_shapedTextGetUnderlinePosition can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _shapedTextGetUnderlineThickness(shaped: RID): Double { + throw NotImplementedError("TextServerDummy::_shapedTextGetUnderlineThickness can't be called from the JVM.") + } + public companion object public object MethodBindings diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/TextServerExtension.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/TextServerExtension.kt index a920159a6..351e68355 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/TextServerExtension.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/TextServerExtension.kt @@ -36,7 +36,7 @@ import kotlin.Unit * External [TextServer] implementations should inherit from this class. */ @GodotBaseType -public open class TextServerExtension : TextServer() { +public abstract class TextServerExtension : TextServer() { public override fun new(scriptIndex: Int): Unit { createNativeObject(662, scriptIndex) } @@ -46,45 +46,35 @@ public open class TextServerExtension : TextServer() { * * Returns `true` if the server supports a feature. */ - public open fun _hasFeature(feature: TextServer.Feature): Boolean { - throw NotImplementedError("_hasFeature is not implemented for TextServerExtension") - } + public abstract fun _hasFeature(feature: TextServer.Feature): Boolean /** * **Required.** * * Returns the name of the server interface. */ - public open fun _getName(): String { - throw NotImplementedError("_getName is not implemented for TextServerExtension") - } + public abstract fun _getName(): String /** * **Required.** * * Returns text server features, see [TextServer.Feature]. */ - public open fun _getFeatures(): Long { - throw NotImplementedError("_getFeatures is not implemented for TextServerExtension") - } + public abstract fun _getFeatures(): Long /** * **Required.** * * Frees an object created by this [TextServer]. */ - public open fun _freeRid(rid: RID): Unit { - throw NotImplementedError("_freeRid is not implemented for TextServerExtension") - } + public abstract fun _freeRid(rid: RID): Unit /** * **Required.** * * Returns `true` if [rid] is valid resource owned by this text server. */ - public open fun _has(rid: RID): Boolean { - throw NotImplementedError("_has is not implemented for TextServerExtension") - } + public abstract fun _has(rid: RID): Boolean /** * **Optional.** @@ -92,7 +82,7 @@ public open class TextServerExtension : TextServer() { * Loads optional TextServer database (e.g. ICU break iterators and dictionaries). */ public open fun _loadSupportData(filename: String): Boolean { - throw NotImplementedError("_loadSupportData is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_loadSupportData is not implemented.") } /** @@ -101,7 +91,7 @@ public open class TextServerExtension : TextServer() { * Returns default TextServer database (e.g. ICU break iterators and dictionaries) filename. */ public open fun _getSupportDataFilename(): String { - throw NotImplementedError("_getSupportDataFilename is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_getSupportDataFilename is not implemented.") } /** @@ -110,7 +100,7 @@ public open class TextServerExtension : TextServer() { * Returns TextServer database (e.g. ICU break iterators and dictionaries) description. */ public open fun _getSupportDataInfo(): String { - throw NotImplementedError("_getSupportDataInfo is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_getSupportDataInfo is not implemented.") } /** @@ -119,7 +109,7 @@ public open class TextServerExtension : TextServer() { * Saves optional TextServer database (e.g. ICU break iterators and dictionaries) to the file. */ public open fun _saveSupportData(filename: String): Boolean { - throw NotImplementedError("_saveSupportData is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_saveSupportData is not implemented.") } /** @@ -128,7 +118,7 @@ public open class TextServerExtension : TextServer() { * Returns default TextServer database (e.g. ICU break iterators and dictionaries). */ public open fun _getSupportData(): PackedByteArray { - throw NotImplementedError("_getSupportData is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_getSupportData is not implemented.") } /** @@ -137,7 +127,7 @@ public open class TextServerExtension : TextServer() { * Returns `true` if locale is right-to-left. */ public open fun _isLocaleRightToLeft(locale: String): Boolean { - throw NotImplementedError("_isLocaleRightToLeft is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_isLocaleRightToLeft is not implemented.") } /** @@ -146,7 +136,7 @@ public open class TextServerExtension : TextServer() { * Converts readable feature, variation, script, or language name to OpenType tag. */ public open fun _nameToTag(name: String): Long { - throw NotImplementedError("_nameToTag is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_nameToTag is not implemented.") } /** @@ -155,7 +145,7 @@ public open class TextServerExtension : TextServer() { * Converts OpenType tag to readable feature, variation, script, or language name. */ public open fun _tagToName(tag: Long): String { - throw NotImplementedError("_tagToName is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_tagToName is not implemented.") } /** @@ -163,9 +153,7 @@ public open class TextServerExtension : TextServer() { * * Creates a new, empty font cache entry resource. */ - public open fun _createFont(): RID { - throw NotImplementedError("_createFont is not implemented for TextServerExtension") - } + public abstract fun _createFont(): RID /** * Optional, implement if font supports extra spacing or baseline offset. @@ -173,7 +161,7 @@ public open class TextServerExtension : TextServer() { * Creates a new variation existing font which is reusing the same glyph cache and font data. */ public open fun _createFontLinkedVariation(fontRid: RID): RID { - throw NotImplementedError("_createFontLinkedVariation is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_createFontLinkedVariation is not implemented.") } /** @@ -182,7 +170,7 @@ public open class TextServerExtension : TextServer() { * Sets font source data, e.g contents of the dynamic font source file. */ public open fun _fontSetData(fontRid: RID, `data`: PackedByteArray): Unit { - throw NotImplementedError("_fontSetData is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontSetData is not implemented.") } /** @@ -191,7 +179,7 @@ public open class TextServerExtension : TextServer() { * Sets an active face index in the TrueType / OpenType collection. */ public open fun _fontSetFaceIndex(fontRid: RID, faceIndex: Long): Unit { - throw NotImplementedError("_fontSetFaceIndex is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontSetFaceIndex is not implemented.") } /** @@ -200,7 +188,7 @@ public open class TextServerExtension : TextServer() { * Returns an active face index in the TrueType / OpenType collection. */ public open fun _fontGetFaceIndex(fontRid: RID): Long { - throw NotImplementedError("_fontGetFaceIndex is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontGetFaceIndex is not implemented.") } /** @@ -209,7 +197,7 @@ public open class TextServerExtension : TextServer() { * Returns number of faces in the TrueType / OpenType collection. */ public open fun _fontGetFaceCount(fontRid: RID): Long { - throw NotImplementedError("_fontGetFaceCount is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontGetFaceCount is not implemented.") } /** @@ -218,7 +206,7 @@ public open class TextServerExtension : TextServer() { * Sets the font style flags, see [TextServer.FontStyle]. */ public open fun _fontSetStyle(fontRid: RID, style: TextServer.FontStyle): Unit { - throw NotImplementedError("_fontSetStyle is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontSetStyle is not implemented.") } /** @@ -227,7 +215,7 @@ public open class TextServerExtension : TextServer() { * Returns font style flags, see [TextServer.FontStyle]. */ public open fun _fontGetStyle(fontRid: RID): TextServer.FontStyle { - throw NotImplementedError("_fontGetStyle is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontGetStyle is not implemented.") } /** @@ -236,7 +224,7 @@ public open class TextServerExtension : TextServer() { * Sets the font family name. */ public open fun _fontSetName(fontRid: RID, name: String): Unit { - throw NotImplementedError("_fontSetName is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontSetName is not implemented.") } /** @@ -245,7 +233,7 @@ public open class TextServerExtension : TextServer() { * Returns font family name. */ public open fun _fontGetName(fontRid: RID): String { - throw NotImplementedError("_fontGetName is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontGetName is not implemented.") } /** @@ -255,7 +243,7 @@ public open class TextServerExtension : TextServer() { * description, license information, sample text, etc.). */ public open fun _fontGetOtNameStrings(fontRid: RID): Dictionary { - throw NotImplementedError("_fontGetOtNameStrings is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontGetOtNameStrings is not implemented.") } /** @@ -264,7 +252,7 @@ public open class TextServerExtension : TextServer() { * Sets the font style name. */ public open fun _fontSetStyleName(fontRid: RID, nameStyle: String): Unit { - throw NotImplementedError("_fontSetStyleName is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontSetStyleName is not implemented.") } /** @@ -273,7 +261,7 @@ public open class TextServerExtension : TextServer() { * Returns font style name. */ public open fun _fontGetStyleName(fontRid: RID): String { - throw NotImplementedError("_fontGetStyleName is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontGetStyleName is not implemented.") } /** @@ -283,7 +271,7 @@ public open class TextServerExtension : TextServer() { * `400`, bold font weight is `700`. */ public open fun _fontSetWeight(fontRid: RID, weight: Long): Unit { - throw NotImplementedError("_fontSetWeight is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontSetWeight is not implemented.") } /** @@ -293,7 +281,7 @@ public open class TextServerExtension : TextServer() { * `400`, bold font weight is `700`. */ public open fun _fontGetWeight(fontRid: RID): Long { - throw NotImplementedError("_fontGetWeight is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontGetWeight is not implemented.") } /** @@ -303,7 +291,7 @@ public open class TextServerExtension : TextServer() { * `200%`. */ public open fun _fontSetStretch(fontRid: RID, stretch: Long): Unit { - throw NotImplementedError("_fontSetStretch is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontSetStretch is not implemented.") } /** @@ -313,7 +301,7 @@ public open class TextServerExtension : TextServer() { * and `200%`. */ public open fun _fontGetStretch(fontRid: RID): Long { - throw NotImplementedError("_fontGetStretch is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontGetStretch is not implemented.") } /** @@ -323,7 +311,7 @@ public open class TextServerExtension : TextServer() { */ public open fun _fontSetAntialiasing(fontRid: RID, antialiasing: TextServer.FontAntialiasing): Unit { - throw NotImplementedError("_fontSetAntialiasing is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontSetAntialiasing is not implemented.") } /** @@ -332,7 +320,7 @@ public open class TextServerExtension : TextServer() { * Returns font anti-aliasing mode. */ public open fun _fontGetAntialiasing(fontRid: RID): TextServer.FontAntialiasing { - throw NotImplementedError("_fontGetAntialiasing is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontGetAntialiasing is not implemented.") } /** @@ -342,7 +330,7 @@ public open class TextServerExtension : TextServer() { */ public open fun _fontSetDisableEmbeddedBitmaps(fontRid: RID, disableEmbeddedBitmaps: Boolean): Unit { - throw NotImplementedError("_fontSetDisableEmbeddedBitmaps is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontSetDisableEmbeddedBitmaps is not implemented.") } /** @@ -351,7 +339,7 @@ public open class TextServerExtension : TextServer() { * Returns whether the font's embedded bitmap loading is disabled. */ public open fun _fontGetDisableEmbeddedBitmaps(fontRid: RID): Boolean { - throw NotImplementedError("_fontGetDisableEmbeddedBitmaps is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontGetDisableEmbeddedBitmaps is not implemented.") } /** @@ -360,7 +348,7 @@ public open class TextServerExtension : TextServer() { * If set to `true` font texture mipmap generation is enabled. */ public open fun _fontSetGenerateMipmaps(fontRid: RID, generateMipmaps: Boolean): Unit { - throw NotImplementedError("_fontSetGenerateMipmaps is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontSetGenerateMipmaps is not implemented.") } /** @@ -369,7 +357,7 @@ public open class TextServerExtension : TextServer() { * Returns `true` if font texture mipmap generation is enabled. */ public open fun _fontGetGenerateMipmaps(fontRid: RID): Boolean { - throw NotImplementedError("_fontGetGenerateMipmaps is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontGetGenerateMipmaps is not implemented.") } /** @@ -383,7 +371,7 @@ public open class TextServerExtension : TextServer() { * small sizes. */ public open fun _fontSetMultichannelSignedDistanceField(fontRid: RID, msdf: Boolean): Unit { - throw NotImplementedError("_fontSetMultichannelSignedDistanceField is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontSetMultichannelSignedDistanceField is not implemented.") } /** @@ -393,7 +381,7 @@ public open class TextServerExtension : TextServer() { * field generated from the dynamic font vector data. */ public open fun _fontIsMultichannelSignedDistanceField(fontRid: RID): Boolean { - throw NotImplementedError("_fontIsMultichannelSignedDistanceField is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontIsMultichannelSignedDistanceField is not implemented.") } /** @@ -403,7 +391,7 @@ public open class TextServerExtension : TextServer() { * signed distance. */ public open fun _fontSetMsdfPixelRange(fontRid: RID, msdfPixelRange: Long): Unit { - throw NotImplementedError("_fontSetMsdfPixelRange is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontSetMsdfPixelRange is not implemented.") } /** @@ -413,7 +401,7 @@ public open class TextServerExtension : TextServer() { * signed distance. */ public open fun _fontGetMsdfPixelRange(fontRid: RID): Long { - throw NotImplementedError("_fontGetMsdfPixelRange is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontGetMsdfPixelRange is not implemented.") } /** @@ -422,7 +410,7 @@ public open class TextServerExtension : TextServer() { * Sets source font size used to generate MSDF textures. */ public open fun _fontSetMsdfSize(fontRid: RID, msdfSize: Long): Unit { - throw NotImplementedError("_fontSetMsdfSize is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontSetMsdfSize is not implemented.") } /** @@ -431,7 +419,7 @@ public open class TextServerExtension : TextServer() { * Returns source font size used to generate MSDF textures. */ public open fun _fontGetMsdfSize(fontRid: RID): Long { - throw NotImplementedError("_fontGetMsdfSize is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontGetMsdfSize is not implemented.") } /** @@ -440,37 +428,29 @@ public open class TextServerExtension : TextServer() { * Sets bitmap font fixed size. If set to value greater than zero, same cache entry will be used * for all font sizes. */ - public open fun _fontSetFixedSize(fontRid: RID, fixedSize: Long): Unit { - throw NotImplementedError("_fontSetFixedSize is not implemented for TextServerExtension") - } + public abstract fun _fontSetFixedSize(fontRid: RID, fixedSize: Long): Unit /** * **Required.** * * Returns bitmap font fixed size. */ - public open fun _fontGetFixedSize(fontRid: RID): Long { - throw NotImplementedError("_fontGetFixedSize is not implemented for TextServerExtension") - } + public abstract fun _fontGetFixedSize(fontRid: RID): Long /** * **Required.** * * Sets bitmap font scaling mode. This property is used only if `fixed_size` is greater than zero. */ - public open fun _fontSetFixedSizeScaleMode(fontRid: RID, - fixedSizeScaleMode: TextServer.FixedSizeScaleMode): Unit { - throw NotImplementedError("_fontSetFixedSizeScaleMode is not implemented for TextServerExtension") - } + public abstract fun _fontSetFixedSizeScaleMode(fontRid: RID, + fixedSizeScaleMode: TextServer.FixedSizeScaleMode): Unit /** * **Required.** * * Returns bitmap font scaling mode. */ - public open fun _fontGetFixedSizeScaleMode(fontRid: RID): TextServer.FixedSizeScaleMode { - throw NotImplementedError("_fontGetFixedSizeScaleMode is not implemented for TextServerExtension") - } + public abstract fun _fontGetFixedSizeScaleMode(fontRid: RID): TextServer.FixedSizeScaleMode /** * **Optional.** @@ -478,7 +458,7 @@ public open class TextServerExtension : TextServer() { * If set to `true`, system fonts can be automatically used as fallbacks. */ public open fun _fontSetAllowSystemFallback(fontRid: RID, allowSystemFallback: Boolean): Unit { - throw NotImplementedError("_fontSetAllowSystemFallback is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontSetAllowSystemFallback is not implemented.") } /** @@ -487,7 +467,7 @@ public open class TextServerExtension : TextServer() { * Returns `true` if system fonts can be automatically used as fallbacks. */ public open fun _fontIsAllowSystemFallback(fontRid: RID): Boolean { - throw NotImplementedError("_fontIsAllowSystemFallback is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontIsAllowSystemFallback is not implemented.") } /** @@ -496,7 +476,7 @@ public open class TextServerExtension : TextServer() { * If set to `true` auto-hinting is preferred over font built-in hinting. */ public open fun _fontSetForceAutohinter(fontRid: RID, forceAutohinter: Boolean): Unit { - throw NotImplementedError("_fontSetForceAutohinter is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontSetForceAutohinter is not implemented.") } /** @@ -505,7 +485,7 @@ public open class TextServerExtension : TextServer() { * Returns `true` if auto-hinting is supported and preferred over font built-in hinting. */ public open fun _fontIsForceAutohinter(fontRid: RID): Boolean { - throw NotImplementedError("_fontIsForceAutohinter is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontIsForceAutohinter is not implemented.") } /** @@ -514,7 +494,7 @@ public open class TextServerExtension : TextServer() { * Sets font hinting mode. Used by dynamic fonts only. */ public open fun _fontSetHinting(fontRid: RID, hinting: TextServer.Hinting): Unit { - throw NotImplementedError("_fontSetHinting is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontSetHinting is not implemented.") } /** @@ -523,7 +503,7 @@ public open class TextServerExtension : TextServer() { * Returns the font hinting mode. Used by dynamic fonts only. */ public open fun _fontGetHinting(fontRid: RID): TextServer.Hinting { - throw NotImplementedError("_fontGetHinting is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontGetHinting is not implemented.") } /** @@ -533,7 +513,7 @@ public open class TextServerExtension : TextServer() { */ public open fun _fontSetSubpixelPositioning(fontRid: RID, subpixelPositioning: TextServer.SubpixelPositioning): Unit { - throw NotImplementedError("_fontSetSubpixelPositioning is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontSetSubpixelPositioning is not implemented.") } /** @@ -542,7 +522,7 @@ public open class TextServerExtension : TextServer() { * Returns font subpixel glyph positioning mode. */ public open fun _fontGetSubpixelPositioning(fontRid: RID): TextServer.SubpixelPositioning { - throw NotImplementedError("_fontGetSubpixelPositioning is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontGetSubpixelPositioning is not implemented.") } /** @@ -554,7 +534,7 @@ public open class TextServerExtension : TextServer() { */ public open fun _fontSetKeepRoundingRemainders(fontRid: RID, keepRoundingRemainders: Boolean): Unit { - throw NotImplementedError("_fontSetKeepRoundingRemainders is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontSetKeepRoundingRemainders is not implemented.") } /** @@ -565,7 +545,7 @@ public open class TextServerExtension : TextServer() { * setting has no effect if subpixel positioning is enabled. */ public open fun _fontGetKeepRoundingRemainders(fontRid: RID): Boolean { - throw NotImplementedError("_fontGetKeepRoundingRemainders is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontGetKeepRoundingRemainders is not implemented.") } /** @@ -573,7 +553,7 @@ public open class TextServerExtension : TextServer() { * Negative values reduce the outline thickness. */ public open fun _fontSetEmbolden(fontRid: RID, strength: Double): Unit { - throw NotImplementedError("_fontSetEmbolden is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontSetEmbolden is not implemented.") } /** @@ -582,7 +562,7 @@ public open class TextServerExtension : TextServer() { * Returns font embolden strength. */ public open fun _fontGetEmbolden(fontRid: RID): Double { - throw NotImplementedError("_fontGetEmbolden is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontGetEmbolden is not implemented.") } /** @@ -596,7 +576,7 @@ public open class TextServerExtension : TextServer() { spacing: TextServer.SpacingType, `value`: Long, ): Unit { - throw NotImplementedError("_fontSetSpacing is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontSetSpacing is not implemented.") } /** @@ -606,7 +586,7 @@ public open class TextServerExtension : TextServer() { * font size). */ public open fun _fontGetSpacing(fontRid: RID, spacing: TextServer.SpacingType): Long { - throw NotImplementedError("_fontGetSpacing is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontGetSpacing is not implemented.") } /** @@ -615,7 +595,7 @@ public open class TextServerExtension : TextServer() { * Sets extra baseline offset (as a fraction of font height). */ public open fun _fontSetBaselineOffset(fontRid: RID, baselineOffset: Double): Unit { - throw NotImplementedError("_fontSetBaselineOffset is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontSetBaselineOffset is not implemented.") } /** @@ -624,7 +604,7 @@ public open class TextServerExtension : TextServer() { * Returns extra baseline offset (as a fraction of font height). */ public open fun _fontGetBaselineOffset(fontRid: RID): Double { - throw NotImplementedError("_fontGetBaselineOffset is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontGetBaselineOffset is not implemented.") } /** @@ -634,7 +614,7 @@ public open class TextServerExtension : TextServer() { * rotating glyphs. */ public open fun _fontSetTransform(fontRid: RID, transform: Transform2D): Unit { - throw NotImplementedError("_fontSetTransform is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontSetTransform is not implemented.") } /** @@ -643,7 +623,7 @@ public open class TextServerExtension : TextServer() { * Returns 2D transform applied to the font outlines. */ public open fun _fontGetTransform(fontRid: RID): Transform2D { - throw NotImplementedError("_fontGetTransform is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontGetTransform is not implemented.") } /** @@ -653,7 +633,7 @@ public open class TextServerExtension : TextServer() { */ public open fun _fontSetVariationCoordinates(fontRid: RID, variationCoordinates: Dictionary): Unit { - throw NotImplementedError("_fontSetVariationCoordinates is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontSetVariationCoordinates is not implemented.") } /** @@ -662,7 +642,7 @@ public open class TextServerExtension : TextServer() { * Returns variation coordinates for the specified font cache entry. */ public open fun _fontGetVariationCoordinates(fontRid: RID): Dictionary { - throw NotImplementedError("_fontGetVariationCoordinates is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontGetVariationCoordinates is not implemented.") } /** @@ -672,7 +652,7 @@ public open class TextServerExtension : TextServer() { * by dynamic fonts only. */ public open fun _fontSetOversampling(fontRid: RID, oversampling: Double): Unit { - throw NotImplementedError("_fontSetOversampling is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontSetOversampling is not implemented.") } /** @@ -682,7 +662,7 @@ public open class TextServerExtension : TextServer() { * Used by dynamic fonts only. */ public open fun _fontGetOversampling(fontRid: RID): Double { - throw NotImplementedError("_fontGetOversampling is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontGetOversampling is not implemented.") } /** @@ -691,195 +671,159 @@ public open class TextServerExtension : TextServer() { * Returns list of the font sizes in the cache. Each size is [Vector2i] with font size and outline * size. */ - public open fun _fontGetSizeCacheList(fontRid: RID): VariantArray { - throw NotImplementedError("_fontGetSizeCacheList is not implemented for TextServerExtension") - } + public abstract fun _fontGetSizeCacheList(fontRid: RID): VariantArray /** * **Required.** * * Removes all font sizes from the cache entry. */ - public open fun _fontClearSizeCache(fontRid: RID): Unit { - throw NotImplementedError("_fontClearSizeCache is not implemented for TextServerExtension") - } + public abstract fun _fontClearSizeCache(fontRid: RID): Unit /** * **Required.** * * Removes specified font size from the cache entry. */ - public open fun _fontRemoveSizeCache(fontRid: RID, size: Vector2i): Unit { - throw NotImplementedError("_fontRemoveSizeCache is not implemented for TextServerExtension") - } + public abstract fun _fontRemoveSizeCache(fontRid: RID, size: Vector2i): Unit /** * **Required.** * * Sets the font ascent (number of pixels above the baseline). */ - public open fun _fontSetAscent( + public abstract fun _fontSetAscent( fontRid: RID, size: Long, ascent: Double, - ): Unit { - throw NotImplementedError("_fontSetAscent is not implemented for TextServerExtension") - } + ): Unit /** * **Required.** * * Returns the font ascent (number of pixels above the baseline). */ - public open fun _fontGetAscent(fontRid: RID, size: Long): Double { - throw NotImplementedError("_fontGetAscent is not implemented for TextServerExtension") - } + public abstract fun _fontGetAscent(fontRid: RID, size: Long): Double /** * **Required.** * * Sets the font descent (number of pixels below the baseline). */ - public open fun _fontSetDescent( + public abstract fun _fontSetDescent( fontRid: RID, size: Long, descent: Double, - ): Unit { - throw NotImplementedError("_fontSetDescent is not implemented for TextServerExtension") - } + ): Unit /** * **Required.** * * Returns the font descent (number of pixels below the baseline). */ - public open fun _fontGetDescent(fontRid: RID, size: Long): Double { - throw NotImplementedError("_fontGetDescent is not implemented for TextServerExtension") - } + public abstract fun _fontGetDescent(fontRid: RID, size: Long): Double /** * **Required.** * * Sets pixel offset of the underline below the baseline. */ - public open fun _fontSetUnderlinePosition( + public abstract fun _fontSetUnderlinePosition( fontRid: RID, size: Long, underlinePosition: Double, - ): Unit { - throw NotImplementedError("_fontSetUnderlinePosition is not implemented for TextServerExtension") - } + ): Unit /** * **Required.** * * Returns pixel offset of the underline below the baseline. */ - public open fun _fontGetUnderlinePosition(fontRid: RID, size: Long): Double { - throw NotImplementedError("_fontGetUnderlinePosition is not implemented for TextServerExtension") - } + public abstract fun _fontGetUnderlinePosition(fontRid: RID, size: Long): Double /** * **Required.** * * Sets thickness of the underline in pixels. */ - public open fun _fontSetUnderlineThickness( + public abstract fun _fontSetUnderlineThickness( fontRid: RID, size: Long, underlineThickness: Double, - ): Unit { - throw NotImplementedError("_fontSetUnderlineThickness is not implemented for TextServerExtension") - } + ): Unit /** * **Required.** * * Returns thickness of the underline in pixels. */ - public open fun _fontGetUnderlineThickness(fontRid: RID, size: Long): Double { - throw NotImplementedError("_fontGetUnderlineThickness is not implemented for TextServerExtension") - } + public abstract fun _fontGetUnderlineThickness(fontRid: RID, size: Long): Double /** * **Required.** * * Sets scaling factor of the color bitmap font. */ - public open fun _fontSetScale( + public abstract fun _fontSetScale( fontRid: RID, size: Long, scale: Double, - ): Unit { - throw NotImplementedError("_fontSetScale is not implemented for TextServerExtension") - } + ): Unit /** * **Required.** * * Returns scaling factor of the color bitmap font. */ - public open fun _fontGetScale(fontRid: RID, size: Long): Double { - throw NotImplementedError("_fontGetScale is not implemented for TextServerExtension") - } + public abstract fun _fontGetScale(fontRid: RID, size: Long): Double /** * **Required.** * * Returns number of textures used by font cache entry. */ - public open fun _fontGetTextureCount(fontRid: RID, size: Vector2i): Long { - throw NotImplementedError("_fontGetTextureCount is not implemented for TextServerExtension") - } + public abstract fun _fontGetTextureCount(fontRid: RID, size: Vector2i): Long /** * **Required.** * * Removes all textures from font cache entry. */ - public open fun _fontClearTextures(fontRid: RID, size: Vector2i): Unit { - throw NotImplementedError("_fontClearTextures is not implemented for TextServerExtension") - } + public abstract fun _fontClearTextures(fontRid: RID, size: Vector2i): Unit /** * **Required.** * * Removes specified texture from the cache entry. */ - public open fun _fontRemoveTexture( + public abstract fun _fontRemoveTexture( fontRid: RID, size: Vector2i, textureIndex: Long, - ): Unit { - throw NotImplementedError("_fontRemoveTexture is not implemented for TextServerExtension") - } + ): Unit /** * **Required.** * * Sets font cache texture image data. */ - public open fun _fontSetTextureImage( + public abstract fun _fontSetTextureImage( fontRid: RID, size: Vector2i, textureIndex: Long, image: Image?, - ): Unit { - throw NotImplementedError("_fontSetTextureImage is not implemented for TextServerExtension") - } + ): Unit /** * **Required.** * * Returns font cache texture image data. */ - public open fun _fontGetTextureImage( + public abstract fun _fontGetTextureImage( fontRid: RID, size: Vector2i, textureIndex: Long, - ): Image? { - throw NotImplementedError("_fontGetTextureImage is not implemented for TextServerExtension") - } + ): Image? /** * **Optional.** @@ -892,7 +836,7 @@ public open class TextServerExtension : TextServer() { textureIndex: Long, offset: PackedInt32Array, ): Unit { - throw NotImplementedError("_fontSetTextureOffsets is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontSetTextureOffsets is not implemented.") } /** @@ -905,7 +849,7 @@ public open class TextServerExtension : TextServer() { size: Vector2i, textureIndex: Long, ): PackedInt32Array { - throw NotImplementedError("_fontGetTextureOffsets is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontGetTextureOffsets is not implemented.") } /** @@ -913,192 +857,162 @@ public open class TextServerExtension : TextServer() { * * Returns list of rendered glyphs in the cache entry. */ - public open fun _fontGetGlyphList(fontRid: RID, size: Vector2i): PackedInt32Array { - throw NotImplementedError("_fontGetGlyphList is not implemented for TextServerExtension") - } + public abstract fun _fontGetGlyphList(fontRid: RID, size: Vector2i): PackedInt32Array /** * **Required.** * * Removes all rendered glyph information from the cache entry. */ - public open fun _fontClearGlyphs(fontRid: RID, size: Vector2i): Unit { - throw NotImplementedError("_fontClearGlyphs is not implemented for TextServerExtension") - } + public abstract fun _fontClearGlyphs(fontRid: RID, size: Vector2i): Unit /** * **Required.** * * Removes specified rendered glyph information from the cache entry. */ - public open fun _fontRemoveGlyph( + public abstract fun _fontRemoveGlyph( fontRid: RID, size: Vector2i, glyph: Long, - ): Unit { - throw NotImplementedError("_fontRemoveGlyph is not implemented for TextServerExtension") - } + ): Unit /** * **Required.** * * Returns glyph advance (offset of the next glyph). */ - public open fun _fontGetGlyphAdvance( + public abstract fun _fontGetGlyphAdvance( fontRid: RID, size: Long, glyph: Long, - ): Vector2 { - throw NotImplementedError("_fontGetGlyphAdvance is not implemented for TextServerExtension") - } + ): Vector2 /** * **Required.** * * Sets glyph advance (offset of the next glyph). */ - public open fun _fontSetGlyphAdvance( + public abstract fun _fontSetGlyphAdvance( fontRid: RID, size: Long, glyph: Long, advance: Vector2, - ): Unit { - throw NotImplementedError("_fontSetGlyphAdvance is not implemented for TextServerExtension") - } + ): Unit /** * **Required.** * * Returns glyph offset from the baseline. */ - public open fun _fontGetGlyphOffset( + public abstract fun _fontGetGlyphOffset( fontRid: RID, size: Vector2i, glyph: Long, - ): Vector2 { - throw NotImplementedError("_fontGetGlyphOffset is not implemented for TextServerExtension") - } + ): Vector2 /** * **Required.** * * Sets glyph offset from the baseline. */ - public open fun _fontSetGlyphOffset( + public abstract fun _fontSetGlyphOffset( fontRid: RID, size: Vector2i, glyph: Long, offset: Vector2, - ): Unit { - throw NotImplementedError("_fontSetGlyphOffset is not implemented for TextServerExtension") - } + ): Unit /** * **Required.** * * Returns size of the glyph. */ - public open fun _fontGetGlyphSize( + public abstract fun _fontGetGlyphSize( fontRid: RID, size: Vector2i, glyph: Long, - ): Vector2 { - throw NotImplementedError("_fontGetGlyphSize is not implemented for TextServerExtension") - } + ): Vector2 /** * **Required.** * * Sets size of the glyph. */ - public open fun _fontSetGlyphSize( + public abstract fun _fontSetGlyphSize( fontRid: RID, size: Vector2i, glyph: Long, glSize: Vector2, - ): Unit { - throw NotImplementedError("_fontSetGlyphSize is not implemented for TextServerExtension") - } + ): Unit /** * **Required.** * * Returns rectangle in the cache texture containing the glyph. */ - public open fun _fontGetGlyphUvRect( + public abstract fun _fontGetGlyphUvRect( fontRid: RID, size: Vector2i, glyph: Long, - ): Rect2 { - throw NotImplementedError("_fontGetGlyphUvRect is not implemented for TextServerExtension") - } + ): Rect2 /** * **Required.** * * Sets rectangle in the cache texture containing the glyph. */ - public open fun _fontSetGlyphUvRect( + public abstract fun _fontSetGlyphUvRect( fontRid: RID, size: Vector2i, glyph: Long, uvRect: Rect2, - ): Unit { - throw NotImplementedError("_fontSetGlyphUvRect is not implemented for TextServerExtension") - } + ): Unit /** * **Required.** * * Returns index of the cache texture containing the glyph. */ - public open fun _fontGetGlyphTextureIdx( + public abstract fun _fontGetGlyphTextureIdx( fontRid: RID, size: Vector2i, glyph: Long, - ): Long { - throw NotImplementedError("_fontGetGlyphTextureIdx is not implemented for TextServerExtension") - } + ): Long /** * **Required.** * * Sets index of the cache texture containing the glyph. */ - public open fun _fontSetGlyphTextureIdx( + public abstract fun _fontSetGlyphTextureIdx( fontRid: RID, size: Vector2i, glyph: Long, textureIdx: Long, - ): Unit { - throw NotImplementedError("_fontSetGlyphTextureIdx is not implemented for TextServerExtension") - } + ): Unit /** * **Required.** * * Returns resource ID of the cache texture containing the glyph. */ - public open fun _fontGetGlyphTextureRid( + public abstract fun _fontGetGlyphTextureRid( fontRid: RID, size: Vector2i, glyph: Long, - ): RID { - throw NotImplementedError("_fontGetGlyphTextureRid is not implemented for TextServerExtension") - } + ): RID /** * **Required.** * * Returns size of the cache texture containing the glyph. */ - public open fun _fontGetGlyphTextureSize( + public abstract fun _fontGetGlyphTextureSize( fontRid: RID, size: Vector2i, glyph: Long, - ): Vector2 { - throw NotImplementedError("_fontGetGlyphTextureSize is not implemented for TextServerExtension") - } + ): Vector2 /** * **Optional.** @@ -1110,7 +1024,7 @@ public open class TextServerExtension : TextServer() { size: Long, index: Long, ): Dictionary { - throw NotImplementedError("_fontGetGlyphContours is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontGetGlyphContours is not implemented.") } /** @@ -1119,7 +1033,7 @@ public open class TextServerExtension : TextServer() { * Returns list of the kerning overrides. */ public open fun _fontGetKerningList(fontRid: RID, size: Long): VariantArray { - throw NotImplementedError("_fontGetKerningList is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontGetKerningList is not implemented.") } /** @@ -1128,7 +1042,7 @@ public open class TextServerExtension : TextServer() { * Removes all kerning overrides. */ public open fun _fontClearKerningMap(fontRid: RID, size: Long): Unit { - throw NotImplementedError("_fontClearKerningMap is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontClearKerningMap is not implemented.") } /** @@ -1141,7 +1055,7 @@ public open class TextServerExtension : TextServer() { size: Long, glyphPair: Vector2i, ): Unit { - throw NotImplementedError("_fontRemoveKerning is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontRemoveKerning is not implemented.") } /** @@ -1155,7 +1069,7 @@ public open class TextServerExtension : TextServer() { glyphPair: Vector2i, kerning: Vector2, ): Unit { - throw NotImplementedError("_fontSetKerning is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontSetKerning is not implemented.") } /** @@ -1168,7 +1082,7 @@ public open class TextServerExtension : TextServer() { size: Long, glyphPair: Vector2i, ): Vector2 { - throw NotImplementedError("_fontGetKerning is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontGetKerning is not implemented.") } /** @@ -1176,54 +1090,44 @@ public open class TextServerExtension : TextServer() { * * Returns the glyph index of a [char], optionally modified by the [variationSelector]. */ - public open fun _fontGetGlyphIndex( + public abstract fun _fontGetGlyphIndex( fontRid: RID, size: Long, char: Long, variationSelector: Long, - ): Long { - throw NotImplementedError("_fontGetGlyphIndex is not implemented for TextServerExtension") - } + ): Long /** * **Required.** * * Returns character code associated with [glyphIndex], or `0` if [glyphIndex] is invalid. */ - public open fun _fontGetCharFromGlyphIndex( + public abstract fun _fontGetCharFromGlyphIndex( fontRid: RID, size: Long, glyphIndex: Long, - ): Long { - throw NotImplementedError("_fontGetCharFromGlyphIndex is not implemented for TextServerExtension") - } + ): Long /** * **Required.** * * Returns `true` if a Unicode [char] is available in the font. */ - public open fun _fontHasChar(fontRid: RID, char: Long): Boolean { - throw NotImplementedError("_fontHasChar is not implemented for TextServerExtension") - } + public abstract fun _fontHasChar(fontRid: RID, char: Long): Boolean /** * **Required.** * * Returns a string containing all the characters available in the font. */ - public open fun _fontGetSupportedChars(fontRid: RID): String { - throw NotImplementedError("_fontGetSupportedChars is not implemented for TextServerExtension") - } + public abstract fun _fontGetSupportedChars(fontRid: RID): String /** * **Required.** * * Returns an array containing all glyph indices in the font. */ - public open fun _fontGetSupportedGlyphs(fontRid: RID): PackedInt32Array { - throw NotImplementedError("_fontGetSupportedGlyphs is not implemented for TextServerExtension") - } + public abstract fun _fontGetSupportedGlyphs(fontRid: RID): PackedInt32Array /** * **Optional.** @@ -1236,7 +1140,7 @@ public open class TextServerExtension : TextServer() { start: Long, end: Long, ): Unit { - throw NotImplementedError("_fontRenderRange is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontRenderRange is not implemented.") } /** @@ -1249,7 +1153,7 @@ public open class TextServerExtension : TextServer() { size: Vector2i, index: Long, ): Unit { - throw NotImplementedError("_fontRenderGlyph is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontRenderGlyph is not implemented.") } /** @@ -1257,16 +1161,14 @@ public open class TextServerExtension : TextServer() { * * Draws single glyph into a canvas item at the position, using [fontRid] at the size [size]. */ - public open fun _fontDrawGlyph( + public abstract fun _fontDrawGlyph( fontRid: RID, canvas: RID, size: Long, pos: Vector2, index: Long, color: Color, - ): Unit { - throw NotImplementedError("_fontDrawGlyph is not implemented for TextServerExtension") - } + ): Unit /** * **Required.** @@ -1274,7 +1176,7 @@ public open class TextServerExtension : TextServer() { * Draws single glyph outline of size [outlineSize] into a canvas item at the position, using * [fontRid] at the size [size]. */ - public open fun _fontDrawGlyphOutline( + public abstract fun _fontDrawGlyphOutline( fontRid: RID, canvas: RID, size: Long, @@ -1282,9 +1184,7 @@ public open class TextServerExtension : TextServer() { pos: Vector2, index: Long, color: Color, - ): Unit { - throw NotImplementedError("_fontDrawGlyphOutline is not implemented for TextServerExtension") - } + ): Unit /** * **Optional.** @@ -1293,7 +1193,7 @@ public open class TextServerExtension : TextServer() { * ([url=https://en.wikipedia.org/wiki/ISO_639-1]ISO 639[/url] code). */ public open fun _fontIsLanguageSupported(fontRid: RID, language: String): Boolean { - throw NotImplementedError("_fontIsLanguageSupported is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontIsLanguageSupported is not implemented.") } /** @@ -1306,7 +1206,7 @@ public open class TextServerExtension : TextServer() { language: String, supported: Boolean, ): Unit { - throw NotImplementedError("_fontSetLanguageSupportOverride is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontSetLanguageSupportOverride is not implemented.") } /** @@ -1315,7 +1215,7 @@ public open class TextServerExtension : TextServer() { * Returns `true` if support override is enabled for the [language]. */ public open fun _fontGetLanguageSupportOverride(fontRid: RID, language: String): Boolean { - throw NotImplementedError("_fontGetLanguageSupportOverride is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontGetLanguageSupportOverride is not implemented.") } /** @@ -1324,7 +1224,7 @@ public open class TextServerExtension : TextServer() { * Remove language support override. */ public open fun _fontRemoveLanguageSupportOverride(fontRid: RID, language: String): Unit { - throw NotImplementedError("_fontRemoveLanguageSupportOverride is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontRemoveLanguageSupportOverride is not implemented.") } /** @@ -1333,7 +1233,7 @@ public open class TextServerExtension : TextServer() { * Returns list of language support overrides. */ public open fun _fontGetLanguageSupportOverrides(fontRid: RID): PackedStringArray { - throw NotImplementedError("_fontGetLanguageSupportOverrides is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontGetLanguageSupportOverrides is not implemented.") } /** @@ -1342,7 +1242,7 @@ public open class TextServerExtension : TextServer() { * Returns `true`, if font supports given script (ISO 15924 code). */ public open fun _fontIsScriptSupported(fontRid: RID, script: String): Boolean { - throw NotImplementedError("_fontIsScriptSupported is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontIsScriptSupported is not implemented.") } /** @@ -1355,7 +1255,7 @@ public open class TextServerExtension : TextServer() { script: String, supported: Boolean, ): Unit { - throw NotImplementedError("_fontSetScriptSupportOverride is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontSetScriptSupportOverride is not implemented.") } /** @@ -1364,7 +1264,7 @@ public open class TextServerExtension : TextServer() { * Returns `true` if support override is enabled for the [script]. */ public open fun _fontGetScriptSupportOverride(fontRid: RID, script: String): Boolean { - throw NotImplementedError("_fontGetScriptSupportOverride is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontGetScriptSupportOverride is not implemented.") } /** @@ -1373,7 +1273,7 @@ public open class TextServerExtension : TextServer() { * Removes script support override. */ public open fun _fontRemoveScriptSupportOverride(fontRid: RID, script: String): Unit { - throw NotImplementedError("_fontRemoveScriptSupportOverride is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontRemoveScriptSupportOverride is not implemented.") } /** @@ -1382,7 +1282,7 @@ public open class TextServerExtension : TextServer() { * Returns list of script support overrides. */ public open fun _fontGetScriptSupportOverrides(fontRid: RID): PackedStringArray { - throw NotImplementedError("_fontGetScriptSupportOverrides is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontGetScriptSupportOverrides is not implemented.") } /** @@ -1392,7 +1292,7 @@ public open class TextServerExtension : TextServer() { */ public open fun _fontSetOpentypeFeatureOverrides(fontRid: RID, overrides: Dictionary): Unit { - throw NotImplementedError("_fontSetOpentypeFeatureOverrides is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontSetOpentypeFeatureOverrides is not implemented.") } /** @@ -1401,7 +1301,7 @@ public open class TextServerExtension : TextServer() { * Returns font OpenType feature set override. */ public open fun _fontGetOpentypeFeatureOverrides(fontRid: RID): Dictionary { - throw NotImplementedError("_fontGetOpentypeFeatureOverrides is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontGetOpentypeFeatureOverrides is not implemented.") } /** @@ -1410,7 +1310,7 @@ public open class TextServerExtension : TextServer() { * Returns the dictionary of the supported OpenType features. */ public open fun _fontSupportedFeatureList(fontRid: RID): Dictionary { - throw NotImplementedError("_fontSupportedFeatureList is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontSupportedFeatureList is not implemented.") } /** @@ -1419,7 +1319,7 @@ public open class TextServerExtension : TextServer() { * Returns the dictionary of the supported OpenType variation coordinates. */ public open fun _fontSupportedVariationList(fontRid: RID): Dictionary { - throw NotImplementedError("_fontSupportedVariationList is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontSupportedVariationList is not implemented.") } /** @@ -1428,7 +1328,7 @@ public open class TextServerExtension : TextServer() { * Returns the font oversampling factor, shared by all fonts in the TextServer. */ public open fun _fontGetGlobalOversampling(): Double { - throw NotImplementedError("_fontGetGlobalOversampling is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontGetGlobalOversampling is not implemented.") } /** @@ -1437,7 +1337,7 @@ public open class TextServerExtension : TextServer() { * Sets oversampling factor, shared by all font in the TextServer. */ public open fun _fontSetGlobalOversampling(oversampling: Double): Unit { - throw NotImplementedError("_fontSetGlobalOversampling is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_fontSetGlobalOversampling is not implemented.") } /** @@ -1447,7 +1347,7 @@ public open class TextServerExtension : TextServer() { * place of invalid characters). */ public open fun _getHexCodeBoxSize(size: Long, index: Long): Vector2 { - throw NotImplementedError("_getHexCodeBoxSize is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_getHexCodeBoxSize is not implemented.") } /** @@ -1462,7 +1362,7 @@ public open class TextServerExtension : TextServer() { index: Long, color: Color, ): Unit { - throw NotImplementedError("_drawHexCodeBox is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_drawHexCodeBox is not implemented.") } /** @@ -1470,19 +1370,15 @@ public open class TextServerExtension : TextServer() { * * Creates a new buffer for complex text layout, with the given [direction] and [orientation]. */ - public open fun _createShapedText(direction: TextServer.Direction, - orientation: TextServer.Orientation): RID { - throw NotImplementedError("_createShapedText is not implemented for TextServerExtension") - } + public abstract fun _createShapedText(direction: TextServer.Direction, + orientation: TextServer.Orientation): RID /** * **Required.** * * Clears text buffer (removes text and inline objects). */ - public open fun _shapedTextClear(shaped: RID): Unit { - throw NotImplementedError("_shapedTextClear is not implemented for TextServerExtension") - } + public abstract fun _shapedTextClear(shaped: RID): Unit /** * **Optional.** @@ -1491,7 +1387,7 @@ public open class TextServerExtension : TextServer() { * based on the buffer contents and current locale. */ public open fun _shapedTextSetDirection(shaped: RID, direction: TextServer.Direction): Unit { - throw NotImplementedError("_shapedTextSetDirection is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_shapedTextSetDirection is not implemented.") } /** @@ -1500,7 +1396,7 @@ public open class TextServerExtension : TextServer() { * Returns direction of the text. */ public open fun _shapedTextGetDirection(shaped: RID): TextServer.Direction { - throw NotImplementedError("_shapedTextGetDirection is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_shapedTextGetDirection is not implemented.") } /** @@ -1509,7 +1405,7 @@ public open class TextServerExtension : TextServer() { * Returns direction of the text, inferred by the BiDi algorithm. */ public open fun _shapedTextGetInferredDirection(shaped: RID): TextServer.Direction { - throw NotImplementedError("_shapedTextGetInferredDirection is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_shapedTextGetInferredDirection is not implemented.") } /** @@ -1518,7 +1414,7 @@ public open class TextServerExtension : TextServer() { * Overrides BiDi for the structured text. */ public open fun _shapedTextSetBidiOverride(shaped: RID, `override`: VariantArray): Unit { - throw NotImplementedError("_shapedTextSetBidiOverride is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_shapedTextSetBidiOverride is not implemented.") } /** @@ -1528,7 +1424,7 @@ public open class TextServerExtension : TextServer() { * defaults are used. */ public open fun _shapedTextSetCustomPunctuation(shaped: RID, punct: String): Unit { - throw NotImplementedError("_shapedTextSetCustomPunctuation is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_shapedTextSetCustomPunctuation is not implemented.") } /** @@ -1538,7 +1434,7 @@ public open class TextServerExtension : TextServer() { * server defaults are used. */ public open fun _shapedTextGetCustomPunctuation(shaped: RID): String { - throw NotImplementedError("_shapedTextGetCustomPunctuation is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_shapedTextGetCustomPunctuation is not implemented.") } /** @@ -1547,7 +1443,7 @@ public open class TextServerExtension : TextServer() { * Sets ellipsis character used for text clipping. */ public open fun _shapedTextSetCustomEllipsis(shaped: RID, char: Long): Unit { - throw NotImplementedError("_shapedTextSetCustomEllipsis is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_shapedTextSetCustomEllipsis is not implemented.") } /** @@ -1556,7 +1452,7 @@ public open class TextServerExtension : TextServer() { * Returns ellipsis character used for text clipping. */ public open fun _shapedTextGetCustomEllipsis(shaped: RID): Long { - throw NotImplementedError("_shapedTextGetCustomEllipsis is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_shapedTextGetCustomEllipsis is not implemented.") } /** @@ -1566,7 +1462,7 @@ public open class TextServerExtension : TextServer() { */ public open fun _shapedTextSetOrientation(shaped: RID, orientation: TextServer.Orientation): Unit { - throw NotImplementedError("_shapedTextSetOrientation is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_shapedTextSetOrientation is not implemented.") } /** @@ -1575,7 +1471,7 @@ public open class TextServerExtension : TextServer() { * Returns text orientation. */ public open fun _shapedTextGetOrientation(shaped: RID): TextServer.Orientation { - throw NotImplementedError("_shapedTextGetOrientation is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_shapedTextGetOrientation is not implemented.") } /** @@ -1585,7 +1481,7 @@ public open class TextServerExtension : TextServer() { * nothing is displayed. */ public open fun _shapedTextSetPreserveInvalid(shaped: RID, enabled: Boolean): Unit { - throw NotImplementedError("_shapedTextSetPreserveInvalid is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_shapedTextSetPreserveInvalid is not implemented.") } /** @@ -1595,7 +1491,7 @@ public open class TextServerExtension : TextServer() { * characters. */ public open fun _shapedTextGetPreserveInvalid(shaped: RID): Boolean { - throw NotImplementedError("_shapedTextGetPreserveInvalid is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_shapedTextGetPreserveInvalid is not implemented.") } /** @@ -1604,7 +1500,7 @@ public open class TextServerExtension : TextServer() { * If set to `true` text buffer will display control characters. */ public open fun _shapedTextSetPreserveControl(shaped: RID, enabled: Boolean): Unit { - throw NotImplementedError("_shapedTextSetPreserveControl is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_shapedTextSetPreserveControl is not implemented.") } /** @@ -1613,7 +1509,7 @@ public open class TextServerExtension : TextServer() { * Returns `true` if text buffer is configured to display control characters. */ public open fun _shapedTextGetPreserveControl(shaped: RID): Boolean { - throw NotImplementedError("_shapedTextGetPreserveControl is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_shapedTextGetPreserveControl is not implemented.") } /** @@ -1626,7 +1522,7 @@ public open class TextServerExtension : TextServer() { spacing: TextServer.SpacingType, `value`: Long, ): Unit { - throw NotImplementedError("_shapedTextSetSpacing is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_shapedTextSetSpacing is not implemented.") } /** @@ -1635,7 +1531,7 @@ public open class TextServerExtension : TextServer() { * Returns extra spacing added between glyphs or lines in pixels. */ public open fun _shapedTextGetSpacing(shaped: RID, spacing: TextServer.SpacingType): Long { - throw NotImplementedError("_shapedTextGetSpacing is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_shapedTextGetSpacing is not implemented.") } /** @@ -1643,7 +1539,7 @@ public open class TextServerExtension : TextServer() { * * Adds text span and font to draw it to the text buffer. */ - public open fun _shapedTextAddString( + public abstract fun _shapedTextAddString( shaped: RID, text: String, fonts: VariantArray, @@ -1651,9 +1547,7 @@ public open class TextServerExtension : TextServer() { opentypeFeatures: Dictionary, language: String, meta: Any?, - ): Boolean { - throw NotImplementedError("_shapedTextAddString is not implemented for TextServerExtension") - } + ): Boolean /** * **Required.** @@ -1661,73 +1555,61 @@ public open class TextServerExtension : TextServer() { * Adds inline object to the text buffer, [key] must be unique. In the text, object is represented * as [length] object replacement characters. */ - public open fun _shapedTextAddObject( + public abstract fun _shapedTextAddObject( shaped: RID, key: Any?, size: Vector2, inlineAlign: InlineAlignment, length: Long, baseline: Double, - ): Boolean { - throw NotImplementedError("_shapedTextAddObject is not implemented for TextServerExtension") - } + ): Boolean /** * **Required.** * * Sets new size and alignment of embedded object. */ - public open fun _shapedTextResizeObject( + public abstract fun _shapedTextResizeObject( shaped: RID, key: Any?, size: Vector2, inlineAlign: InlineAlignment, baseline: Double, - ): Boolean { - throw NotImplementedError("_shapedTextResizeObject is not implemented for TextServerExtension") - } + ): Boolean /** * **Required.** * * Returns number of text spans added using [_shapedTextAddString] or [_shapedTextAddObject]. */ - public open fun _shapedGetSpanCount(shaped: RID): Long { - throw NotImplementedError("_shapedGetSpanCount is not implemented for TextServerExtension") - } + public abstract fun _shapedGetSpanCount(shaped: RID): Long /** * **Required.** * * Returns text span metadata. */ - public open fun _shapedGetSpanMeta(shaped: RID, index: Long): Any? { - throw NotImplementedError("_shapedGetSpanMeta is not implemented for TextServerExtension") - } + public abstract fun _shapedGetSpanMeta(shaped: RID, index: Long): Any? /** * **Required.** * * Returns text embedded object key. */ - public open fun _shapedGetSpanEmbeddedObject(shaped: RID, index: Long): Any? { - throw NotImplementedError("_shapedGetSpanEmbeddedObject is not implemented for TextServerExtension") - } + public abstract fun _shapedGetSpanEmbeddedObject(shaped: RID, index: Long): Any? /** * **Required.** * * Changes text span font, font size, and OpenType features, without changing the text. */ - public open fun _shapedSetSpanUpdateFont( + public abstract fun _shapedSetSpanUpdateFont( shaped: RID, index: Long, fonts: VariantArray, size: Long, opentypeFeatures: Dictionary, - ): Unit { - throw NotImplementedError("_shapedSetSpanUpdateFont is not implemented for TextServerExtension") - } + ): Unit /** * **Required.** @@ -1735,22 +1617,18 @@ public open class TextServerExtension : TextServer() { * Returns text buffer for the substring of the text in the [shaped] text buffer (including inline * objects). */ - public open fun _shapedTextSubstr( + public abstract fun _shapedTextSubstr( shaped: RID, start: Long, length: Long, - ): RID { - throw NotImplementedError("_shapedTextSubstr is not implemented for TextServerExtension") - } + ): RID /** * **Required.** * * Returns the parent buffer from which the substring originates. */ - public open fun _shapedTextGetParent(shaped: RID): RID { - throw NotImplementedError("_shapedTextGetParent is not implemented for TextServerExtension") - } + public abstract fun _shapedTextGetParent(shaped: RID): RID /** * **Optional.** @@ -1762,7 +1640,7 @@ public open class TextServerExtension : TextServer() { width: Double, justificationFlags: TextServer.JustificationFlag, ): Double { - throw NotImplementedError("_shapedTextFitToWidth is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_shapedTextFitToWidth is not implemented.") } /** @@ -1771,7 +1649,7 @@ public open class TextServerExtension : TextServer() { * Aligns shaped text to the given tab-stops. */ public open fun _shapedTextTabAlign(shaped: RID, tabStops: PackedFloat32Array): Double { - throw NotImplementedError("_shapedTextTabAlign is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_shapedTextTabAlign is not implemented.") } /** @@ -1779,9 +1657,7 @@ public open class TextServerExtension : TextServer() { * * Shapes buffer if it's not shaped. Returns `true` if the string is shaped successfully. */ - public open fun _shapedTextShape(shaped: RID): Boolean { - throw NotImplementedError("_shapedTextShape is not implemented for TextServerExtension") - } + public abstract fun _shapedTextShape(shaped: RID): Boolean /** * **Optional.** @@ -1790,7 +1666,7 @@ public open class TextServerExtension : TextServer() { * text breaking functions. */ public open fun _shapedTextUpdateBreaks(shaped: RID): Boolean { - throw NotImplementedError("_shapedTextUpdateBreaks is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_shapedTextUpdateBreaks is not implemented.") } /** @@ -1800,7 +1676,7 @@ public open class TextServerExtension : TextServer() { * implementation of text justification functions. */ public open fun _shapedTextUpdateJustificationOps(shaped: RID): Boolean { - throw NotImplementedError("_shapedTextUpdateJustificationOps is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_shapedTextUpdateJustificationOps is not implemented.") } /** @@ -1808,27 +1684,21 @@ public open class TextServerExtension : TextServer() { * * Returns `true` if buffer is successfully shaped. */ - public open fun _shapedTextIsReady(shaped: RID): Boolean { - throw NotImplementedError("_shapedTextIsReady is not implemented for TextServerExtension") - } + public abstract fun _shapedTextIsReady(shaped: RID): Boolean /** * **Required.** * * Returns number of glyphs in the buffer. */ - public open fun _shapedTextGetGlyphCount(shaped: RID): Long { - throw NotImplementedError("_shapedTextGetGlyphCount is not implemented for TextServerExtension") - } + public abstract fun _shapedTextGetGlyphCount(shaped: RID): Long /** * **Required.** * * Returns substring buffer character range in the parent buffer. */ - public open fun _shapedTextGetRange(shaped: RID): Vector2i { - throw NotImplementedError("_shapedTextGetRange is not implemented for TextServerExtension") - } + public abstract fun _shapedTextGetRange(shaped: RID): Vector2i /** * **Optional.** @@ -1842,7 +1712,7 @@ public open class TextServerExtension : TextServer() { once: Boolean, breakFlags: TextServer.LineBreakFlag, ): PackedInt32Array { - throw NotImplementedError("_shapedTextGetLineBreaksAdv is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_shapedTextGetLineBreaksAdv is not implemented.") } /** @@ -1856,7 +1726,7 @@ public open class TextServerExtension : TextServer() { start: Long, breakFlags: TextServer.LineBreakFlag, ): PackedInt32Array { - throw NotImplementedError("_shapedTextGetLineBreaks is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_shapedTextGetLineBreaks is not implemented.") } /** @@ -1870,7 +1740,7 @@ public open class TextServerExtension : TextServer() { graphemeFlags: TextServer.GraphemeFlag, skipGraphemeFlags: TextServer.GraphemeFlag, ): PackedInt32Array { - throw NotImplementedError("_shapedTextGetWordBreaks is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_shapedTextGetWordBreaks is not implemented.") } /** @@ -1878,27 +1748,21 @@ public open class TextServerExtension : TextServer() { * * Returns the position of the overrun trim. */ - public open fun _shapedTextGetTrimPos(shaped: RID): Long { - throw NotImplementedError("_shapedTextGetTrimPos is not implemented for TextServerExtension") - } + public abstract fun _shapedTextGetTrimPos(shaped: RID): Long /** * **Required.** * * Returns position of the ellipsis. */ - public open fun _shapedTextGetEllipsisPos(shaped: RID): Long { - throw NotImplementedError("_shapedTextGetEllipsisPos is not implemented for TextServerExtension") - } + public abstract fun _shapedTextGetEllipsisPos(shaped: RID): Long /** * **Required.** * * Returns number of glyphs in the ellipsis. */ - public open fun _shapedTextGetEllipsisGlyphCount(shaped: RID): Long { - throw NotImplementedError("_shapedTextGetEllipsisGlyphCount is not implemented for TextServerExtension") - } + public abstract fun _shapedTextGetEllipsisGlyphCount(shaped: RID): Long /** * **Optional.** @@ -1910,7 +1774,7 @@ public open class TextServerExtension : TextServer() { width: Double, trimFlags: TextServer.TextOverrunFlag, ): Unit { - throw NotImplementedError("_shapedTextOverrunTrimToWidth is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_shapedTextOverrunTrimToWidth is not implemented.") } /** @@ -1918,45 +1782,35 @@ public open class TextServerExtension : TextServer() { * * Returns array of inline objects. */ - public open fun _shapedTextGetObjects(shaped: RID): VariantArray { - throw NotImplementedError("_shapedTextGetObjects is not implemented for TextServerExtension") - } + public abstract fun _shapedTextGetObjects(shaped: RID): VariantArray /** * **Required.** * * Returns bounding rectangle of the inline object. */ - public open fun _shapedTextGetObjectRect(shaped: RID, key: Any?): Rect2 { - throw NotImplementedError("_shapedTextGetObjectRect is not implemented for TextServerExtension") - } + public abstract fun _shapedTextGetObjectRect(shaped: RID, key: Any?): Rect2 /** * **Required.** * * Returns the character range of the inline object. */ - public open fun _shapedTextGetObjectRange(shaped: RID, key: Any?): Vector2i { - throw NotImplementedError("_shapedTextGetObjectRange is not implemented for TextServerExtension") - } + public abstract fun _shapedTextGetObjectRange(shaped: RID, key: Any?): Vector2i /** * **Required.** * * Returns the glyph index of the inline object. */ - public open fun _shapedTextGetObjectGlyph(shaped: RID, key: Any?): Long { - throw NotImplementedError("_shapedTextGetObjectGlyph is not implemented for TextServerExtension") - } + public abstract fun _shapedTextGetObjectGlyph(shaped: RID, key: Any?): Long /** * **Required.** * * Returns size of the text. */ - public open fun _shapedTextGetSize(shaped: RID): Vector2 { - throw NotImplementedError("_shapedTextGetSize is not implemented for TextServerExtension") - } + public abstract fun _shapedTextGetSize(shaped: RID): Vector2 /** * **Required.** @@ -1964,9 +1818,7 @@ public open class TextServerExtension : TextServer() { * Returns the text ascent (number of pixels above the baseline for horizontal layout or to the * left of baseline for vertical). */ - public open fun _shapedTextGetAscent(shaped: RID): Double { - throw NotImplementedError("_shapedTextGetAscent is not implemented for TextServerExtension") - } + public abstract fun _shapedTextGetAscent(shaped: RID): Double /** * **Required.** @@ -1974,36 +1826,28 @@ public open class TextServerExtension : TextServer() { * Returns the text descent (number of pixels below the baseline for horizontal layout or to the * right of baseline for vertical). */ - public open fun _shapedTextGetDescent(shaped: RID): Double { - throw NotImplementedError("_shapedTextGetDescent is not implemented for TextServerExtension") - } + public abstract fun _shapedTextGetDescent(shaped: RID): Double /** * **Required.** * * Returns width (for horizontal layout) or height (for vertical) of the text. */ - public open fun _shapedTextGetWidth(shaped: RID): Double { - throw NotImplementedError("_shapedTextGetWidth is not implemented for TextServerExtension") - } + public abstract fun _shapedTextGetWidth(shaped: RID): Double /** * **Required.** * * Returns pixel offset of the underline below the baseline. */ - public open fun _shapedTextGetUnderlinePosition(shaped: RID): Double { - throw NotImplementedError("_shapedTextGetUnderlinePosition is not implemented for TextServerExtension") - } + public abstract fun _shapedTextGetUnderlinePosition(shaped: RID): Double /** * **Required.** * * Returns thickness of the underline. */ - public open fun _shapedTextGetUnderlineThickness(shaped: RID): Double { - throw NotImplementedError("_shapedTextGetUnderlineThickness is not implemented for TextServerExtension") - } + public abstract fun _shapedTextGetUnderlineThickness(shaped: RID): Double /** * **Optional.** @@ -2015,7 +1859,7 @@ public open class TextServerExtension : TextServer() { start: Long, end: Long, ): Long { - throw NotImplementedError("_shapedTextGetDominantDirectionInRange is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_shapedTextGetDominantDirectionInRange is not implemented.") } /** @@ -2028,7 +1872,7 @@ public open class TextServerExtension : TextServer() { start: Long, end: Long, ): PackedVector2Array { - throw NotImplementedError("_shapedTextGetSelection is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_shapedTextGetSelection is not implemented.") } /** @@ -2037,7 +1881,7 @@ public open class TextServerExtension : TextServer() { * Returns grapheme index at the specified pixel offset at the baseline, or `-1` if none is found. */ public open fun _shapedTextHitTestGrapheme(shaped: RID, coord: Double): Long { - throw NotImplementedError("_shapedTextHitTestGrapheme is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_shapedTextHitTestGrapheme is not implemented.") } /** @@ -2047,7 +1891,7 @@ public open class TextServerExtension : TextServer() { * always returns a valid position. */ public open fun _shapedTextHitTestPosition(shaped: RID, coord: Double): Long { - throw NotImplementedError("_shapedTextHitTestPosition is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_shapedTextHitTestPosition is not implemented.") } /** @@ -2065,7 +1909,7 @@ public open class TextServerExtension : TextServer() { clipR: Double, color: Color, ): Unit { - throw NotImplementedError("_shapedTextDraw is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_shapedTextDraw is not implemented.") } /** @@ -2084,7 +1928,7 @@ public open class TextServerExtension : TextServer() { outlineSize: Long, color: Color, ): Unit { - throw NotImplementedError("_shapedTextDrawOutline is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_shapedTextDrawOutline is not implemented.") } /** @@ -2093,7 +1937,7 @@ public open class TextServerExtension : TextServer() { * Returns composite character's bounds as offsets from the start of the line. */ public open fun _shapedTextGetGraphemeBounds(shaped: RID, pos: Long): Vector2 { - throw NotImplementedError("_shapedTextGetGraphemeBounds is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_shapedTextGetGraphemeBounds is not implemented.") } /** @@ -2102,7 +1946,7 @@ public open class TextServerExtension : TextServer() { * Returns grapheme end position closest to the [pos]. */ public open fun _shapedTextNextGraphemePos(shaped: RID, pos: Long): Long { - throw NotImplementedError("_shapedTextNextGraphemePos is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_shapedTextNextGraphemePos is not implemented.") } /** @@ -2111,7 +1955,7 @@ public open class TextServerExtension : TextServer() { * Returns grapheme start position closest to the [pos]. */ public open fun _shapedTextPrevGraphemePos(shaped: RID, pos: Long): Long { - throw NotImplementedError("_shapedTextPrevGraphemePos is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_shapedTextPrevGraphemePos is not implemented.") } /** @@ -2120,7 +1964,7 @@ public open class TextServerExtension : TextServer() { * Returns array of the composite character boundaries. */ public open fun _shapedTextGetCharacterBreaks(shaped: RID): PackedInt32Array { - throw NotImplementedError("_shapedTextGetCharacterBreaks is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_shapedTextGetCharacterBreaks is not implemented.") } /** @@ -2129,7 +1973,7 @@ public open class TextServerExtension : TextServer() { * Returns composite character end position closest to the [pos]. */ public open fun _shapedTextNextCharacterPos(shaped: RID, pos: Long): Long { - throw NotImplementedError("_shapedTextNextCharacterPos is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_shapedTextNextCharacterPos is not implemented.") } /** @@ -2138,7 +1982,7 @@ public open class TextServerExtension : TextServer() { * Returns composite character start position closest to the [pos]. */ public open fun _shapedTextPrevCharacterPos(shaped: RID, pos: Long): Long { - throw NotImplementedError("_shapedTextPrevCharacterPos is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_shapedTextPrevCharacterPos is not implemented.") } /** @@ -2147,7 +1991,7 @@ public open class TextServerExtension : TextServer() { * Returns composite character position closest to the [pos]. */ public open fun _shapedTextClosestCharacterPos(shaped: RID, pos: Long): Long { - throw NotImplementedError("_shapedTextClosestCharacterPos is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_shapedTextClosestCharacterPos is not implemented.") } /** @@ -2156,7 +2000,7 @@ public open class TextServerExtension : TextServer() { * Converts a number from the Western Arabic (0..9) to the numeral systems used in [language]. */ public open fun _formatNumber(number: String, language: String): String { - throw NotImplementedError("_formatNumber is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_formatNumber is not implemented.") } /** @@ -2165,7 +2009,7 @@ public open class TextServerExtension : TextServer() { * Converts [number] from the numeral systems used in [language] to Western Arabic (0..9). */ public open fun _parseNumber(number: String, language: String): String { - throw NotImplementedError("_parseNumber is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_parseNumber is not implemented.") } /** @@ -2174,7 +2018,7 @@ public open class TextServerExtension : TextServer() { * Returns percent sign used in the [language]. */ public open fun _percentSign(language: String): String { - throw NotImplementedError("_percentSign is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_percentSign is not implemented.") } /** @@ -2183,7 +2027,7 @@ public open class TextServerExtension : TextServer() { * Strips diacritics from the string. */ public open fun _stripDiacritics(string: String): String { - throw NotImplementedError("_stripDiacritics is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_stripDiacritics is not implemented.") } /** @@ -2192,11 +2036,11 @@ public open class TextServerExtension : TextServer() { * Returns `true` if [string] is a valid identifier. */ public open fun _isValidIdentifier(string: String): Boolean { - throw NotImplementedError("_isValidIdentifier is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_isValidIdentifier is not implemented.") } public open fun _isValidLetter(unicode: Long): Boolean { - throw NotImplementedError("_isValidLetter is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_isValidLetter is not implemented.") } /** @@ -2210,7 +2054,7 @@ public open class TextServerExtension : TextServer() { language: String, charsPerLine: Long, ): PackedInt32Array { - throw NotImplementedError("_stringGetWordBreaks is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_stringGetWordBreaks is not implemented.") } /** @@ -2219,7 +2063,7 @@ public open class TextServerExtension : TextServer() { * Returns array of the composite character boundaries. */ public open fun _stringGetCharacterBreaks(string: String, language: String): PackedInt32Array { - throw NotImplementedError("_stringGetCharacterBreaks is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_stringGetCharacterBreaks is not implemented.") } /** @@ -2229,7 +2073,7 @@ public open class TextServerExtension : TextServer() { * `-1` if none is found. */ public open fun _isConfusable(string: String, dict: PackedStringArray): Long { - throw NotImplementedError("_isConfusable is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_isConfusable is not implemented.") } /** @@ -2238,7 +2082,7 @@ public open class TextServerExtension : TextServer() { * Returns `true` if [string] is likely to be an attempt at confusing the reader. */ public open fun _spoofCheck(string: String): Boolean { - throw NotImplementedError("_spoofCheck is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_spoofCheck is not implemented.") } /** @@ -2247,7 +2091,7 @@ public open class TextServerExtension : TextServer() { * Returns the string converted to uppercase. */ public open fun _stringToUpper(string: String, language: String): String { - throw NotImplementedError("_stringToUpper is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_stringToUpper is not implemented.") } /** @@ -2256,7 +2100,7 @@ public open class TextServerExtension : TextServer() { * Returns the string converted to lowercase. */ public open fun _stringToLower(string: String, language: String): String { - throw NotImplementedError("_stringToLower is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_stringToLower is not implemented.") } /** @@ -2265,7 +2109,7 @@ public open class TextServerExtension : TextServer() { * Returns the string converted to title case. */ public open fun _stringToTitle(string: String, language: String): String { - throw NotImplementedError("_stringToTitle is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_stringToTitle is not implemented.") } /** @@ -2279,7 +2123,7 @@ public open class TextServerExtension : TextServer() { args: VariantArray, text: String, ): VariantArray { - throw NotImplementedError("_parseStructuredText is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_parseStructuredText is not implemented.") } /** @@ -2288,7 +2132,7 @@ public open class TextServerExtension : TextServer() { * This method is called before text server is unregistered. */ public open fun _cleanup(): Unit { - throw NotImplementedError("_cleanup is not implemented for TextServerExtension") + throw NotImplementedError("TextServerExtension::_cleanup is not implemented.") } public companion object diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/Texture2D.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/Texture2D.kt index 5d1a44648..ffb8833b6 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/Texture2D.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/Texture2D.kt @@ -42,7 +42,7 @@ import kotlin.jvm.JvmOverloads * Larger textures may fail to import. */ @GodotBaseType -public open class Texture2D : Texture() { +public abstract class Texture2D : Texture() { public override fun new(scriptIndex: Int): Unit { createNativeObject(665, scriptIndex) } @@ -50,30 +50,26 @@ public open class Texture2D : Texture() { /** * Called when the [Texture2D]'s width is queried. */ - public open fun _getWidth(): Int { - throw NotImplementedError("_getWidth is not implemented for Texture2D") - } + public abstract fun _getWidth(): Int /** * Called when the [Texture2D]'s height is queried. */ - public open fun _getHeight(): Int { - throw NotImplementedError("_getHeight is not implemented for Texture2D") - } + public abstract fun _getHeight(): Int /** * Called when a pixel's opaque state in the [Texture2D] is queried at the specified `(x, y)` * position. */ public open fun _isPixelOpaque(x: Int, y: Int): Boolean { - throw NotImplementedError("_isPixelOpaque is not implemented for Texture2D") + throw NotImplementedError("Texture2D::_isPixelOpaque is not implemented.") } /** * Called when the presence of an alpha channel in the [Texture2D] is queried. */ public open fun _hasAlpha(): Boolean { - throw NotImplementedError("_hasAlpha is not implemented for Texture2D") + throw NotImplementedError("Texture2D::_hasAlpha is not implemented.") } /** @@ -90,7 +86,7 @@ public open class Texture2D : Texture() { modulate: Color, transpose: Boolean, ): Unit { - throw NotImplementedError("_draw is not implemented for Texture2D") + throw NotImplementedError("Texture2D::_draw is not implemented.") } /** @@ -108,7 +104,7 @@ public open class Texture2D : Texture() { modulate: Color, transpose: Boolean, ): Unit { - throw NotImplementedError("_drawRect is not implemented for Texture2D") + throw NotImplementedError("Texture2D::_drawRect is not implemented.") } /** @@ -127,7 +123,7 @@ public open class Texture2D : Texture() { transpose: Boolean, clipUv: Boolean, ): Unit { - throw NotImplementedError("_drawRectRegion is not implemented for Texture2D") + throw NotImplementedError("Texture2D::_drawRectRegion is not implemented.") } /** diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/Texture2DRD.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/Texture2DRD.kt index 9158e73fc..20f8c8cc0 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/Texture2DRD.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/Texture2DRD.kt @@ -14,6 +14,7 @@ import godot.core.RID import godot.core.VariantParser.NIL import godot.core.VariantParser._RID import kotlin.Int +import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit import kotlin.jvm.JvmName @@ -50,6 +51,20 @@ public open class Texture2DRD : Texture2D() { return (TransferContext.readReturnValue(_RID) as RID) } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getWidth(): Int { + throw NotImplementedError("Texture2DRD::_getWidth can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getHeight(): Int { + throw NotImplementedError("Texture2DRD::_getHeight can't be called from the JVM.") + } + public companion object public object MethodBindings { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/Texture3D.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/Texture3D.kt index eeb308bc7..90e89220b 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/Texture3D.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/Texture3D.kt @@ -18,7 +18,6 @@ import godot.core.VariantParser.OBJECT import kotlin.Boolean import kotlin.Int import kotlin.Long -import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit @@ -33,7 +32,7 @@ import kotlin.Unit * presets. */ @GodotBaseType -public open class Texture3D : Texture() { +public abstract class Texture3D : Texture() { public override fun new(scriptIndex: Int): Unit { createNativeObject(669, scriptIndex) } @@ -41,44 +40,32 @@ public open class Texture3D : Texture() { /** * Called when the [Texture3D]'s format is queried. */ - public open fun _getFormat(): Image.Format { - throw NotImplementedError("_getFormat is not implemented for Texture3D") - } + public abstract fun _getFormat(): Image.Format /** * Called when the [Texture3D]'s width is queried. */ - public open fun _getWidth(): Int { - throw NotImplementedError("_getWidth is not implemented for Texture3D") - } + public abstract fun _getWidth(): Int /** * Called when the [Texture3D]'s height is queried. */ - public open fun _getHeight(): Int { - throw NotImplementedError("_getHeight is not implemented for Texture3D") - } + public abstract fun _getHeight(): Int /** * Called when the [Texture3D]'s depth is queried. */ - public open fun _getDepth(): Int { - throw NotImplementedError("_getDepth is not implemented for Texture3D") - } + public abstract fun _getDepth(): Int /** * Called when the presence of mipmaps in the [Texture3D] is queried. */ - public open fun _hasMipmaps(): Boolean { - throw NotImplementedError("_hasMipmaps is not implemented for Texture3D") - } + public abstract fun _hasMipmaps(): Boolean /** * Called when the [Texture3D]'s data is queried. */ - public open fun _getData(): VariantArray { - throw NotImplementedError("_getData is not implemented for Texture3D") - } + public abstract fun _getData(): VariantArray /** * Returns the current format being used by this texture. See [Image.Format] for details. diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/Texture3DRD.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/Texture3DRD.kt index 65cd5b1a9..73058ba4c 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/Texture3DRD.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/Texture3DRD.kt @@ -11,9 +11,12 @@ import godot.`internal`.memory.TransferContext import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.RID +import godot.core.VariantArray import godot.core.VariantParser.NIL import godot.core.VariantParser._RID +import kotlin.Boolean import kotlin.Int +import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit import kotlin.jvm.JvmName @@ -50,6 +53,48 @@ public open class Texture3DRD : Texture3D() { return (TransferContext.readReturnValue(_RID) as RID) } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getFormat(): Image.Format { + throw NotImplementedError("Texture3DRD::_getFormat can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getWidth(): Int { + throw NotImplementedError("Texture3DRD::_getWidth can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getHeight(): Int { + throw NotImplementedError("Texture3DRD::_getHeight can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getDepth(): Int { + throw NotImplementedError("Texture3DRD::_getDepth can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _hasMipmaps(): Boolean { + throw NotImplementedError("Texture3DRD::_hasMipmaps can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getData(): VariantArray { + throw NotImplementedError("Texture3DRD::_getData can't be called from the JVM.") + } + public companion object public object MethodBindings { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/TextureLayered.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/TextureLayered.kt index 9cbc72ced..89f361b9d 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/TextureLayered.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/TextureLayered.kt @@ -16,7 +16,6 @@ import godot.core.VariantParser.OBJECT import kotlin.Boolean import kotlin.Int import kotlin.Long -import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit @@ -34,7 +33,7 @@ import kotlin.Unit * driver (Vulkan, OpenGL3). */ @GodotBaseType -public open class TextureLayered : Texture() { +public abstract class TextureLayered : Texture() { public override fun new(scriptIndex: Int): Unit { createNativeObject(674, scriptIndex) } @@ -42,51 +41,37 @@ public open class TextureLayered : Texture() { /** * Called when the [TextureLayered]'s format is queried. */ - public open fun _getFormat(): Image.Format { - throw NotImplementedError("_getFormat is not implemented for TextureLayered") - } + public abstract fun _getFormat(): Image.Format /** * Called when the layers' type in the [TextureLayered] is queried. */ - public open fun _getLayeredType(): Long { - throw NotImplementedError("_getLayeredType is not implemented for TextureLayered") - } + public abstract fun _getLayeredType(): Long /** * Called when the [TextureLayered]'s width queried. */ - public open fun _getWidth(): Int { - throw NotImplementedError("_getWidth is not implemented for TextureLayered") - } + public abstract fun _getWidth(): Int /** * Called when the [TextureLayered]'s height is queried. */ - public open fun _getHeight(): Int { - throw NotImplementedError("_getHeight is not implemented for TextureLayered") - } + public abstract fun _getHeight(): Int /** * Called when the number of layers in the [TextureLayered] is queried. */ - public open fun _getLayers(): Int { - throw NotImplementedError("_getLayers is not implemented for TextureLayered") - } + public abstract fun _getLayers(): Int /** * Called when the presence of mipmaps in the [TextureLayered] is queried. */ - public open fun _hasMipmaps(): Boolean { - throw NotImplementedError("_hasMipmaps is not implemented for TextureLayered") - } + public abstract fun _hasMipmaps(): Boolean /** * Called when the data for a layer in the [TextureLayered] is queried. */ - public open fun _getLayerData(layerIndex: Int): Image? { - throw NotImplementedError("_getLayerData is not implemented for TextureLayered") - } + public abstract fun _getLayerData(layerIndex: Int): Image? /** * Returns the current format being used by this texture. See [Image.Format] for details. diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/TextureLayeredRD.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/TextureLayeredRD.kt index 19babbe65..938e40239 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/TextureLayeredRD.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/TextureLayeredRD.kt @@ -13,7 +13,10 @@ import godot.common.interop.VoidPtr import godot.core.RID import godot.core.VariantParser.NIL import godot.core.VariantParser._RID +import kotlin.Boolean import kotlin.Int +import kotlin.Long +import kotlin.NotImplementedError import kotlin.Suppress import kotlin.Unit import kotlin.jvm.JvmName @@ -50,6 +53,55 @@ public open class TextureLayeredRD internal constructor() : TextureLayered() { return (TransferContext.readReturnValue(_RID) as RID) } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getFormat(): Image.Format { + throw NotImplementedError("TextureLayeredRD::_getFormat can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getLayeredType(): Long { + throw NotImplementedError("TextureLayeredRD::_getLayeredType can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getWidth(): Int { + throw NotImplementedError("TextureLayeredRD::_getWidth can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getHeight(): Int { + throw NotImplementedError("TextureLayeredRD::_getHeight can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getLayers(): Int { + throw NotImplementedError("TextureLayeredRD::_getLayers can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _hasMipmaps(): Boolean { + throw NotImplementedError("TextureLayeredRD::_hasMipmaps can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getLayerData(layerIndex: Int): Image? { + throw NotImplementedError("TextureLayeredRD::_getLayerData can't be called from the JVM.") + } + public companion object public object MethodBindings { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/TileMap.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/TileMap.kt index e2019b217..8354053c2 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/TileMap.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/TileMap.kt @@ -146,7 +146,7 @@ public open class TileMap : Node2D() { * notify the TileMap it needs an update. */ public open fun _useTileDataRuntimeUpdate(layer: Int, coords: Vector2i): Boolean { - throw NotImplementedError("_useTileDataRuntimeUpdate is not implemented for TileMap") + throw NotImplementedError("TileMap::_useTileDataRuntimeUpdate is not implemented.") } /** @@ -167,7 +167,7 @@ public open class TileMap : Node2D() { coords: Vector2i, tileData: TileData?, ): Unit { - throw NotImplementedError("_tileDataRuntimeUpdate is not implemented for TileMap") + throw NotImplementedError("TileMap::_tileDataRuntimeUpdate is not implemented.") } /** diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/TileMapLayer.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/TileMapLayer.kt index bccda60d1..e257c295b 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/TileMapLayer.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/TileMapLayer.kt @@ -274,7 +274,7 @@ public open class TileMapLayer : Node2D() { * notify the [TileMapLayer] it needs an update. */ public open fun _useTileDataRuntimeUpdate(coords: Vector2i): Boolean { - throw NotImplementedError("_useTileDataRuntimeUpdate is not implemented for TileMapLayer") + throw NotImplementedError("TileMapLayer::_useTileDataRuntimeUpdate is not implemented.") } /** @@ -291,7 +291,7 @@ public open class TileMapLayer : Node2D() { * [notifyRuntimeTileDataUpdate] to notify the [TileMapLayer] it needs an update. */ public open fun _tileDataRuntimeUpdate(coords: Vector2i, tileData: TileData?): Unit { - throw NotImplementedError("_tileDataRuntimeUpdate is not implemented for TileMapLayer") + throw NotImplementedError("TileMapLayer::_tileDataRuntimeUpdate is not implemented.") } /** @@ -318,7 +318,7 @@ public open class TileMapLayer : Node2D() { * **Warning:** Implementing this method may degrade the [TileMapLayer]'s performance. */ public open fun _updateCells(coords: VariantArray, forcedCleanup: Boolean): Unit { - throw NotImplementedError("_updateCells is not implemented for TileMapLayer") + throw NotImplementedError("TileMapLayer::_updateCells is not implemented.") } /** diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/Translation.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/Translation.kt index 13036ea14..ea9ede0c1 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/Translation.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/Translation.kt @@ -57,14 +57,14 @@ public open class Translation : Resource() { n: Int, context: StringName, ): StringName { - throw NotImplementedError("_getPluralMessage is not implemented for Translation") + throw NotImplementedError("Translation::_getPluralMessage is not implemented.") } /** * Virtual method to override [getMessage]. */ public open fun _getMessage(srcMessage: StringName, context: StringName): StringName { - throw NotImplementedError("_getMessage is not implemented for Translation") + throw NotImplementedError("Translation::_getMessage is not implemented.") } public final fun setLocale(locale: String): Unit { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/VideoStream.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/VideoStream.kt index 5f163856f..675907819 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/VideoStream.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/VideoStream.kt @@ -48,7 +48,7 @@ public open class VideoStream : Resource() { * [VideoStreamPlayback]. */ public open fun _instantiatePlayback(): VideoStreamPlayback? { - throw NotImplementedError("_instantiatePlayback is not implemented for VideoStream") + throw NotImplementedError("VideoStream::_instantiatePlayback is not implemented.") } public final fun setFile(`file`: String): Unit { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/VideoStreamPlayback.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/VideoStreamPlayback.kt index 95abb3175..d090378cd 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/VideoStreamPlayback.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/VideoStreamPlayback.kt @@ -27,7 +27,7 @@ import kotlin.jvm.JvmOverloads * of [VideoStream]. */ @GodotBaseType -public open class VideoStreamPlayback : Resource() { +public abstract class VideoStreamPlayback : Resource() { public override fun new(scriptIndex: Int): Unit { createNativeObject(716, scriptIndex) } @@ -37,7 +37,7 @@ public open class VideoStreamPlayback : Resource() { * [VideoStreamPlayer.stop]. [_isPlaying] should return `false` once stopped. */ public open fun _stop(): Unit { - throw NotImplementedError("_stop is not implemented for VideoStreamPlayback") + throw NotImplementedError("VideoStreamPlayback::_stop is not implemented.") } /** @@ -46,14 +46,14 @@ public open class VideoStreamPlayback : Resource() { * should return `true` once playing. */ public open fun _play(): Unit { - throw NotImplementedError("_play is not implemented for VideoStreamPlayback") + throw NotImplementedError("VideoStreamPlayback::_play is not implemented.") } /** * Returns the playback state, as determined by calls to [_play] and [_stop]. */ public open fun _isPlaying(): Boolean { - throw NotImplementedError("_isPlaying is not implemented for VideoStreamPlayback") + throw NotImplementedError("VideoStreamPlayback::_isPlaying is not implemented.") } /** @@ -61,21 +61,21 @@ public open class VideoStreamPlayback : Resource() { * to the [VideoStreamPlayer.paused] setter. */ public open fun _setPaused(paused: Boolean): Unit { - throw NotImplementedError("_setPaused is not implemented for VideoStreamPlayback") + throw NotImplementedError("VideoStreamPlayback::_setPaused is not implemented.") } /** * Returns the paused status, as set by [_setPaused]. */ public open fun _isPaused(): Boolean { - throw NotImplementedError("_isPaused is not implemented for VideoStreamPlayback") + throw NotImplementedError("VideoStreamPlayback::_isPaused is not implemented.") } /** * Returns the video duration in seconds, if known, or 0 if unknown. */ public open fun _getLength(): Double { - throw NotImplementedError("_getLength is not implemented for VideoStreamPlayback") + throw NotImplementedError("VideoStreamPlayback::_getLength is not implemented.") } /** @@ -83,14 +83,14 @@ public open class VideoStreamPlayback : Resource() { * [VideoStreamPlayer.streamPosition] getter. */ public open fun _getPlaybackPosition(): Double { - throw NotImplementedError("_getPlaybackPosition is not implemented for VideoStreamPlayback") + throw NotImplementedError("VideoStreamPlayback::_getPlaybackPosition is not implemented.") } /** * Seeks to [time] seconds. Called in response to the [VideoStreamPlayer.streamPosition] setter. */ public open fun _seek(time: Double): Unit { - throw NotImplementedError("_seek is not implemented for VideoStreamPlayback") + throw NotImplementedError("VideoStreamPlayback::_seek is not implemented.") } /** @@ -98,36 +98,34 @@ public open class VideoStreamPlayback : Resource() { * [VideoStreamPlayer.audioTrack] setter. */ public open fun _setAudioTrack(idx: Int): Unit { - throw NotImplementedError("_setAudioTrack is not implemented for VideoStreamPlayback") + throw NotImplementedError("VideoStreamPlayback::_setAudioTrack is not implemented.") } /** * Allocates a [Texture2D] in which decoded video frames will be drawn. */ public open fun _getTexture(): Texture2D? { - throw NotImplementedError("_getTexture is not implemented for VideoStreamPlayback") + throw NotImplementedError("VideoStreamPlayback::_getTexture is not implemented.") } /** * Ticks video playback for [delta] seconds. Called every frame as long as both [_isPaused] and * [_isPlaying] return `true`. */ - public open fun _update(delta: Double): Unit { - throw NotImplementedError("_update is not implemented for VideoStreamPlayback") - } + public abstract fun _update(delta: Double): Unit /** * Returns the number of audio channels. */ public open fun _getChannels(): Int { - throw NotImplementedError("_getChannels is not implemented for VideoStreamPlayback") + throw NotImplementedError("VideoStreamPlayback::_getChannels is not implemented.") } /** * Returns the audio sample rate used for mixing. */ public open fun _getMixRate(): Int { - throw NotImplementedError("_getMixRate is not implemented for VideoStreamPlayback") + throw NotImplementedError("VideoStreamPlayback::_getMixRate is not implemented.") } /** diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/ViewportTexture.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/ViewportTexture.kt index 26bca212c..d46046234 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/ViewportTexture.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/ViewportTexture.kt @@ -15,6 +15,7 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.NODE_PATH import godot.core.asCachedNodePath import kotlin.Int +import kotlin.NotImplementedError import kotlin.String import kotlin.Suppress import kotlin.Unit @@ -81,6 +82,20 @@ public open class ViewportTexture : Texture2D() { return (TransferContext.readReturnValue(NODE_PATH) as NodePath) } + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getWidth(): Int { + throw NotImplementedError("ViewportTexture::_getWidth can't be called from the JVM.") + } + + /** + * Virtual method inherited from base class implemented in non-JVM code. Don't call it. + */ + public override fun _getHeight(): Int { + throw NotImplementedError("ViewportTexture::_getHeight can't be called from the JVM.") + } + public final fun setViewportPathInScene(path: String) = setViewportPathInScene(path.asCachedNodePath()) diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/VisualInstance3D.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/VisualInstance3D.kt index db6ca4c38..6161131bd 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/VisualInstance3D.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/VisualInstance3D.kt @@ -99,7 +99,7 @@ public open class VisualInstance3D : Node3D() { } public open fun _getAabb(): AABB { - throw NotImplementedError("_getAabb is not implemented for VisualInstance3D") + throw NotImplementedError("VisualInstance3D::_getAabb is not implemented.") } /** diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/VisualShaderNodeCustom.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/VisualShaderNodeCustom.kt index 77122db8d..04d4dd3f6 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/VisualShaderNodeCustom.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/VisualShaderNodeCustom.kt @@ -50,7 +50,7 @@ public open class VisualShaderNodeCustom : VisualShaderNode() { * named as "Unnamed". */ public open fun _getName(): String { - throw NotImplementedError("_getName is not implemented for VisualShaderNodeCustom") + throw NotImplementedError("VisualShaderNodeCustom::_getName is not implemented.") } /** @@ -60,7 +60,7 @@ public open class VisualShaderNodeCustom : VisualShaderNode() { * Defining this method is **optional**. */ public open fun _getDescription(): String { - throw NotImplementedError("_getDescription is not implemented for VisualShaderNodeCustom") + throw NotImplementedError("VisualShaderNodeCustom::_getDescription is not implemented.") } /** @@ -71,7 +71,7 @@ public open class VisualShaderNodeCustom : VisualShaderNode() { * "Addons" category. */ public open fun _getCategory(): String { - throw NotImplementedError("_getCategory is not implemented for VisualShaderNodeCustom") + throw NotImplementedError("VisualShaderNodeCustom::_getCategory is not implemented.") } /** @@ -81,7 +81,7 @@ public open class VisualShaderNodeCustom : VisualShaderNode() { * Defining this method is **optional**. If not overridden, no return icon is shown. */ public open fun _getReturnIconType(): VisualShaderNode.PortType { - throw NotImplementedError("_getReturnIconType is not implemented for VisualShaderNodeCustom") + throw NotImplementedError("VisualShaderNodeCustom::_getReturnIconType is not implemented.") } /** @@ -90,7 +90,7 @@ public open class VisualShaderNodeCustom : VisualShaderNode() { * Defining this method is **required**. If not overridden, the node has no input ports. */ public open fun _getInputPortCount(): Int { - throw NotImplementedError("_getInputPortCount is not implemented for VisualShaderNodeCustom") + throw NotImplementedError("VisualShaderNodeCustom::_getInputPortCount is not implemented.") } /** @@ -101,7 +101,7 @@ public open class VisualShaderNodeCustom : VisualShaderNode() { * return the [VisualShaderNode.PORT_TYPE_SCALAR] type. */ public open fun _getInputPortType(port: Int): VisualShaderNode.PortType { - throw NotImplementedError("_getInputPortType is not implemented for VisualShaderNodeCustom") + throw NotImplementedError("VisualShaderNodeCustom::_getInputPortType is not implemented.") } /** @@ -113,7 +113,7 @@ public open class VisualShaderNodeCustom : VisualShaderNode() { * as `"in" + str(port)`. */ public open fun _getInputPortName(port: Int): String { - throw NotImplementedError("_getInputPortName is not implemented for VisualShaderNodeCustom") + throw NotImplementedError("VisualShaderNodeCustom::_getInputPortName is not implemented.") } /** @@ -124,7 +124,7 @@ public open class VisualShaderNodeCustom : VisualShaderNode() { * their input ports. */ public open fun _getInputPortDefaultValue(port: Int): Any? { - throw NotImplementedError("_getInputPortDefaultValue is not implemented for VisualShaderNodeCustom") + throw NotImplementedError("VisualShaderNodeCustom::_getInputPortDefaultValue is not implemented.") } /** @@ -136,7 +136,7 @@ public open class VisualShaderNodeCustom : VisualShaderNode() { * first valid port. */ public open fun _getDefaultInputPort(type: VisualShaderNode.PortType): Int { - throw NotImplementedError("_getDefaultInputPort is not implemented for VisualShaderNodeCustom") + throw NotImplementedError("VisualShaderNodeCustom::_getDefaultInputPort is not implemented.") } /** @@ -145,7 +145,7 @@ public open class VisualShaderNodeCustom : VisualShaderNode() { * Defining this method is **required**. If not overridden, the node has no output ports. */ public open fun _getOutputPortCount(): Int { - throw NotImplementedError("_getOutputPortCount is not implemented for VisualShaderNodeCustom") + throw NotImplementedError("VisualShaderNodeCustom::_getOutputPortCount is not implemented.") } /** @@ -156,7 +156,7 @@ public open class VisualShaderNodeCustom : VisualShaderNode() { * return the [VisualShaderNode.PORT_TYPE_SCALAR] type. */ public open fun _getOutputPortType(port: Int): VisualShaderNode.PortType { - throw NotImplementedError("_getOutputPortType is not implemented for VisualShaderNodeCustom") + throw NotImplementedError("VisualShaderNodeCustom::_getOutputPortType is not implemented.") } /** @@ -168,7 +168,7 @@ public open class VisualShaderNodeCustom : VisualShaderNode() { * named as `"out" + str(port)`. */ public open fun _getOutputPortName(port: Int): String { - throw NotImplementedError("_getOutputPortName is not implemented for VisualShaderNodeCustom") + throw NotImplementedError("VisualShaderNodeCustom::_getOutputPortName is not implemented.") } /** @@ -177,7 +177,7 @@ public open class VisualShaderNodeCustom : VisualShaderNode() { * Defining this method is **optional**. */ public open fun _getPropertyCount(): Int { - throw NotImplementedError("_getPropertyCount is not implemented for VisualShaderNodeCustom") + throw NotImplementedError("VisualShaderNodeCustom::_getPropertyCount is not implemented.") } /** @@ -186,7 +186,7 @@ public open class VisualShaderNodeCustom : VisualShaderNode() { * Defining this method is **optional**. */ public open fun _getPropertyName(index: Int): String { - throw NotImplementedError("_getPropertyName is not implemented for VisualShaderNodeCustom") + throw NotImplementedError("VisualShaderNodeCustom::_getPropertyName is not implemented.") } /** @@ -195,7 +195,7 @@ public open class VisualShaderNodeCustom : VisualShaderNode() { * Defining this method is **optional**. */ public open fun _getPropertyDefaultIndex(index: Int): Int { - throw NotImplementedError("_getPropertyDefaultIndex is not implemented for VisualShaderNodeCustom") + throw NotImplementedError("VisualShaderNodeCustom::_getPropertyDefaultIndex is not implemented.") } /** @@ -205,7 +205,7 @@ public open class VisualShaderNodeCustom : VisualShaderNode() { * Defining this method is **optional**. */ public open fun _getPropertyOptions(index: Int): PackedStringArray { - throw NotImplementedError("_getPropertyOptions is not implemented for VisualShaderNodeCustom") + throw NotImplementedError("VisualShaderNodeCustom::_getPropertyOptions is not implemented.") } /** @@ -230,7 +230,7 @@ public open class VisualShaderNodeCustom : VisualShaderNode() { mode: Shader.Mode, type: VisualShader.Type, ): String { - throw NotImplementedError("_getCode is not implemented for VisualShaderNodeCustom") + throw NotImplementedError("VisualShaderNodeCustom::_getCode is not implemented.") } /** @@ -247,7 +247,7 @@ public open class VisualShaderNodeCustom : VisualShaderNode() { * Defining this method is **optional**. */ public open fun _getFuncCode(mode: Shader.Mode, type: VisualShader.Type): String { - throw NotImplementedError("_getFuncCode is not implemented for VisualShaderNodeCustom") + throw NotImplementedError("VisualShaderNodeCustom::_getFuncCode is not implemented.") } /** @@ -264,7 +264,7 @@ public open class VisualShaderNodeCustom : VisualShaderNode() { * Defining this method is **optional**. */ public open fun _getGlobalCode(mode: Shader.Mode): String { - throw NotImplementedError("_getGlobalCode is not implemented for VisualShaderNodeCustom") + throw NotImplementedError("VisualShaderNodeCustom::_getGlobalCode is not implemented.") } /** @@ -273,7 +273,7 @@ public open class VisualShaderNodeCustom : VisualShaderNode() { * Defining this method is **optional**. If not overridden, it's `false`. */ public open fun _isHighend(): Boolean { - throw NotImplementedError("_isHighend is not implemented for VisualShaderNodeCustom") + throw NotImplementedError("VisualShaderNodeCustom::_isHighend is not implemented.") } /** @@ -283,7 +283,7 @@ public open class VisualShaderNodeCustom : VisualShaderNode() { * Defining this method is **optional**. If not overridden, it's `true`. */ public open fun _isAvailable(mode: Shader.Mode, type: VisualShader.Type): Boolean { - throw NotImplementedError("_isAvailable is not implemented for VisualShaderNodeCustom") + throw NotImplementedError("VisualShaderNodeCustom::_isAvailable is not implemented.") } /** diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/WebRTCDataChannelExtension.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/WebRTCDataChannelExtension.kt index 113de78d7..3fe851a7e 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/WebRTCDataChannelExtension.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/WebRTCDataChannelExtension.kt @@ -10,80 +10,47 @@ import godot.`annotation`.GodotBaseType import godot.core.Error import kotlin.Boolean import kotlin.Int -import kotlin.NotImplementedError import kotlin.String import kotlin.Suppress import kotlin.Unit @GodotBaseType -public open class WebRTCDataChannelExtension : WebRTCDataChannel() { +public abstract class WebRTCDataChannelExtension : WebRTCDataChannel() { public override fun new(scriptIndex: Int): Unit { createNativeObject(842, scriptIndex) } - public open fun _getAvailablePacketCount(): Int { - throw NotImplementedError("_getAvailablePacketCount is not implemented for WebRTCDataChannelExtension") - } + public abstract fun _getAvailablePacketCount(): Int - public open fun _getMaxPacketSize(): Int { - throw NotImplementedError("_getMaxPacketSize is not implemented for WebRTCDataChannelExtension") - } + public abstract fun _getMaxPacketSize(): Int - public open fun _poll(): Error { - throw NotImplementedError("_poll is not implemented for WebRTCDataChannelExtension") - } + public abstract fun _poll(): Error - public open fun _close(): Unit { - throw NotImplementedError("_close is not implemented for WebRTCDataChannelExtension") - } + public abstract fun _close(): Unit - public open fun _setWriteMode(pWriteMode: WebRTCDataChannel.WriteMode): Unit { - throw NotImplementedError("_setWriteMode is not implemented for WebRTCDataChannelExtension") - } + public abstract fun _setWriteMode(pWriteMode: WebRTCDataChannel.WriteMode): Unit - public open fun _getWriteMode(): WebRTCDataChannel.WriteMode { - throw NotImplementedError("_getWriteMode is not implemented for WebRTCDataChannelExtension") - } + public abstract fun _getWriteMode(): WebRTCDataChannel.WriteMode - public open fun _wasStringPacket(): Boolean { - throw NotImplementedError("_wasStringPacket is not implemented for WebRTCDataChannelExtension") - } + public abstract fun _wasStringPacket(): Boolean - public open fun _getReadyState(): WebRTCDataChannel.ChannelState { - throw NotImplementedError("_getReadyState is not implemented for WebRTCDataChannelExtension") - } + public abstract fun _getReadyState(): WebRTCDataChannel.ChannelState - public open fun _getLabel(): String { - throw NotImplementedError("_getLabel is not implemented for WebRTCDataChannelExtension") - } + public abstract fun _getLabel(): String - public open fun _isOrdered(): Boolean { - throw NotImplementedError("_isOrdered is not implemented for WebRTCDataChannelExtension") - } + public abstract fun _isOrdered(): Boolean - public open fun _getId(): Int { - throw NotImplementedError("_getId is not implemented for WebRTCDataChannelExtension") - } + public abstract fun _getId(): Int - public open fun _getMaxPacketLifeTime(): Int { - throw NotImplementedError("_getMaxPacketLifeTime is not implemented for WebRTCDataChannelExtension") - } + public abstract fun _getMaxPacketLifeTime(): Int - public open fun _getMaxRetransmits(): Int { - throw NotImplementedError("_getMaxRetransmits is not implemented for WebRTCDataChannelExtension") - } + public abstract fun _getMaxRetransmits(): Int - public open fun _getProtocol(): String { - throw NotImplementedError("_getProtocol is not implemented for WebRTCDataChannelExtension") - } + public abstract fun _getProtocol(): String - public open fun _isNegotiated(): Boolean { - throw NotImplementedError("_isNegotiated is not implemented for WebRTCDataChannelExtension") - } + public abstract fun _isNegotiated(): Boolean - public open fun _getBufferedAmount(): Int { - throw NotImplementedError("_getBufferedAmount is not implemented for WebRTCDataChannelExtension") - } + public abstract fun _getBufferedAmount(): Int public companion object diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/WebRTCPeerConnectionExtension.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/WebRTCPeerConnectionExtension.kt index 9de9b28e7..17c76e4a6 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/WebRTCPeerConnectionExtension.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/WebRTCPeerConnectionExtension.kt @@ -11,65 +11,42 @@ import godot.core.Dictionary import godot.core.Error import kotlin.Any import kotlin.Int -import kotlin.NotImplementedError import kotlin.String import kotlin.Suppress import kotlin.Unit @GodotBaseType -public open class WebRTCPeerConnectionExtension : WebRTCPeerConnection() { +public abstract class WebRTCPeerConnectionExtension : WebRTCPeerConnection() { public override fun new(scriptIndex: Int): Unit { createNativeObject(845, scriptIndex) } - public open fun _getConnectionState(): WebRTCPeerConnection.ConnectionState { - throw NotImplementedError("_getConnectionState is not implemented for WebRTCPeerConnectionExtension") - } + public abstract fun _getConnectionState(): WebRTCPeerConnection.ConnectionState - public open fun _getGatheringState(): WebRTCPeerConnection.GatheringState { - throw NotImplementedError("_getGatheringState is not implemented for WebRTCPeerConnectionExtension") - } + public abstract fun _getGatheringState(): WebRTCPeerConnection.GatheringState - public open fun _getSignalingState(): WebRTCPeerConnection.SignalingState { - throw NotImplementedError("_getSignalingState is not implemented for WebRTCPeerConnectionExtension") - } + public abstract fun _getSignalingState(): WebRTCPeerConnection.SignalingState - public open fun _initialize(pConfig: Dictionary): Error { - throw NotImplementedError("_initialize is not implemented for WebRTCPeerConnectionExtension") - } + public abstract fun _initialize(pConfig: Dictionary): Error - public open fun _createDataChannel(pLabel: String, pConfig: Dictionary): - WebRTCDataChannel? { - throw NotImplementedError("_createDataChannel is not implemented for WebRTCPeerConnectionExtension") - } + public abstract fun _createDataChannel(pLabel: String, pConfig: Dictionary): + WebRTCDataChannel? - public open fun _createOffer(): Error { - throw NotImplementedError("_createOffer is not implemented for WebRTCPeerConnectionExtension") - } + public abstract fun _createOffer(): Error - public open fun _setRemoteDescription(pType: String, pSdp: String): Error { - throw NotImplementedError("_setRemoteDescription is not implemented for WebRTCPeerConnectionExtension") - } + public abstract fun _setRemoteDescription(pType: String, pSdp: String): Error - public open fun _setLocalDescription(pType: String, pSdp: String): Error { - throw NotImplementedError("_setLocalDescription is not implemented for WebRTCPeerConnectionExtension") - } + public abstract fun _setLocalDescription(pType: String, pSdp: String): Error - public open fun _addIceCandidate( + public abstract fun _addIceCandidate( pSdpMidName: String, pSdpMlineIndex: Int, pSdpName: String, - ): Error { - throw NotImplementedError("_addIceCandidate is not implemented for WebRTCPeerConnectionExtension") - } + ): Error - public open fun _poll(): Error { - throw NotImplementedError("_poll is not implemented for WebRTCPeerConnectionExtension") - } + public abstract fun _poll(): Error - public open fun _close(): Unit { - throw NotImplementedError("_close is not implemented for WebRTCPeerConnectionExtension") - } + public abstract fun _close(): Unit public companion object diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/Window.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/Window.kt index 5c5bee7e5..74baf629b 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/Window.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/Window.kt @@ -905,7 +905,7 @@ public open class Window : Viewport() { * [getContentsMinimumSize]. */ public open fun _getContentsMinimumSize(): Vector2 { - throw NotImplementedError("_getContentsMinimumSize is not implemented for Window") + throw NotImplementedError("Window::_getContentsMinimumSize is not implemented.") } public final fun setTitle(title: String): Unit { diff --git a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/XRInterfaceExtension.kt b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/XRInterfaceExtension.kt index 5250083da..eea36c7aa 100644 --- a/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/XRInterfaceExtension.kt +++ b/kt/godot-library/godot-api-library/src/main/kotlin/godot/api/XRInterfaceExtension.kt @@ -51,70 +51,70 @@ public open class XRInterfaceExtension : XRInterface() { * Returns the name of this interface. */ public open fun _getName(): StringName { - throw NotImplementedError("_getName is not implemented for XRInterfaceExtension") + throw NotImplementedError("XRInterfaceExtension::_getName is not implemented.") } /** * Returns the capabilities of this interface. */ public open fun _getCapabilities(): Long { - throw NotImplementedError("_getCapabilities is not implemented for XRInterfaceExtension") + throw NotImplementedError("XRInterfaceExtension::_getCapabilities is not implemented.") } /** * Returns `true` if this interface has been initialized. */ public open fun _isInitialized(): Boolean { - throw NotImplementedError("_isInitialized is not implemented for XRInterfaceExtension") + throw NotImplementedError("XRInterfaceExtension::_isInitialized is not implemented.") } /** * Initializes the interface, returns `true` on success. */ public open fun _initialize(): Boolean { - throw NotImplementedError("_initialize is not implemented for XRInterfaceExtension") + throw NotImplementedError("XRInterfaceExtension::_initialize is not implemented.") } /** * Uninitialize the interface. */ public open fun _uninitialize(): Unit { - throw NotImplementedError("_uninitialize is not implemented for XRInterfaceExtension") + throw NotImplementedError("XRInterfaceExtension::_uninitialize is not implemented.") } /** * Returns a [Dictionary] with system information related to this interface. */ public open fun _getSystemInfo(): Dictionary { - throw NotImplementedError("_getSystemInfo is not implemented for XRInterfaceExtension") + throw NotImplementedError("XRInterfaceExtension::_getSystemInfo is not implemented.") } /** * Returns `true` if this interface supports this play area mode. */ public open fun _supportsPlayAreaMode(mode: XRInterface.PlayAreaMode): Boolean { - throw NotImplementedError("_supportsPlayAreaMode is not implemented for XRInterfaceExtension") + throw NotImplementedError("XRInterfaceExtension::_supportsPlayAreaMode is not implemented.") } /** * Returns the play area mode that sets up our play area. */ public open fun _getPlayAreaMode(): XRInterface.PlayAreaMode { - throw NotImplementedError("_getPlayAreaMode is not implemented for XRInterfaceExtension") + throw NotImplementedError("XRInterfaceExtension::_getPlayAreaMode is not implemented.") } /** * Set the play area mode for this interface. */ public open fun _setPlayAreaMode(mode: XRInterface.PlayAreaMode): Boolean { - throw NotImplementedError("_setPlayAreaMode is not implemented for XRInterfaceExtension") + throw NotImplementedError("XRInterfaceExtension::_setPlayAreaMode is not implemented.") } /** * Returns a [PackedVector3Array] that represents the play areas boundaries (if applicable). */ public open fun _getPlayArea(): PackedVector3Array { - throw NotImplementedError("_getPlayArea is not implemented for XRInterfaceExtension") + throw NotImplementedError("XRInterfaceExtension::_getPlayArea is not implemented.") } /** @@ -122,28 +122,28 @@ public open class XRInterfaceExtension : XRInterface() { * [Viewport] marked as the xr viewport. */ public open fun _getRenderTargetSize(): Vector2 { - throw NotImplementedError("_getRenderTargetSize is not implemented for XRInterfaceExtension") + throw NotImplementedError("XRInterfaceExtension::_getRenderTargetSize is not implemented.") } /** * Returns the number of views this interface requires, 1 for mono, 2 for stereoscopic. */ public open fun _getViewCount(): Long { - throw NotImplementedError("_getViewCount is not implemented for XRInterfaceExtension") + throw NotImplementedError("XRInterfaceExtension::_getViewCount is not implemented.") } /** * Returns the [Transform3D] that positions the [XRCamera3D] in the world. */ public open fun _getCameraTransform(): Transform3D { - throw NotImplementedError("_getCameraTransform is not implemented for XRInterfaceExtension") + throw NotImplementedError("XRInterfaceExtension::_getCameraTransform is not implemented.") } /** * Returns a [Transform3D] for a given view. */ public open fun _getTransformForView(view: Long, camTransform: Transform3D): Transform3D { - throw NotImplementedError("_getTransformForView is not implemented for XRInterfaceExtension") + throw NotImplementedError("XRInterfaceExtension::_getTransformForView is not implemented.") } /** @@ -155,11 +155,11 @@ public open class XRInterfaceExtension : XRInterface() { zNear: Double, zFar: Double, ): PackedFloat64Array { - throw NotImplementedError("_getProjectionForView is not implemented for XRInterfaceExtension") + throw NotImplementedError("XRInterfaceExtension::_getProjectionForView is not implemented.") } public open fun _getVrsTexture(): RID { - throw NotImplementedError("_getVrsTexture is not implemented for XRInterfaceExtension") + throw NotImplementedError("XRInterfaceExtension::_getVrsTexture is not implemented.") } /** @@ -167,7 +167,7 @@ public open class XRInterfaceExtension : XRInterface() { * Most XR interfaces will update its [XRPositionalTracker]s at this point in time. */ public open fun _process(): Unit { - throw NotImplementedError("_process is not implemented for XRInterfaceExtension") + throw NotImplementedError("XRInterfaceExtension::_process is not implemented.") } /** @@ -175,7 +175,7 @@ public open class XRInterfaceExtension : XRInterface() { * will sync tracking at this point in time. */ public open fun _preRender(): Unit { - throw NotImplementedError("_preRender is not implemented for XRInterfaceExtension") + throw NotImplementedError("XRInterfaceExtension::_preRender is not implemented.") } /** @@ -184,21 +184,21 @@ public open class XRInterfaceExtension : XRInterface() { * interface may return `false` if the user has taken off their headset and we can pause rendering. */ public open fun _preDrawViewport(renderTarget: RID): Boolean { - throw NotImplementedError("_preDrawViewport is not implemented for XRInterfaceExtension") + throw NotImplementedError("XRInterfaceExtension::_preDrawViewport is not implemented.") } /** * Called after the XR [Viewport] draw logic has completed. */ public open fun _postDrawViewport(renderTarget: RID, screenRect: Rect2): Unit { - throw NotImplementedError("_postDrawViewport is not implemented for XRInterfaceExtension") + throw NotImplementedError("XRInterfaceExtension::_postDrawViewport is not implemented.") } /** * Called if interface is active and queues have been submitted. */ public open fun _endFrame(): Unit { - throw NotImplementedError("_endFrame is not implemented for XRInterfaceExtension") + throw NotImplementedError("XRInterfaceExtension::_endFrame is not implemented.") } /** @@ -206,7 +206,7 @@ public open class XRInterfaceExtension : XRInterface() { * configuration can override this list. */ public open fun _getSuggestedTrackerNames(): PackedStringArray { - throw NotImplementedError("_getSuggestedTrackerNames is not implemented for XRInterfaceExtension") + throw NotImplementedError("XRInterfaceExtension::_getSuggestedTrackerNames is not implemented.") } /** @@ -214,14 +214,14 @@ public open class XRInterfaceExtension : XRInterface() { * configuration can override this list. */ public open fun _getSuggestedPoseNames(trackerName: StringName): PackedStringArray { - throw NotImplementedError("_getSuggestedPoseNames is not implemented for XRInterfaceExtension") + throw NotImplementedError("XRInterfaceExtension::_getSuggestedPoseNames is not implemented.") } /** * Returns a [XRInterface.TrackingStatus] specifying the current status of our tracking. */ public open fun _getTrackingStatus(): XRInterface.TrackingStatus { - throw NotImplementedError("_getTrackingStatus is not implemented for XRInterfaceExtension") + throw NotImplementedError("XRInterfaceExtension::_getTrackingStatus is not implemented.") } /** @@ -235,21 +235,21 @@ public open class XRInterfaceExtension : XRInterface() { durationSec: Double, delaySec: Double, ): Unit { - throw NotImplementedError("_triggerHapticPulse is not implemented for XRInterfaceExtension") + throw NotImplementedError("XRInterfaceExtension::_triggerHapticPulse is not implemented.") } /** * Return `true` if anchor detection is enabled for this interface. */ public open fun _getAnchorDetectionIsEnabled(): Boolean { - throw NotImplementedError("_getAnchorDetectionIsEnabled is not implemented for XRInterfaceExtension") + throw NotImplementedError("XRInterfaceExtension::_getAnchorDetectionIsEnabled is not implemented.") } /** * Enables anchor detection on this interface if supported. */ public open fun _setAnchorDetectionIsEnabled(enabled: Boolean): Unit { - throw NotImplementedError("_setAnchorDetectionIsEnabled is not implemented for XRInterfaceExtension") + throw NotImplementedError("XRInterfaceExtension::_setAnchorDetectionIsEnabled is not implemented.") } /** @@ -257,28 +257,28 @@ public open class XRInterfaceExtension : XRInterface() { * be presented as the background on an AR capable device (if applicable). */ public open fun _getCameraFeedId(): Int { - throw NotImplementedError("_getCameraFeedId is not implemented for XRInterfaceExtension") + throw NotImplementedError("XRInterfaceExtension::_getCameraFeedId is not implemented.") } /** * Return color texture into which to render (if applicable). */ public open fun _getColorTexture(): RID { - throw NotImplementedError("_getColorTexture is not implemented for XRInterfaceExtension") + throw NotImplementedError("XRInterfaceExtension::_getColorTexture is not implemented.") } /** * Return depth texture into which to render (if applicable). */ public open fun _getDepthTexture(): RID { - throw NotImplementedError("_getDepthTexture is not implemented for XRInterfaceExtension") + throw NotImplementedError("XRInterfaceExtension::_getDepthTexture is not implemented.") } /** * Return velocity texture into which to render (if applicable). */ public open fun _getVelocityTexture(): RID { - throw NotImplementedError("_getVelocityTexture is not implemented for XRInterfaceExtension") + throw NotImplementedError("XRInterfaceExtension::_getVelocityTexture is not implemented.") } public final fun getColorTexture(): RID { diff --git a/kt/godot-library/godot-core-library/src/main/kotlin/godot/core/KtObject.kt b/kt/godot-library/godot-core-library/src/main/kotlin/godot/core/KtObject.kt index cac749568..e9cb5219c 100644 --- a/kt/godot-library/godot-core-library/src/main/kotlin/godot/core/KtObject.kt +++ b/kt/godot-library/godot-core-library/src/main/kotlin/godot/core/KtObject.kt @@ -87,7 +87,7 @@ abstract class KtObject : NativeWrapper { private fun removeScript(constructorIndex: Int) { - createScriptInstance(ptr, objectID, TypeManager.engineTypesConstructors[constructorIndex]) + createScriptInstance(ptr, objectID, TypeManager.engineTypesConstructors[constructorIndex]!!) } protected external fun createNativeObject(classIndex: Int, scriptIndex: Int) @@ -113,7 +113,7 @@ abstract class KtObject : NativeWrapper { fun getOrCreate(rawPtr: VoidPtr, id: ObjectID, constructorIndex: Int): KtObject { return MemoryManager.getInstanceOrCreate(id) { withConfig(rawPtr, id) { - TypeManager.engineTypesConstructors[constructorIndex]() + TypeManager.engineTypesConstructors[constructorIndex]!!() } } as KtObject } diff --git a/kt/godot-library/godot-internal-library/src/main/kotlin/godot/internal/reflection/TypeManager.kt b/kt/godot-library/godot-internal-library/src/main/kotlin/godot/internal/reflection/TypeManager.kt index 4e9723d28..2b1b13f5a 100644 --- a/kt/godot-library/godot-internal-library/src/main/kotlin/godot/internal/reflection/TypeManager.kt +++ b/kt/godot-library/godot-internal-library/src/main/kotlin/godot/internal/reflection/TypeManager.kt @@ -12,7 +12,7 @@ object TypeManager { val engineTypeNames = LinkedHashSet() val engineSingletonsNames = LinkedHashSet() - val engineTypesConstructors = mutableListOf<() -> NativeWrapper>() + val engineTypesConstructors = mutableListOf<(() -> NativeWrapper)?>() val singletonsConstructors = mutableListOf<() -> NativeWrapper>() fun registerUserType(className: String, kClass: KClass) { @@ -20,13 +20,13 @@ object TypeManager { userTypeToId[kClass] = userTypes.size - 1 } - fun registerEngineType(className: String, clazz: KClass, invocator: () -> T) { - engineTypesConstructors.add(invocator) + fun registerEngineType(className: String, clazz: KClass, invoke: (() -> NativeWrapper)?) { + engineTypesConstructors.add(invoke) engineTypeNames.add(className) engineTypeToId[clazz] = engineTypeNames.size - 1 } - fun registerSingleton(singletonName: String, invocator: () -> T) { + fun registerSingleton(singletonName: String, invocator: () -> NativeWrapper) { engineSingletonsNames.add(singletonName) singletonsConstructors.add(invocator) }